CSS STAGGER ANIMATION GENERATOR
Animate a list in sequence with generated nth-child delays, and copy the CSS.
In short
Animate a list of items in sequence with generated nth-child delays — pick an effect, item count, per-item delay, and duration, preview it live, and copy the CSS. No JavaScript, runs entirely in your browser.
Item 1
Item 2
Item 3
Item 4
Item 5
Item 6
Effect
Color
.stagger-item {
animation: stagger-fade-up 450ms ease both;
}
.stagger-item:nth-child(1) {
animation-delay: 0ms;
}
.stagger-item:nth-child(2) {
animation-delay: 80ms;
}
.stagger-item:nth-child(3) {
animation-delay: 160ms;
}
.stagger-item:nth-child(4) {
animation-delay: 240ms;
}
.stagger-item:nth-child(5) {
animation-delay: 320ms;
}
.stagger-item:nth-child(6) {
animation-delay: 400ms;
}
@keyframes stagger-fade-up {
from {
opacity: 0;
transform: translateY(16px);
}
to {
opacity: 1;
transform: translateY(0);
}
}How to use the stagger animation
- 1
Pick the number of items and an entrance effect (fade-up, scale-in, slide-left, or fade).
- 2
Tune the per-item delay and animation duration with the sliders.
- 3
Hit Replay to re-run the sequence.
- 4
Copy the CSS and HTML and apply the .stagger-item class to each item in your list.
Questions
- How does the stagger effect work without JavaScript?
- Each item shares the same @keyframes animation, but a separate rule for every position — .stagger-item:nth-child(1), :nth-child(2), and so on — gives each one a slightly larger animation-delay. The result is every item running the identical animation, just starting a beat after the one before it.
- What happens if I have more list items than generated nth-child rules?
- Items beyond the generated count will still run the base .stagger-item animation, just with animation-delay: 0 (or whatever the last matched rule set), so they'll animate in sync with an earlier item instead of continuing the staggered sequence — regenerate with a higher item count to cover your real list length.
- Can I use CSS custom properties instead of one rule per item?
- Yes — a more scalable alternative is animation-delay: calc(var(--i) * 80ms) on .stagger-item, with style="--i: 3" set inline per item (or via a templating loop). This generator outputs explicit nth-child rules instead because they're copy-paste-ready with zero markup changes required.
- Why does my list replay instantly instead of staggering on page load?
- CSS animations with both keyword only hold the 'to' state after finishing if the element existed before the animation started — if your items are added to the DOM dynamically (e.g. via JS after fetch), the animation-delay still works the same way relative to when each element is inserted and painted.
- 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 Scroll-Driven Animation GeneratorBuild a scroll-linked progress bar with scroll() or a reveal-on-scroll effect with view(), preview it live, 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 Cubic-Bezier Easing Curve EditorDrag the control points of a cubic-bezier() easing curve, preview the motion live, and copy the finished value.
- 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