CSS Scroll-Driven Animations: A No-JS Guide for 2026
CSS scroll-driven animations are now Baseline in Chrome, Safari, and Firefox 159. Learn the scroll-timeline and view-timeline syntax with working examples.
By Babul Jack
CSS scroll-driven animations let you tie an animation's progress to scroll position instead of a timer, using the animation-timeline, , and properties. As of Firefox 159 (October 27, 2026), the feature is Baseline Newly available across Chrome, Safari, and Firefox, so you can build progress bars, reveal effects, and parallax with zero JavaScript.
A normal CSS animation runs on the document timeline: it starts, plays for a duration, and finishes, regardless of what the user does. A scroll-driven animation swaps that document timeline for a scroll-based one. The animation still uses the @keyframes you already know, but its progress is driven by how far someone has scrolled a container, or how far an element has traveled through the viewport.
There are two timeline types that cover almost every real use case:
scroll-timeline (paired with the scroll() function) ties progress to the scroll offset of a scrollable container, like a reading-progress bar at the top of an article.
view-timeline (paired with the view() function) ties progress to an element's visibility inside its scrollport, like fading a card in as it enters the screen.
According to MDN's CSS scroll-driven animations guide, both build directly on the existing CSS Animations module and the Web Animations API, so you are not learning a new animation syntax — only a new way to drive the existing one.
Why this became news in November 2026
Scroll-linked effects have existed for years, but until recently they required a scroll event listener, requestAnimationFrame, and careful throttling to avoid jank. Chrome and Safari shipped native support earlier, but Firefox was the holdout.
That changed on October 27, 2026, when Firefox 159 enabled scroll-driven animations by default, adding the animation-timeline, scroll-timeline, view-timeline, and animation-range properties along with the ScrollTimeline and ViewTimeline interfaces, per the official Firefox 159 release notes. Two days later, Google's web.dev team confirmed in its October 2026 web platform roundup that with support now in Chrome, Safari, and Firefox 159, scroll-driven animations are officially "Baseline Newly available."
That Baseline label matters in client work: it is the signal I use with product teams to decide whether a CSS feature is safe to ship without a JavaScript fallback library.
scroll-timeline vs view-timeline: which one do you need
Use case
Timeline type
Driven by
Reading progress bar
scroll-timeline + scroll()
Scroll offset of a container
Image carousel progress dots
scroll-timeline + scroll()
Scroll offset of a container
Fade/slide a card in as it enters view
view-timeline + view()
Element's position in the scrollport
Sticky header shrink-on-scroll
view-timeline + view()
Element's position in the scrollport
Parallax background on a pinned section
scroll-timeline (on ancestor)
Scroll offset of a container
How to build a scroll progress bar with scroll-timeline
This is the classic "reading progress" bar at the top of a blog post, built with three steps and no JavaScript.
Step 1: Define the keyframes
@keyframes progress-expand {
from { width: 0%; }
to { width: 100%; }
}
@supports not (animation-timeline: scroll()) {
.progress-bar {
display: none; /* or swap in a tiny JS-based bar here */
}
}
That scroll(root) call tells the browser to use the nearest scrollable ancestor — in this case the document itself — as the timeline source, exactly as shown in the worked example in MDN's scroll-driven animations reference.
How to reveal elements on scroll with view-timeline
Fade-up reveal animations are one of the most common requests I get from product owners redesigning a marketing page. Here is the pattern without any intersection observer code.
The animation-range: entry 0% entry 100% line is what scopes the animation to just the moment the card is entering the viewport, rather than running for the entire time it is visible. Respecting prefers-reduced-motion here is not optional — it is the same accessibility rule I apply to any animation, scroll-driven or not, in every client build.
Why dropping JavaScript here helps your Core Web Vitals
A scroll listener wired to requestAnimationFrame runs on the main thread on every frame, competing with click and input handlers for the same thread. Moving that work into the compositor via native CSS timelines is one of the cleanest ways to keep your main thread free, which directly supports Interaction to Next Paint — a topic I covered in depth in Interaction to Next Paint: Why INP Keeps Failing in 2026.
The same logic applies to apps built as SPAs: if your reveal animations were previously re-triggered by router transitions, replacing them with view-timeline removes a class of jank that shows up in the metrics discussed in Soft Navigation Core Web Vitals: What Changes for SPAs in 2026.
In client projects I now default to scroll-driven CSS for any reveal-on-scroll or progress-bar requirement, and only reach for a JavaScript library when the effect needs values CSS cannot express yet, such as scroll velocity.
Shipping it safely on a production site
Feature-detect before you rely on scroll-driven animations as the only experience:
Wrap the declarations in @supports (animation-timeline: scroll()) or @supports (animation-timeline: view()).
Always pair motion with a prefers-reduced-motion: reduce override.
Keep the animated properties limited to transform, opacity, and other compositor-friendly properties where possible, for the same reason you would with any CSS animation.
Test in actual Chrome, Safari, and Firefox 159+ rather than trusting a caniuse badge alone — behavior around animation-range insets still has edge cases per browser.
If your product also uses scoped CSS positioning for tooltips or popovers, pair this with the anchor positioning techniques in CSS Anchor Positioning Tooltips: Ditch Floating UI in 2026 to drop two more JavaScript dependencies at once.
If you are planning a redesign or a performance pass and want someone to audit where scroll-driven CSS can replace an animation library in your actual codebase, that is exactly the kind of work covered by Babul's web app development service.
Frequently asked questions
Do scroll-driven animations work without JavaScript at all?
Yes. Once you declare animation-timeline: scroll() or animation-timeline: view() on an element with a standard @keyframes animation, the browser drives the animation's progress from scroll position natively — no scroll event listener or requestAnimationFrame loop required.
Is browser support good enough to ship in 2026?
Support reached Baseline Newly available after Firefox 159 shipped on October 27, 2026, joining existing support in Chrome and Safari, according to web.dev's October 2026 platform update. For most products that means it is safe to use as a progressive enhancement behind an @supports check, though very old browser versions still need a fallback or no animation at all.
What is the difference between scroll-timeline and view-timeline?
scroll-timeline tracks how far a scroll container has been scrolled, which is ideal for progress bars and parallax. view-timeline tracks how far an individual element has traveled through its scrollport, which is ideal for reveal-on-scroll and sticky-header effects.
Can I combine scroll-driven animations with the View Transitions API?
They solve different problems and can be used together: View Transitions animate between two DOM states (like a page or router change), while scroll-driven animations animate continuously as the user scrolls within one state. Using both on the same project is common in content-heavy sites built with modern frameworks.
Will this replace libraries like GSAP ScrollTrigger?
For straightforward reveal, progress-bar, and parallax effects, native CSS now covers most of what those libraries were used for, so you can remove the dependency and its JavaScript weight. Libraries still have an edge for complex scrubbed timelines, scroll-velocity-based effects, and animations that need precise cross-browser easing control beyond what animation-range currently exposes.
Key takeaways
CSS scroll-driven animations reached Baseline Newly available on October 29, 2026, once Firefox 159 joined Chrome and Safari in supporting scroll-timeline and view-timeline.
Use scroll-timeline with the scroll() function for progress bars and parallax tied to a scrollable container.
Use view-timeline with the view() function and animation-range for reveal-on-scroll effects tied to an element's visibility.
These animations run off the main thread, which helps Interaction to Next Paint and reduces jank in SPA route transitions.
Always wrap scroll-driven CSS in @supports checks and respect prefers-reduced-motion before relying on it as the only experience.