Scroll-driven animation

Bind animation progress to a scroll range and tune its start, end, and travel.

Preview

Scroll progress supplies the animation timeline, mapping page movement to visual state.

Preview
Scroll
Scroll-driven animation
Continue

Implement Scroll-driven animation: Bind animation progress to a scroll range and tune its start, end, and travel. Use Start 10%, End 80%, Distance 80px, Axis y. Drive it from viewport entry or scroll progress. Use semantic HTML, scope CSS to .motion-demo--scroll-driven-animation. Provide equivalent low-motion behavior for prefers-reduced-motion and .force-reduced-motion.

Learn more