Firefox 159 enables CSS scroll-driven animations by default
Mozilla’s October release lets developers tie CSS animations to scrolling without a JavaScript scroll handler.
Firefox 159, released on October 27, enabled CSS scroll-driven animations by default. Developers can tie an animation to progress through a scrollable area using CSS, making effects such as reading progress indicators possible without a JavaScript scroll listener.
How scroll timelines differ
A conventional CSS animation advances with time. A scroll-based timeline advances with the scroll position, so the animation can pause or reverse as a reader moves through a page.
What to test across browsers
Test the effect in each supported browser and make sure the underlying content remains usable without the animation. Effects that also hold an element in place require separate layout rules.
Sources: MDN release notes and Firefox release notes.
Share
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Angry
0
Sad
0
Wow
0