Home / Blog / Firefox 159 Enables CSS Scroll-Driven Animations
Tech News

Firefox 159 Enables CSS Scroll-Driven Animations

Mozilla shipped Firefox 159 on 27 October 2026 with CSS scroll-driven animations enabled by default, bringing Baseline support across all major browsers.

By Dillip Chowdary • Dec 06, 2026 • Source: InfoQ

Firefox 159 Enables CSS Scroll-Driven Animations
Image: InfoQ

At a glance

Browser release
Firefox 159 by Mozilla
Release date
27 October 2026
Standard status
Baseline newly available on MDN
Prior support
Chrome and Edge 115, Safari 26
Firefox flag
layout.css.scroll-driven-animations.enabled (from v111)
JS comparison
GSAP ScrollTrigger is ~46 KB gzipped

Mozilla has shipped Firefox 159 with CSS scroll-driven animations enabled by default, closing the last major browser engine gap for the specification. According to InfoQ's report, the release landed on 27 October 2026 and promoted the animation-timeline property along with the scroll() and view() timeline functions to Baseline newly available on MDN. Every current core browser now supports the native API without feature flags.

This article details how the CSS timeline functions operate, the authoring rules required in Firefox, and how native scroll animations compare against JavaScript libraries such as GSAP ScrollTrigger. It is written for front-end developers, UI engineers, and teams deciding when to replace scroll listeners with pure CSS.

01Baseline availability and browser release timeline

Mozilla had kept CSS scroll-driven animations behind the layout.css.scroll-driven-animations.enabled preference since Firefox 111 while developer demand built across Mozilla Connect threads. Chrome and Edge previously shipped the feature in version 115 during July 2023, followed by Safari in version 26 in September 2025. Scroll-driven animations were also designated an Interop 2026 priority before Mozilla flipped the default in Firefox 159.

One commenter on the Mozilla Connect request wrote, "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." Docusaurus maintainer Sébastien Lorber also highlighted the Firefox 159 release on X, noting it was arriving in "the last major browser."

BrowserVersionSupport dateStatus
Chrome & Edge115July 2023Enabled by default
Safari26September 2025Enabled by default
Firefox111Earlier releaseBehind preference flag
Firefox15927 October 2026Enabled by default

02Anonymous timelines and named scroll targets

Scroll-driven animations replace the time-based clock of a standard CSS keyframe animation with either the scroll position of a container or the visibility of an element inside the scrollport. Developers can now build a reading-progress bar at the top of a page using CSS alone. That removes the need to attach a JavaScript scroll listener or configure an IntersectionObserver instance.

The specification defines two anonymous timeline functions for common scroll effects. The scroll() function tracks a scroll container from zero to one hundred percent of its range, while view() follows a single element as it moves across the scrollport. Both functions attach directly to keyframe animations without requiring external scripting.

When a parent element needs to drive animations on descendant nodes, authors can declare named timelines using scroll-timeline-name or view-timeline-name. By assigning a named timeline on an ancestor container, stylesheets can coordinate motion on child elements deeper in the document tree based on container scroll progress or element visibility.

Advertisement

Tech Pulse Daily

Get tomorrow's pulse first

Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.

03Authoring rules and Firefox duration requirements

Integrating animation-timeline into existing stylesheets requires attention to CSS cascade order so the browser does not override the timeline declaration. Writing on dev.to, Richi reminded developers to declare animation-timeline after the animation shorthand property, warning that placing it beforehand prevents the scroll timeline from taking effect.

Note: MDN documents that Firefox requires a non-zero animation-duration value to apply an animation to a scroll timeline, even though the duration itself controls nothing. Authors upgrading existing keyframes or writing new scroll-driven rules should verify that animation-duration is not set to zero seconds when testing in Firefox 159.

04Native CSS versus GSAP ScrollTrigger performance

Developer commentary has weighed native CSS scroll-driven animations against established JavaScript tooling, particularly GSAP ScrollTrigger, which adds around 46 KB gzipped when bundled with core GSAP. Agency writeups estimate that the native CSS approach replaces roughly 80 to 90 percent of ScrollTrigger use cases for simple reveal and progress effects.

Advanced scroll choreography still favors dedicated JavaScript tooling when requirements go beyond basic CSS keyframes. GSAP ScrollTrigger remains the recommended option for pinning elements, building scrubbed timelines, and coordinating sequenced motion across multiple targets.

Execution behavior also separates native CSS timelines from traditional script-based scroll tracking. Unlike JavaScript scroll-event handlers that execute on the main thread, CSS scroll-driven animations run on the compositor thread, keeping visual motion smooth even when the main thread is under heavy computational pressure.

05Reduced motion and progressive migration paths

Broader browser availability has also prompted discussion around motion sensitivity on content-heavy sites. A Hacker News thread examining the scroll-driven-animations.style demonstration site drew comments noting that heavy scroll-linked effects could feel "nauseating," underscoring the need for developers to wrap non-essential animations inside @media (prefers-reduced-motion: reduce) queries where appropriate.

Teams migrating away from JavaScript animation libraries can adopt the native API incrementally without breaking older browsers. Developers can gate new CSS rules inside an @supports (animation-timeline: scroll()) block so unsupported browsers retain existing behavior while Firefox 159, Safari 26, and Chrome and Edge 115 users receive native scroll animations.

For engineers looking to implement these patterns in production, two learning resources stand out in developer discussions. The MDN scroll-driven animations guide and the Google Developers codelab are the most commonly cited starting points for learning the syntax and debugging browser behavior.

Frequently asked questions

When did Firefox enable CSS scroll-driven animations by default?

Mozilla enabled CSS scroll-driven animations by default in Firefox 159, which shipped on 27 October 2026. On the same day, animation-timeline, scroll(), and view() moved to Baseline newly available on MDN.

What CSS authoring rules are required for scroll-driven animations in Firefox?

Developers must declare animation-timeline after the animation shorthand property so it is not overridden. Additionally, MDN documents that Firefox requires a non-zero animation-duration for the scroll timeline animation to apply, even though the duration controls nothing.

Can native CSS scroll-driven animations replace GSAP ScrollTrigger?

Agency writeups estimate native CSS replaces roughly 80 to 90 percent of ScrollTrigger use cases for simple reveal and progress effects while running on the compositor thread. However, GSAP ScrollTrigger, which is around 46 KB gzipped with core GSAP, remains recommended for pinning, scrubbed timelines, and sequenced motion.

How can teams safely adopt CSS scroll-driven animations for older browsers?

Teams can gate native scroll-driven styles inside @supports (animation-timeline: scroll()) to preserve existing behavior in older browsers. Developers should also wrap heavy effects in @media (prefers-reduced-motion: reduce) to accommodate motion-sensitive users.

Sources

Dillip Chowdary

Author

Dillip Chowdary

Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.

Related on Tech Bytes

Advertisement

5-min tech signal

Weekday briefing for engineers who skip the noise.

No spam · Unsubscribe anytime

Advertisement

✈️ CareerPilot

Your AI job-search copilot

Match your resume against live Ashby, Greenhouse & Lever openings — fit scores, job-specific resume optimization and email alerts.

Find matching jobs →

Free Tools

Browse all tools →