Scroll-driven animation

Also called scroll-linked animation or scroll scrubbing

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.

What is Scroll-driven animation?

In a scroll-driven animation, the scroll position works like the playhead of a video. Scroll a quarter of the way and the animation is a quarter done; scroll back and it plays in reverse. Progress rings, product shots that rotate into view, and headers that shrink as you scroll all work this way.

CSS can do it without JavaScript: animation-timeline: scroll() ties a keyframe animation to a scroll container, and view() ties it to an element’s trip through the viewport. Browser support is still uneven, so wrap it in @supports (animation-timeline: scroll()) and keep a static fallback. In React, Motion’s useScroll returns progress from 0 to 1 that you can map to any style with useTransform.

Animate transform and opacity so scrolling stays smooth, and tone down large scroll-linked movement for people who prefer reduced motion. A light spring on the progress value softens jumpy mouse wheels, at the cost of a slight lag.

Often confused with

Scroll reveal
A scroll reveal plays once, at its own speed, when an element appears. A scroll-driven animation follows the scroll position the whole way, forward and back.
All terms

Parallax scrolling

A scroll effect where background layers move slower than the foreground, which creates a sense of depth as the page scrolls.

Scroll text reveal

A paragraph whose words brighten from faint to full one by one as you scroll through it, tied to the scroll position so it rewinds on the way 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.

Scroll pinning

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