Scroll-Driven Animation
Binding animation progress directly to scroll position (0–100%) instead of elapsed time so visuals advance, scrub, and reverse with user scrolling
Table of Contents
Structure Diagram
What is Scroll-Driven Animation?
Binding animation progress directly to scroll position (0–100%) instead of elapsed time so visuals advance, scrub, and reverse with user scrolling. It is a core concept in Motion & Interaction within UI / UX.
Core Principles
Scroll-Driven Animations bind an animation's playhead directly to scroll progress (0–100%) instead of wall-clock time. As the user scrolls down, the motion advances; scrolling back up reverses it smoothly, keeping the user firmly in control.
Modern browsers support native CSS animation-timeline: scroll() and view(), running scroll-linked transforms directly on the compositor thread without main-thread JavaScript scroll listeners.
Practical Takeaways
- Never hijack native scroll physics: Overriding scroll speed or trapping wheel input frustrates users. Keep native momentum intact and let visuals react passively to scroll position.
- Prefer native CSS timelines with progressive enhancement: Wrap
animation-timeline: view()inside@supportsfor reading progress bars and section reveals to save JS bundle weight and avoid jank. - Provide reduced-motion fallbacks: Scroll-linked zooming and parallax can trigger motion sickness; disable spatial transforms under
prefers-reduced-motion: reduce.
Notable Examples
- Reading progress indicators: A hairline bar pinned below the header tracking article completion from 0% to 100%.
- Product storytelling pages: Hardware visuals rotating or assembling in sync with scroll milestones.
- Collapsing hero headers: Smoothly scaling down a profile cover image into a compact sticky bar as the feed scrolls.