A guide to Scroll-driven Animations with just CSS

June 30, 2025

Diagram showing "target" in blue, "+" sign, "keyframes" in green, "+" sign, and "timeline" in pink, each on separate dark backgrounds.

CSS animations have come a long way since Apple first introduced them to the web in 2007. What started as simple effects like animating from one color to another has turned into beautiful, complex images twisting and flying across the page.

But linking these animations to user behavior like scrolling has traditionally required third-party libraries and a fair bit of JavaScript, which adds some complexity to your code. But now, we can make those animations scroll-driven with nothing more than a few lines of CSS.

Scroll-driven animations have increased browser support and are available in Safari 26 beta, making it easier for you to create eye-catching effects on your page. Let me show you how.

Source: A guide to Scroll-driven Animations with just CSS | WebKit

A great intro to scroll driven animations using only CSS from the folks at Webkit.