CSS SCROLL-DRIVEN ANIMATION GENERATOR
Build a scroll(), view()-powered reveal or progress bar and copy the CSS.
In short
Build a scroll-linked progress bar with scroll() or a reveal-on-scroll effect with view() using the modern animation-timeline CSS property — tune the range and effect, preview it in a live scrollable box, and copy the CSS. No JavaScript, runs entirely in your browser.
Scroll inside the box above to preview. Requires a browser with scroll-driven animation support (Chrome/Edge 115+).
.reveal {
animation: reveal-fade-up auto linear both;
animation-timeline: view();
animation-range: entry 0% cover 45%;
}
@keyframes reveal-fade-up {
from {
opacity: 0;
transform: translateY(40px);
}
to {
opacity: 1;
transform: translateY(0);
}
}How to use scroll-driven animation
- 1
Choose a mode: a reveal-on-scroll effect (view()) or a scroll-linked progress bar (scroll()).
- 2
For reveal, pick an effect and tune the animation-range start/end.
- 3
For the progress bar, pick a block and bar color.
- 4
Scroll inside the live preview box to see the animation tied to scroll position.
- 5
Copy the CSS and HTML — no JavaScript or scroll event listeners needed.
Questions
- What's the difference between scroll() and view() timelines?
- scroll() ties an animation's progress to how far a scrollable element has scrolled (0% at the top, 100% at the bottom) — ideal for a reading-progress bar. view() instead ties progress to how far an element has traveled through its scroller's visible viewport — ideal for triggering an effect as a section enters and leaves view.
- What does animation-range: entry 0% cover 45% mean?
- It scopes the view() timeline's 0%–100% progress to a sub-range of the element's visibility: entry 0% is the moment the element starts entering the viewport, and cover 45% is the point where it's 45% of the way through being fully covered by (scrolled past) the viewport — so the animation plays out entirely within that window instead of across the whole visible duration.
- Why doesn't the preview animate in my browser?
- animation-timeline, scroll(), and view() are a newer CSS feature currently supported in Chromium-based browsers (Chrome/Edge 115+) and shipping in others — if your browser doesn't support it yet, the elements will simply sit at their animation's 'from' state instead of animating, with no error.
- Do I need a fallback for unsupported browsers?
- Browsers that don't recognize animation-timeline just ignore it, so the element stays at whichever keyframe state its base animation or initial styles put it in — wrap the rule in @supports (animation-timeline: view()) if you want to provide a different fallback (e.g. a plain fade-in on load) for everyone else.
- Does this tool store or upload anything?
- No — every setting is applied and rendered locally in your browser. Nothing is sent to a server.
Related tools
- CSS Cubic-Bezier Easing Curve EditorDrag the control points of a cubic-bezier() easing curve, preview the motion live, and copy the finished value.
- CSS Stagger Animation GeneratorAnimate a list of items in sequence with generated nth-child delays — pick an effect, count, and timing, and copy the CSS.
- CSS Entrance Animation GeneratorBrowse a copy-ready gallery of entrance animations — fade up/down, blur in, scale in, slide in, flip in, zoom in — and copy the CSS.
- CSS Ken Burns Effect GeneratorBuild a slow zoom-and-pan Ken Burns effect for a background image, tune scale/pan/duration, and copy the CSS.
- CSS View Transitions GeneratorBuild View Transitions animations (crossfade, slide, cover, zoom, blur, wipe, circle reveal) with a live preview, and copy the CSS, HTML and startViewTransition script.
- CSS Retro Grid GeneratorGenerate a synthwave retro grid in pure CSS: a perspective floor with scrolling neon lines, a glowing horizon and a striped setting sun.
- CSS Animated Glowing Border GeneratorBuild a rotating conic-gradient border that chases around a card, with adjustable speed, thickness, and glow blur.
- CSS Skeleton Loader GeneratorDesign a skeleton loading placeholder with a shimmer or pulse animation, custom colors, speed, and radius, then copy the HTML and CSS.
Updated