01.09 · Scroll-Based
Pin Animation
One part stays put while its text changes on scroll. Best for feature lists.
Scroll it
Scroll inside the box, or press Play and it scrolls for you.
Scroll to begin
The phone and its text will stop in the middle of the box and hold still while four features go by.
Pin released
The phone and its text let go and scroll away with the page again.
Inside, the bar is the whole scroll: the phone arrives, stays put through four equal steps, then leaves, and the line marks where you are. Scroll the box or press Play to watch.
Not pinned: the phone leaves with the page and empty space follows; Pinned: it holds still while the features change. 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 pinned section to [your product page, and the element that should stay in view]. Make the section several screens tall and pin the element and its text in the middle of the view while the visitor scrolls through it; the extra height is how long it stays. Split that distance into equal parts and show the next feature's text and picture in each part. When the section ends, let the element scroll away with the page. Use the browser's sticky positioning for the pin instead of moving it with a script. If the visitor has reduced motion turned on, change the features without animation.
Your settings
Replace the words in brackets with your own page and element.
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.