20 CSS Scroll-Driven Animations
CSS is stepping into scroll-based animation - and it’s powerful. This collection features scroll-driven animation demos using the new @scroll-timeline and animation-timeline properties. From sticky headers and fading sections to progress indicators and parallax effects, see how CSS alone can deliver buttery-smooth, scroll-reactive experiences.
Last updated:
Scrollable Timeline with Animated Year Counter and Media
An elegant, kinetic, presentation-like website that uses scrolling to drive deep, layered animation and audio feedback.
CSS Scroll-Driven Content Wave
A fluid, tactile selection interface where elements “live” and react to scroll, creating a “fisheye” or lens effect.
Scroll-Driven Content Wave #2
A horizontal scroll interface featuring a “lens” effect powered by CSS Scroll-Driven Animations (animation-timeline: view(inline)).
Sliding List with Scroll-Driven Animations
This demo uses a single scroll event listener to calculate the individual progress of each list item as it enters the viewport. The progress value is then passed to a CSS Custom Property, which drives a staggered transform: scale() and opacity animation for a fluid, app-like reveal effect.
Scroll-Driven Web Gears Animation
A complex technical example demonstrating how to ensure animation functionality even without CSS animation-timeline: scroll() support. The code first checks for support and, if absent, uses GSAP ScrollTrigger as a polyfill for scroll-driven animation.
CSS in 2024 (Experimental Features)
Using experimental CSS features to build an advanced UI component, showcasing CSS Anchoring to attach the tooltip to the slider and Scroll-Driven Animations to drive the slider’s value and color change.
Scroll-Driven Gallery
A demonstration of the new CSS Scroll-Driven Animations (SDA) API, where the scroll position of the entire page directly drives a complex, scaling, and rotating grid of images, achieving a high-performance, engaging visual effect purely with CSS.
Filter Prototype with React
A dynamic React list component with search and filtering features, demonstrating optimized user experience by automatically sorting checked items to the top of the list, thereby enhancing navigation.
Coverflow 3D Effect with CSS
A truly modern image flow powered by CSS Scroll-driven Animations and view-timeline. This demo uses pure CSS to create a 3D perspective effect where images pop out and rotate as they enter the viewport, with no JavaScript required.
Sliding Images Using Animation-timeline
This scroll-driven animation effect is built entirely with CSS Scroll-Driven Animations, using animation-timeline: scroll(). It smoothly translates and transforms elements based on scroll position, creating a dynamic and high-performance parallax effect without JavaScript.
CSS Only Parallax Layers
A parallax effect implemented entirely in pure CSS using animation-timeline: view(). This modern solution ensures high performance as the animation is tied directly to the scroll position, eliminating the need for JavaScript.
CSS Scroll-Driven Reveal Animation
Native CSS Scroll-Driven Animation provides GPU-optimized smooth reveal of elements, ensuring flawless responsiveness without additional JavaScript.
Scroll-Driven Grid Animation with CSS-Doodle
A mesmerizing scroll-driven image grid powered by the cutting-edge animation-timeline: view() CSS property and the <css-doodle> web component.
Scroll Mask Indicators
A modern and clean way to indicate scrollability: the “fade-to-mist” effect is implemented using mask-image and linear-gradient, while key parameters of the fade phase are precisely tuned using @property.
Scroll-Driven Gooey Island
Check out this cutting-edge “sticky island” effect that dynamically squishes and transforms on scroll using CSS Scroll-Timeline. The core technical feature is creating the Gooey effect by combining filter: blur() and contrast() with absolute control linked to the scroll position.
Image Comparison Slider with CSS Scroll Animation
A cutting-edge image comparison slider powered by CSS scroll-driven animations, using view-timeline to link range input scrolling directly to the image masking logic.
CSS Sprite-Based Flip Carousel Using Scroll-Timeline
A modern implementation of interactive page flipping where the sprite animation (background-position) is fully synchronized with page scrolling using the new CSS scroll-timeline feature, eliminating JavaScript for timing control.
Image Gallery with View Transitions API and Scroll-Driven Animations
An advanced gallery with a carousel based on the native <dialog> element and Scroll-Driven Animations, where the View Transitions API synchronizes the modal opening with the carousel scroll to the selected image, delivering a smooth and functional UX.