01.15 · Scroll-Based
Sticky Section
A section holds still while its content changes. Best for feature tours.
Scroll it
Scroll inside the box, or press Play and it scrolls for you.
Scroll down ↓
Step 01 · Hold
The section stays put.
Once it reaches the top of the box, the whole section stops moving while you keep scrolling.
Step 02 · Change
Scrolling changes what is inside.
Each stretch of scrolling swaps the words and the picture for the next step, instead of moving the page.
Step 03 · Fade
Each step fades into the next.
The change is a quick fade, so the section reads as one frame stepping forward.
Step 04 · Release
Then the page moves on.
After the last step, the section scrolls away and the page carries on as normal.
The page moves on ↓
Inside, the four steps sit stacked in the frame, only the lit one showing; each bar fills during that step's share of the scroll. Scroll the box or press Play to watch.
Scrolls past shows the four steps as ordinary blocks going by; Holds still keeps the frame at the top while the steps change in place. Scroll the box or press Play to watch.
Copy the prompt
Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.
Add a sticky section to [the steps or features you want to walk through]. Make the section several screens tall and pin its inner frame to the top of the screen while the visitor scrolls through it. Split that scroll distance into equal parts, one per step, and as each part is reached, fade the text and the picture over to the next step while the frame itself stays still. After the last step, let the section scroll away so the page carries on. Work out the step from the scroll position, so scrolling back up steps backwards. If the visitor has reduced motion turned on, switch the steps without fading.
Your settings
Replace the words in brackets with your own steps.
Free and open source. If this helped, a star on GitHub helps other people find it.
Star on GitHubWhat it is
The full explanation is in README.md.