Menu

Scroll-driven animations are Baseline: a reading progress bar and scroll reveals in pure CSS
πŸ“°

Scroll-driven animations are Baseline: a reading progress bar and scroll reveals in pure CSS

DEV Community: frontendΒ·Pouya MoradzadΒ·7 days ago
#SNFeC2Id
#devtofrontend#devto#dev#animation#scroll
Long article (755 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Firefox 159 shipped on October 27, 2026 with scroll-driven animations turned on by default. Chrome has had them since version 115 and Safari since 26, so the feature is now Baseline Newly available : it works in the current version of every major browser.

That means two of the most common bits of "scroll JavaScript" on the web, a reading progress bar and fade-in-on-scroll cards, can now be plain CSS. No scroll listeners, no IntersectionObserver , and the animation runs off the main thread.

Here's how both work, the one ordering bug that catches almost everyone, and how to ship it safely.

Two new timelines

A normal CSS animation runs on the document timeline: time passes, the animation moves from the first keyframe to the last.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.