Scroll-driven Animations Playground

Mrs. Lastri’s long cloth rolls through the frame’s window: write animation-timeline scroll() or view() and an animation-range, scroll it yourself, and the…

Why it matters

Reading progress bars, reveals on entry, parallax: they used to need a JS scroll listener working out positions every frame, which easily stutters. Now CSS is enough, and transform/opacity animations can run on the compositor.

The key idea

The progress is the scroll position, not time

Common mistakes

Try it in this playground