Urgent.News

What's breaking now, across hundreds of outlets.

Tech

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

Firefox 159, released 27 October 2026, enables CSS scroll-driven animations by default. The feature is now supported in all major browsers and has reached Baseline. It ties animations to scroll position or element visibility without JavaScript. Firefox requires a non-zero animation-duration, and native animations do not cover advanced uses such as pinning. By Daniel Curtis

Mozilla has released Firefox 159, enabling CSS scroll-driven animations by default across all major browsers. This feature, initially held back, has now reached Baseline support, marking the completion of a critical gap in browser capabilities. The animation-timeline property, accompanied by the scroll() and view() timeline functions, is now widely available, with MDN marking it as new on the same day Firefox 159 was released on 27 October 2026.

Scroll-driven animations function by replacing the standard clock of CSS keyframe animations with the scroll position of a container or the visibility of an element within the scrollport. This allows for the creation of a reading-progress bar at the top of a page using only CSS, eliminating the need for scroll listeners or IntersectionObserver.

The specification provides two timeline functions: scroll(), which progresses from zero to one hundred percent as the scroll container scrolls, and view(), which tracks a single element as it moves across the scrollport. Named timelines, declared using scroll-timeline-name or view-timeline-name, enable parents to drive animations on their descendants.

Chrome and Edge implemented the feature in version 115 in July 2023, while Safari introduced it in version 26 in September 2025. Firefox had maintained the implementation behind the layout.css.scroll-driven-animations.enabled flag since version 111, with Mozilla Connect threads tracking demand. The feature was a priority at Interop 2026, with Sébastien Lorber, maintainer of This Week In React, announcing its arrival as the "last major browser" to support it.

Richi advised authors to declare animation-timeline after the animation shorthand to ensure proper functionality. MDN notes that Firefox requires a non-zero animation-duration for the animation to apply on a scroll timeline, even though the duration itself has no direct effect. Online commentary compares this feature with JavaScript libraries like GSAP ScrollTrigger, estimated to replace about 80 to 90 percent of ScrollTrigger use cases for simple reveal and progress effects due to its performance benefits.

Unlike scroll-event handlers, scroll-driven animations operate on the compositor thread, maintaining smooth motion even under heavy main-thread pressure. A Hacker News thread discussing the scroll-driven-animations.style demo site highlighted potential concerns about nauseating effects, emphasizing the importance of wrapping effects in @media (prefers-reduced-motion: reduce) for accessibility.

Teams moving away from JavaScript libraries can selectively apply new styles using @supports (animation-timeline: scroll()) to maintain compatibility with older browsers.

Rewritten by urgent.news; may contain errors — check the original.

Source: infoq.com

Read the original at infoq.com →

More from InfoQ on urgent.news

Get the news by email. Yesterday's most-covered stories, every morning.

See today's edition · More options

More in Tech

More from Friday, 4 December 2026 →