Scroll-driven animations

Scroll-Driven Animations title with subtitle “Native CSS scroll animations with animation-timeline”, and a cartoon character of Josh Comeau on the right.

Josh Comeau dives into CSS animation-timeline, mapping keyframes over scroll distance instead of duration. He covers timing functions, animation ranges (cover, contain, entry, exit), range percentages, scroll progress timelines, and linked timelines that track one element while animating another, with view-timeline and timeline-scope. Around 85% browser support, with Firefox behind a flag.

joshwcomeau.com/animation/scroll-driven-animations