Scroll pinning

Also called pinned section or sticky section

A scroll effect that holds a section in place while its content animates through several states, then releases it to scroll away.

What is Scroll pinning?

With scroll pinning, a section reaches the top of the screen and stops moving while the reader keeps scrolling. That extra scroll distance drives an animation inside it, such as cards stacking up, a phone screen changing, or a headline building word by word. When the animation finishes, the section lets go and the page carries on.

The usual setup is a tall wrapper, say three screens high, holding a child with position: sticky; top: 0 that is one screen tall. Scroll progress through the wrapper, from 0 to 1, drives the animation. GSAP’s ScrollTrigger calls this pin; in Motion you pass the wrapper to useScroll as its target and map the progress with useTransform.

Pin sparingly: a section that eats several screens of scrolling can make the page feel stuck. Show progress inside the pinned area, keep the pinned distance short, and check that the content still makes sense on small screens and with reduced motion.

Often confused with

Sticky header
A sticky header stays visible for the whole page. A pinned section holds still only while its own animation plays, then scrolls away.
Scrollytelling
Scrollytelling keeps a visual in place beside text steps that change it. Scroll pinning holds a whole section still while its content animates.
All terms

Scrollytelling

A storytelling layout where a pinned graphic changes step by step as the reader scrolls through short blocks of text beside it.

Horizontal scroll section

A pinned section where scrolling down moves a row of cards sideways, turning vertical scrolling into horizontal movement.

Scroll-driven animation

An animation whose progress is tied directly to the scroll position, so it moves forward as you scroll down and rewinds as you scroll up.

Scroll progress bar

A thin bar at the top of a page that fills from left to right as the reader scrolls, showing how much of the article is left.