BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Firefox 159 Enables CSS Scroll-Driven Animations, Completing Baseline Support Across Major Browsers

Firefox 159 Enables CSS Scroll-Driven Animations, Completing Baseline Support Across Major Browsers

Listen to this article -  0:00

Mozilla, the non-profit behind Firefox, has shipped Firefox 159 with CSS scroll-driven animations enabled by default, closing the last major engine gap and promoting the feature to Baseline.

Firefox 159 landed on 27 October 2026, and on the same day the animation-timeline property, together with the scroll() and view() timeline functions, moved from limited availability to Baseline newly available on MDN. The current version of every core browser now supports the API.

Scroll-driven animations swap the clock of a standard CSS keyframe animation for the scroll position of a container, or the visibility of an element within the scrollport. A reading-progress bar at the top of a page can now be written in CSS alone, with no scroll listener and no IntersectionObserver .

The specification offers two anonymous timeline functions. scroll() follows a scroll container from zero to one hundred percent, and view() tracks a single element as it crosses the scrollport. Named timelines, declared with scroll-timeline-name or view-timeline-name, let a parent drive animations on its descendants.

Chrome and Edge shipped the feature in version 115 in July 2023, and Safari enabled it in version 26 in September 2025. Firefox had held the implementation behind the layout.css.scroll-driven-animations.enabled flag since version 111, with Mozilla Connect threads tracking the demand. One commenter on that request said:

I would also like to have an update on this, with Safari and Chromium fully supporting this now Firefox is the one holdout that is holding our developers back from using this nifty new feature.

Scroll-driven animations were also a named Interop 2026 priority.

Sébastien Lorber, the Docusaurus maintainer behind This Week In React, flagged the shipping on X, noting it was arriving in "the last major browser". Writing on dev.to, Richi reminded authors to declare animation-timeline after the animation shorthand or it will not take effect. MDN also documents that Firefox needs a non-zero animation-duration to apply the animation on a scroll timeline, even though the duration itself controls nothing.

Commentary online has looked at the feature against established JavaScript libraries. GSAP ScrollTrigger, around 46 KB gzipped once bundled with core GSAP, remains the recommended tool for pinning, scrubbed timelines and sequenced motion. Agency writeups suggest the native approach replaces roughly 80 to 90 percent of ScrollTrigger use cases for simple reveal and progress effects. Unlike scroll-event handlers, scroll-driven animations run on the compositor thread, which keeps motion smooth even under main-thread pressure.

A Hacker News thread on the scroll-driven-animations.style demo site drew comments that heavy use could feel "nauseating", a reminder to wrap effects in @media (prefers-reduced-motion: reduce) where appropriate.

Teams migrating from JavaScript libraries can gate the new styles behind @supports (animation-timeline: scroll()) to preserve existing behaviour in older browsers. The MDN scroll-driven animations guide and the Google Developers codelab are the two starting points most commonly cited.

About the Author

Rate this Article

Adoption
Style

BT