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.

01 / 04
Instant Wake
The display responds in under 1ms. Always on, never waiting. The sensor layer never sleeps.

Pin released

The phone and its text let go and scroll away with the page again.

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.

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 GitHub

What it is

The full explanation is in README.md.

Good for

  • Feature lists
  • Product tours
  • Onboarding

Avoid on

  • Short screens
  • Long text