9 CSS Stagger Animation Demos You Can Copy-Paste
A css stagger animation gives each item in a list or grid its own delay, so a group that starts together finishes appearing one after another instead of all at
01 stagger-animation-list-cascade
02 stagger-animation-grid-wave
03 stagger-animation-text-letters
04 stagger-animation-card-flip-sequence
05 stagger-animation-reverse-exit
06 stagger-animation-circular-ripple
07 stagger-animation-custom-property-calc
08 stagger-animation-sibling-index
09 stagger-animation-random-delay-scss
Auto-plays · click a tile to jump to its section · all nine in one zip
- 01 List cascade
- 02 Grid wave stagger
- 03 Letter-by-letter stagger
- 04 Sequential 3D card flip
- 05 Reverse-order exit
- 06 Circular ripple stagger
- 07 Delay via --i and one-line calc()
- 08 Auto delay via sibling-index()
- 09 Pseudo-random delay via SCSS random()
The order below tracks how each delay gets computed, not how flashy the result looks. 01 through 03 lean on plain nth-child math against a fixed item count. 04 through 06 build on that same idea with 3D rotation, a reversed exit direction, and distance from a center point. 07 and 08 skip counting items by hand altogether, one through an inline custom property and the other through a native browser function that reads sibling position directly. 09 takes a third approach — a delay picked once at compile time — but still loops over a fixed count the same way 01 through 06 do. Each of the css animation code examples below keeps only the rule that sets the delay; the full component, markup included, ships in the zip. When the items should never stop arriving at all, an endless loop replaces the delay math — that's the CSS marquee infinite loop — and when the point is progress rather than order, the CSS scroll progress bars cover it.
01List cascade
Where the css animation delay comes from
Three pill-shaped rows sit slightly shrunk and dropped 14px below their resting spot, then scale and slide into place 90ms apart as an SCSS loop assigns the delay by nth-child.
Where it fits
The bouncy easing reads livelier than a flat fade, which suits a notification feed or a search-results list where rows keep arriving.

<main class="stage">
<ul class="cascade is-demo">
<li>New message</li>
<li>Payment complete</li>
<li>Points earned</li>
</ul>
</main>@use "../../../../site/static/demo-tokens" as *;
$duration: $dur-base; // 항목 하나가 나타나는 시간
$easing: $ease-pop; // 톡 튀어 올라오는 느낌
$stagger: 90ms; // 항목 사이 시차
@include stage($stage-ink);
.cascade {
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
max-width: min(400px, 90vw);
font-weight: 600; font-size: clamp(12px, 3.4vw, 15px); line-height: 1.2; font-family: inherit;
li {
padding: clamp(8px, 2.6vw, 11px) clamp(12px, 3.4vw, 16px);
border-radius: $r-pill;
background: $subject-cream;
color: $stage-ink;
box-shadow: $shadow-raised;
animation: cascade-loop $dur-loop $easing infinite;
white-space: nowrap;
}
@for $i from 1 through 3 {
li:nth-child(#{$i}) { animation-delay: ($i - 1) * $stagger; }
}
}
@keyframes cascade-loop {
0%, 8% { opacity: 0; transform: translateY(14px) scale(.9); }
26%, 66% { opacity: 1; transform: translateY(0) scale(1); }
86%, 100% { opacity: 0; transform: translateY(-8px) scale(.96); }
}
@media (prefers-reduced-motion: reduce) {
.cascade li { animation: none; opacity: 1; transform: none; }
}html, body {
margin: 0;
overflow: hidden;
}
.stage {
box-sizing: border-box;
min-height: 100vh;
display: grid;
place-items: center;
margin: 0;
background: #17141a;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.cascade {
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
max-width: min(400px, 90vw);
font-weight: 600;
font-size: clamp(12px, 3.4vw, 15px);
line-height: 1.2;
font-family: inherit;
}
.cascade li {
padding: clamp(8px, 2.6vw, 11px) clamp(12px, 3.4vw, 16px);
border-radius: 999px;
background: #fff7e6;
color: #17141a;
box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
animation: cascade-loop 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
white-space: nowrap;
}
.cascade li:nth-child(1) {
animation-delay: 0ms;
}
.cascade li:nth-child(2) {
animation-delay: 90ms;
}
.cascade li:nth-child(3) {
animation-delay: 180ms;
}
@keyframes cascade-loop {
0%, 8% {
opacity: 0;
transform: translateY(14px) scale(0.9);
}
26%, 66% {
opacity: 1;
transform: translateY(0) scale(1);
}
86%, 100% {
opacity: 0;
transform: translateY(-8px) scale(0.96);
}
}
@media (prefers-reduced-motion: reduce) {
.cascade li {
animation: none;
opacity: 1;
transform: none;
}
}import type { CSSProperties } from "react";
import styles from "./ListCascade.module.scss";
export type ListCascadeProps = {
items: string[];
/** 항목 하나가 나타나는 시간 (기본 300ms) */
duration?: number;
easing?: string;
/** 항목 사이 시차 ms (기본 90ms) */
stagger?: number;
};
export default function ListCascade({
items,
duration = 300,
easing = "cubic-bezier(.2,1.4,.4,1)",
stagger = 90,
}: ListCascadeProps) {
return (
<ul className={styles.cascade} style={{ "--duration": `${duration}ms`, "--easing": easing } as CSSProperties}>
{items.map((label, i) => (
<li key={label} style={{ animationDelay: `${i * stagger}ms` }}>
{label}
</li>
))}
</ul>
);
}01 · List cascade — Measured area 9.301% · moving frames 12/23Original by GODRICH · SCSS and React ship in the zip · See the password
.cascade li {
opacity: 0;
transform: translateY(14px) scale(.9);
animation: cascade-loop $duration $easing infinite;
}
@for $i from 1 through 3 {
li:nth-child(#{$i}) { animation-delay: ($i - 1) * $stagger; }
}
@keyframes cascade-loop {
0%, 8% { opacity: 0; transform: translateY(14px) scale(.9); }
26%, 66% { opacity: 1; transform: translateY(0) scale(1); }
86%, 100% { opacity: 0; transform: translateY(-8px) scale(.96); }
}
02Grid wave stagger
How it works
Nine cells sit in a 3x3 grid, and each one's delay comes from adding its own row index to its column index, then multiplying that sum by 70ms. The bottom-right cell waits the longest of all nine.
Where it fits
The diagonal spread reads as a wave moving out from the top-left corner, which fits a dashboard card grid or a thumbnail gallery loading in.

<main class="stage">
<div class="grid is-demo">
<span class="cell">1</span><span class="cell">2</span><span class="cell">3</span>
<span class="cell">4</span><span class="cell">5</span><span class="cell">6</span>
<span class="cell">7</span><span class="cell">8</span><span class="cell">9</span>
</div>
</main>@use "sass:math";
@use "../../../../site/static/demo-tokens" as *;
$duration: $dur-base; // 칸 하나가 나타나는 시간
$easing: $ease-out; // 시작 빠르고 끝은 부드럽게
$wave: 70ms; // (행+열) 1당 시차 계수
@include stage($stage-yellow);
.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: clamp(5px, 1.8vw, 10px);
width: min(150px, 50vw);
aspect-ratio: 1;
}
.cell {
display: grid;
place-items: center;
border-radius: $r-control;
background: $stage-ink;
color: $stage-yellow;
font-weight: 700; font-size: clamp(12px, 3.4vw, 16px); line-height: 1; font-family: inherit;
}
// 반복 재생은 데모 상태에서만 — 정지 상태의 칸은 불투명해야 글자가 읽힌다(옐로 글자 · 먹 면 12.63:1)
.grid.is-demo .cell { animation: wave-loop $dur-loop $easing infinite; }
$cols: 3;
@for $i from 1 through 9 {
$row: math.floor(math.div($i - 1, $cols));
$col: ($i - 1) % $cols;
.grid.is-demo .cell:nth-child(#{$i}) { animation-delay: ($row + $col) * $wave; }
}
@keyframes wave-loop {
0%, 6% { opacity: 0; transform: scale(.5); }
22%, 62% { opacity: 1; transform: scale(1); }
84%, 100% { opacity: 0; transform: scale(.7); }
}
@media (prefers-reduced-motion: reduce) {
.cell { animation: none; opacity: 1; transform: none; }
}html, body {
margin: 0;
overflow: hidden;
}
.stage {
box-sizing: border-box;
min-height: 100vh;
display: grid;
place-items: center;
margin: 0;
background: #ffd23f;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: clamp(5px, 1.8vw, 10px);
width: min(150px, 50vw);
aspect-ratio: 1;
}
.cell {
display: grid;
place-items: center;
border-radius: 12px;
background: #17141a;
color: #ffd23f;
font-weight: 700;
font-size: clamp(12px, 3.4vw, 16px);
line-height: 1;
font-family: inherit;
}
.grid.is-demo .cell {
animation: wave-loop 2s ease-out infinite;
}
.grid.is-demo .cell:nth-child(1) {
animation-delay: 0ms;
}
.grid.is-demo .cell:nth-child(2) {
animation-delay: 70ms;
}
.grid.is-demo .cell:nth-child(3) {
animation-delay: 140ms;
}
.grid.is-demo .cell:nth-child(4) {
animation-delay: 70ms;
}
.grid.is-demo .cell:nth-child(5) {
animation-delay: 140ms;
}
.grid.is-demo .cell:nth-child(6) {
animation-delay: 210ms;
}
.grid.is-demo .cell:nth-child(7) {
animation-delay: 140ms;
}
.grid.is-demo .cell:nth-child(8) {
animation-delay: 210ms;
}
.grid.is-demo .cell:nth-child(9) {
animation-delay: 280ms;
}
@keyframes wave-loop {
0%, 6% {
opacity: 0;
transform: scale(0.5);
}
22%, 62% {
opacity: 1;
transform: scale(1);
}
84%, 100% {
opacity: 0;
transform: scale(0.7);
}
}
@media (prefers-reduced-motion: reduce) {
.cell {
animation: none;
opacity: 1;
transform: none;
}
}import styles from "./GridWave.module.scss";
export type GridWaveProps = {
cells?: (string | number)[];
cols?: number;
/** (행+열) 1당 시차 ms (기본 70ms) */
wave?: number;
duration?: number;
easing?: string;
};
export default function GridWave({
cells = [1, 2, 3, 4, 5, 6, 7, 8, 9],
cols = 3,
wave = 70,
duration = 300,
easing = "ease-out",
}: GridWaveProps) {
return (
<div className={styles.grid}>
{cells.map((cell, i) => {
const row = Math.floor(i / cols);
const col = i % cols;
return (
<span
key={i}
className={styles.cell}
style={{
animationDelay: `${(row + col) * wave}ms`,
animationDuration: "2s",
transitionDuration: `${duration}ms`,
transitionTimingFunction: easing,
}}
>
{cell}
</span>
);
})}
</div>
);
}02 · Grid wave stagger — Measured area 11.562% · moving frames 18/23Original by GODRICH · SCSS and React ship in the zip · See the password
$cols: 3;
@for $i from 1 through 9 {
$row: math.floor(math.div($i - 1, $cols));
$col: ($i - 1) % $cols;
.cell:nth-child(#{$i}) { animation-delay: ($row + $col) * $wave; }
}
@keyframes wave-loop {
0%, 6% { opacity: 0; transform: scale(.5); }
22%, 62% { opacity: 1; transform: scale(1); }
84%, 100% { opacity: 0; transform: scale(.7); }
}
03Letter-by-letter stagger
How it works
Each character of a heading sits in its own span and pops up from 16px below, 30ms after the letter before it. A five-character word arrives as a quick cascade instead of one block of text fading in together.
Where it fits
It fits a hero headline or a logo intro, where the first thing on the page deserves its own small entrance.

<main class="stage">
<h1 class="letters is-demo">
<span>H</span><span>E</span><span>L</span><span>L</span><span>O</span>
</h1>
</main>@use "../../../../site/static/demo-tokens" as *;
$duration: $dur-quick; // 글자 하나가 튀어오르는 시간
$easing: $ease-pop; // 아래에서 튀어오르는 느낌
$stagger: 30ms; // 글자 사이 시차
@include stage($stage-orange);
.letters {
margin: 0;
display: flex;
gap: clamp(2px, 1vw, 6px);
font-weight: 800; font-size: clamp(24px, 9vw, 40px); line-height: 1; font-family: inherit;
color: $subject-cream;
span {
display: inline-block;
animation: letter-loop $dur-loop $easing infinite;
}
@for $i from 1 through 5 {
span:nth-child(#{$i}) { animation-delay: ($i - 1) * $stagger; }
}
}
@keyframes letter-loop {
0%, 4% { opacity: 0; transform: translateY(16px); }
20%, 66% { opacity: 1; transform: translateY(0); }
86%, 100% { opacity: 0; transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
.letters span { animation: none; opacity: 1; transform: none; }
}html, body {
margin: 0;
overflow: hidden;
}
.stage {
box-sizing: border-box;
min-height: 100vh;
display: grid;
place-items: center;
margin: 0;
background: #ff4d1f;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.letters {
margin: 0;
display: flex;
gap: clamp(2px, 1vw, 6px);
font-weight: 800;
font-size: clamp(24px, 9vw, 40px);
line-height: 1;
font-family: inherit;
color: #fff7e6;
}
.letters span {
display: inline-block;
animation: letter-loop 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}
.letters span:nth-child(1) {
animation-delay: 0ms;
}
.letters span:nth-child(2) {
animation-delay: 30ms;
}
.letters span:nth-child(3) {
animation-delay: 60ms;
}
.letters span:nth-child(4) {
animation-delay: 90ms;
}
.letters span:nth-child(5) {
animation-delay: 120ms;
}
@keyframes letter-loop {
0%, 4% {
opacity: 0;
transform: translateY(16px);
}
20%, 66% {
opacity: 1;
transform: translateY(0);
}
86%, 100% {
opacity: 0;
transform: translateY(-10px);
}
}
@media (prefers-reduced-motion: reduce) {
.letters span {
animation: none;
opacity: 1;
transform: none;
}
}export type LetterStaggerProps = {
text: string;
/** 글자 사이 시차 ms (기본 30ms) */
stagger?: number;
duration?: number;
easing?: string;
};
import styles from "./LetterStagger.module.scss";
export default function LetterStagger({ text, stagger = 30 }: LetterStaggerProps) {
return (
<h1 className={styles.letters}>
{[...text].map((ch, i) => (
<span key={i} style={{ animationDelay: `${i * stagger}ms` }}>
{ch}
</span>
))}
</h1>
);
}03 · Letter-by-letter stagger — Measured area 4.64% · moving frames 10/23Original by GODRICH · SCSS and React ship in the zip · See the password
.letters span {
opacity: 0;
transform: translateY(16px);
animation: letter-loop $duration $easing infinite;
}
@for $i from 1 through 5 {
span:nth-child(#{$i}) { animation-delay: ($i - 1) * $stagger; }
}
@keyframes letter-loop {
0%, 4% { opacity: 0; transform: translateY(16px); }
20%, 66% { opacity: 1; transform: translateY(0); }
86%, 100% { opacity: 0; transform: translateY(-10px); }
}
04Sequential 3D card flip
How it works
Three plan cards start turned 90 degrees on the Y axis inside a parent carrying perspective, then unfold to face forward one at a time, 150ms apart.
Where it fits
Because the turn happens in true 3D space instead of as a flat scale, each card reads as an object rotating toward the viewer, which suits a pricing comparison or a stack of spec cards.

<main class="stage">
<div class="cards is-demo">
<div class="card">Basic</div>
<div class="card">Pro</div>
<div class="card">Team</div>
</div>
</main>@use "../../../../site/static/demo-tokens" as *;
$duration: $dur-base; // 카드 한 장이 펴지는 시간
$easing: $ease-out; // 시작 빠르고 끝은 부드럽게
$stagger: 150ms; // 카드 사이 시차
@include stage($stage-paper);
.cards {
display: flex;
gap: clamp(8px, 2.6vw, 14px);
perspective: 600px;
}
.card {
width: clamp(56px, 16vw, 76px);
height: clamp(64px, 18vw, 84px);
display: grid;
place-items: center;
border-radius: $r-card;
background: $subject-blue-deep;
color: $subject-cream;
font-weight: 700; font-size: clamp(11px, 3vw, 13px); line-height: 1.2; font-family: inherit;
transform-style: preserve-3d;
}
// 반복 재생은 데모 상태에서만 — 정지 상태의 카드는 불투명해야 글자가 읽힌다(크림 글자 · 진파랑 면 5.98:1)
.cards.is-demo .card { animation: flip-loop $dur-loop $easing infinite; }
@for $i from 1 through 3 {
.cards.is-demo .card:nth-child(#{$i}) { animation-delay: ($i - 1) * $stagger; }
}
@keyframes flip-loop {
0%, 6% { opacity: 0; transform: rotateY(90deg); }
26%, 66% { opacity: 1; transform: rotateY(0deg); }
86%, 100% { opacity: 0; transform: rotateY(-90deg); }
}
@media (prefers-reduced-motion: reduce) {
.card { animation: none; opacity: 1; transform: none; }
}html, body {
margin: 0;
overflow: hidden;
}
.stage {
box-sizing: border-box;
min-height: 100vh;
display: grid;
place-items: center;
margin: 0;
background: #ffffff;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.cards {
display: flex;
gap: clamp(8px, 2.6vw, 14px);
perspective: 600px;
}
.card {
width: clamp(56px, 16vw, 76px);
height: clamp(64px, 18vw, 84px);
display: grid;
place-items: center;
border-radius: 16px;
background: #0a4fe8;
color: #fff7e6;
font-weight: 700;
font-size: clamp(11px, 3vw, 13px);
line-height: 1.2;
font-family: inherit;
transform-style: preserve-3d;
}
.cards.is-demo .card {
animation: flip-loop 2s ease-out infinite;
}
.cards.is-demo .card:nth-child(1) {
animation-delay: 0ms;
}
.cards.is-demo .card:nth-child(2) {
animation-delay: 150ms;
}
.cards.is-demo .card:nth-child(3) {
animation-delay: 300ms;
}
@keyframes flip-loop {
0%, 6% {
opacity: 0;
transform: rotateY(90deg);
}
26%, 66% {
opacity: 1;
transform: rotateY(0deg);
}
86%, 100% {
opacity: 0;
transform: rotateY(-90deg);
}
}
@media (prefers-reduced-motion: reduce) {
.card {
animation: none;
opacity: 1;
transform: none;
}
}import styles from "./CardFlipSequence.module.scss";
export type CardFlipSequenceProps = {
cards: string[];
/** 카드 사이 시차 ms (기본 150ms) */
stagger?: number;
duration?: number;
easing?: string;
};
export default function CardFlipSequence({ cards, stagger = 150 }: CardFlipSequenceProps) {
return (
<div className={styles.cards}>
{cards.map((label, i) => (
<div key={label} className={styles.card} style={{ animationDelay: `${i * stagger}ms` }}>
{label}
</div>
))}
</div>
);
}04 · Sequential 3D card flip — Measured area 13.364% · moving frames 17/23Original by GODRICH · SCSS and React ship in the zip · See the password
.cards { perspective: 600px; }
.card {
opacity: 0;
transform: rotateY(90deg);
transform-style: preserve-3d;
animation: flip-loop $duration $easing infinite;
}
@for $i from 1 through 3 {
.card:nth-child(#{$i}) { animation-delay: ($i - 1) * $stagger; }
}
@keyframes flip-loop {
0%, 6% { opacity: 0; transform: rotateY(90deg); }
26%, 66% { opacity: 1; transform: rotateY(0deg); }
86%, 100% { opacity: 0; transform: rotateY(-90deg); }
}
05Reverse-order exit
How it works
Three saved-state pills enter top to bottom in list order — the first arriving first, the third arriving last — each on its own three-stage keyframe instead of a shared delay value. Leaving runs backward: the third pill, the one that arrived last, fades out first, and the first pill holds on screen until the very end.
Where it fits
That reversal suits a stack of toast notifications or a list of pending deletions, where whatever showed up most recently should also be the one to disappear first.

<main class="stage">
<ul class="toasts is-demo">
<li>Saved</li>
<li>Shared</li>
<li>Done</li>
</ul>
</main>@use "../../../../site/static/demo-tokens" as *;
$duration: $dur-base; // 항목 한 개가 트랜지션되는 시간
$easing: $ease-out; // 시작 빠르고 끝은 부드럽게
$color: $subject-cream; // 항목 배경색
@include stage($stage-ink);
.toasts {
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
max-width: min(360px, 88vw);
font-weight: 600; font-size: clamp(12px, 3.4vw, 15px); line-height: 1.2; font-family: inherit;
li {
padding: clamp(8px, 2.6vw, 11px) clamp(14px, 3.6vw, 18px);
border-radius: $r-pill;
background: $color;
color: $stage-ink;
box-shadow: $shadow-raised;
}
}
// 들어올 땐 위(01)→아래(03) 순, 나갈 땐 아래(03)→위(01) 순 — 방향이 반대다
@keyframes exit-1 {
0%, 5% { opacity: 0; transform: translateY(-8px); }
15%, 78% { opacity: 1; transform: translateY(0); }
90%, 100% { opacity: 0; transform: translateY(-8px); }
}
@keyframes exit-2 {
0%, 15% { opacity: 0; transform: translateY(-8px); }
25%, 63% { opacity: 1; transform: translateY(0); }
75%, 100% { opacity: 0; transform: translateY(-8px); }
}
@keyframes exit-3 {
0%, 25% { opacity: 0; transform: translateY(-8px); }
35%, 53% { opacity: 1; transform: translateY(0); }
65%, 100% { opacity: 0; transform: translateY(-8px); }
}
.toasts li:nth-child(1) { animation: exit-1 $dur-loop $easing infinite; }
.toasts li:nth-child(2) { animation: exit-2 $dur-loop $easing infinite; }
.toasts li:nth-child(3) { animation: exit-3 $dur-loop $easing infinite; }
@media (prefers-reduced-motion: reduce) {
.toasts li { animation: none; opacity: 1; transform: none; }
}html, body {
margin: 0;
overflow: hidden;
}
.stage {
box-sizing: border-box;
min-height: 100vh;
display: grid;
place-items: center;
margin: 0;
background: #17141a;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.toasts {
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
max-width: min(360px, 88vw);
font-weight: 600;
font-size: clamp(12px, 3.4vw, 15px);
line-height: 1.2;
font-family: inherit;
}
.toasts li {
padding: clamp(8px, 2.6vw, 11px) clamp(14px, 3.6vw, 18px);
border-radius: 999px;
background: #fff7e6;
color: #17141a;
box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}
@keyframes exit-1 {
0%, 5% {
opacity: 0;
transform: translateY(-8px);
}
15%, 78% {
opacity: 1;
transform: translateY(0);
}
90%, 100% {
opacity: 0;
transform: translateY(-8px);
}
}
@keyframes exit-2 {
0%, 15% {
opacity: 0;
transform: translateY(-8px);
}
25%, 63% {
opacity: 1;
transform: translateY(0);
}
75%, 100% {
opacity: 0;
transform: translateY(-8px);
}
}
@keyframes exit-3 {
0%, 25% {
opacity: 0;
transform: translateY(-8px);
}
35%, 53% {
opacity: 1;
transform: translateY(0);
}
65%, 100% {
opacity: 0;
transform: translateY(-8px);
}
}
.toasts li:nth-child(1) {
animation: exit-1 2s ease-out infinite;
}
.toasts li:nth-child(2) {
animation: exit-2 2s ease-out infinite;
}
.toasts li:nth-child(3) {
animation: exit-3 2s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
.toasts li {
animation: none;
opacity: 1;
transform: none;
}
}import styles from "./ReverseExit.module.scss";
export type ReverseExitProps = {
/** 정확히 3개 — 들어올 땐 위→아래 순, 나갈 땐 아래→위 역순 */
items: [string, string, string];
};
const CLASS = [styles.exit1, styles.exit2, styles.exit3];
export default function ReverseExit({ items }: ReverseExitProps) {
return (
<ul className={styles.toasts}>
{items.map((label, i) => (
<li key={label} className={CLASS[i]}>
{label}
</li>
))}
</ul>
);
}05 · Reverse-order exit — Measured area 6.794% · moving frames 17/23Original by GODRICH · SCSS and React ship in the zip · See the password
@keyframes exit-1 {
0%, 5% { opacity: 0; transform: translateY(-8px); }
15%, 78% { opacity: 1; transform: translateY(0); }
90%, 100% { opacity: 0; transform: translateY(-8px); }
}
@keyframes exit-3 {
0%, 25% { opacity: 0; transform: translateY(-8px); }
35%, 53% { opacity: 1; transform: translateY(0); }
65%, 100% { opacity: 0; transform: translateY(-8px); }
}
.toasts li:nth-child(1) { animation: exit-1 $duration $easing infinite; }
.toasts li:nth-child(3) { animation: exit-3 $duration $easing infinite; }
06Circular ripple stagger
How it works
Nine dots sit in a 3x3 grid, and each one's delay is set by its straight-line distance from the center dot. The center itself waits zero milliseconds, the four edge dots wait one step, and the four corner dots wait 1.41 steps for the diagonal.
Where it fits
The result reads as a ring expanding outward from the middle, which suits a like-button burst or a grid of notification icons all reacting to one tap.

<main class="stage">
<div class="ripple is-demo">
<span></span><span></span><span></span>
<span></span><span></span><span></span>
<span></span><span></span><span></span>
</div>
</main>@use "../../../../site/static/demo-tokens" as *;
$duration: $dur-base; // 점 하나가 커지는 시간
$easing: $ease-out; // 시작 빠르고 끝은 부드럽게
$step: 90ms; // 중심 거리 1당 시차 계수
@include stage($stage-yellow);
.ripple {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: clamp(10px, 3vw, 16px);
width: min(160px, 55vw);
aspect-ratio: 1;
span {
border-radius: 50%;
background: $stage-ink;
animation: ripple-loop $dur-loop $easing infinite;
}
// 3×3, 중심(칸 5)까지의 거리 × $step — 코너는 √2, 변은 1, 중심은 0
span:nth-child(1) { animation-delay: $step * 1.41; }
span:nth-child(2) { animation-delay: $step * 1; }
span:nth-child(3) { animation-delay: $step * 1.41; }
span:nth-child(4) { animation-delay: $step * 1; }
span:nth-child(5) { animation-delay: 0ms; }
span:nth-child(6) { animation-delay: $step * 1; }
span:nth-child(7) { animation-delay: $step * 1.41; }
span:nth-child(8) { animation-delay: $step * 1; }
span:nth-child(9) { animation-delay: $step * 1.41; }
}
@keyframes ripple-loop {
0%, 4% { opacity: 0; transform: scale(.3); }
24%, 58% { opacity: 1; transform: scale(1); }
84%, 100% { opacity: 0; transform: scale(.6); }
}
@media (prefers-reduced-motion: reduce) {
.ripple span { animation: none; opacity: 1; transform: none; }
}html, body {
margin: 0;
overflow: hidden;
}
.stage {
box-sizing: border-box;
min-height: 100vh;
display: grid;
place-items: center;
margin: 0;
background: #ffd23f;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.ripple {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: clamp(10px, 3vw, 16px);
width: min(160px, 55vw);
aspect-ratio: 1;
}
.ripple span {
border-radius: 50%;
background: #17141a;
animation: ripple-loop 2s ease-out infinite;
}
.ripple span:nth-child(1) {
animation-delay: 126.9ms;
}
.ripple span:nth-child(2) {
animation-delay: 90ms;
}
.ripple span:nth-child(3) {
animation-delay: 126.9ms;
}
.ripple span:nth-child(4) {
animation-delay: 90ms;
}
.ripple span:nth-child(5) {
animation-delay: 0ms;
}
.ripple span:nth-child(6) {
animation-delay: 90ms;
}
.ripple span:nth-child(7) {
animation-delay: 126.9ms;
}
.ripple span:nth-child(8) {
animation-delay: 90ms;
}
.ripple span:nth-child(9) {
animation-delay: 126.9ms;
}
@keyframes ripple-loop {
0%, 4% {
opacity: 0;
transform: scale(0.3);
}
24%, 58% {
opacity: 1;
transform: scale(1);
}
84%, 100% {
opacity: 0;
transform: scale(0.6);
}
}
@media (prefers-reduced-motion: reduce) {
.ripple span {
animation: none;
opacity: 1;
transform: none;
}
}import styles from "./CircularRipple.module.scss";
// 3×3, 중심(인덱스 4)까지의 거리 — 코너는 √2, 변은 1, 중심은 0
const DIST = [Math.SQRT2, 1, Math.SQRT2, 1, 0, 1, Math.SQRT2, 1, Math.SQRT2];
export type CircularRippleProps = {
/** 중심 거리 1당 시차 ms (기본 90ms) */
step?: number;
};
export default function CircularRipple({ step = 90 }: CircularRippleProps) {
return (
<div className={styles.ripple}>
{DIST.map((d, i) => (
<span key={i} style={{ animationDelay: `${d * step}ms` }} />
))}
</div>
);
}06 · Circular ripple stagger — Measured area 9.975% · moving frames 15/23Original by GODRICH · SCSS and React ship in the zip · See the password
.ripple span {
opacity: 0;
transform: scale(.3);
animation: ripple-loop $duration $easing infinite;
}
// distance from the center cell (5th of 9) times $step — corners 1.41, edges 1, center 0
span:nth-child(1) { animation-delay: $step * 1.41; }
span:nth-child(5) { animation-delay: 0ms; }
span:nth-child(9) { animation-delay: $step * 1.41; }
@keyframes ripple-loop {
0%, 4% { opacity: 0; transform: scale(.3); }
24%, 58% { opacity: 1; transform: scale(1); }
84%, 100% { opacity: 0; transform: scale(.6); }
}
07Delay via --i and one-line calc()
How it works
Each of the four rows carries only an inline --i value in its markup — 0, 1, 2, 3 — and one declaration, animation-delay: calc(var(--i) * 80ms), turns that number into a staggered entrance with no SCSS loop at all. Because the count lives in the markup instead of a compiled rule per item, adding a fifth row just means writing style="--i:4" and nothing in the stylesheet has to change.
Where it fits
It suits a general-purpose list component that different pages reuse with different row counts.

<main class="stage">
<ul class="i-list is-demo">
<li style="--i:0">Item 1</li>
<li style="--i:1">Item 2</li>
<li style="--i:2">Item 3</li>
<li style="--i:3">Item 4</li>
</ul>
</main>@use "../../../../site/static/demo-tokens" as *;
$duration: $dur-quick; // 항목 하나가 나타나는 시간
$easing: $ease-out; // 시작 빠르고 끝은 부드럽게
$stagger: 80ms; // --i 1당 시차
@include stage($stage-orange);
.i-list {
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
max-width: min(360px, 88vw);
font-weight: 600; font-size: clamp(12px, 3.4vw, 15px); line-height: 1.2; font-family: inherit;
li {
padding: clamp(8px, 2.6vw, 11px) clamp(12px, 3.4vw, 16px);
border-radius: $r-control;
background: $subject-cream;
color: $stage-ink;
box-shadow: $shadow-raised;
animation: i-loop $dur-loop $easing infinite;
animation-delay: calc(var(--i) * #{$stagger}); // ← --i 변수 + calc 한 줄
}
}
@keyframes i-loop {
0%, 6% { opacity: 0; transform: translateY(10px); }
22%, 68% { opacity: 1; transform: translateY(0); }
88%, 100% { opacity: 0; transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
.i-list li { animation: none; opacity: 1; transform: none; }
}html, body {
margin: 0;
overflow: hidden;
}
.stage {
box-sizing: border-box;
min-height: 100vh;
display: grid;
place-items: center;
margin: 0;
background: #ff4d1f;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.i-list {
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
max-width: min(360px, 88vw);
font-weight: 600;
font-size: clamp(12px, 3.4vw, 15px);
line-height: 1.2;
font-family: inherit;
}
.i-list li {
padding: clamp(8px, 2.6vw, 11px) clamp(12px, 3.4vw, 16px);
border-radius: 12px;
background: #fff7e6;
color: #17141a;
box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
animation: i-loop 2s ease-out infinite;
animation-delay: calc(var(--i) * 80ms);
}
@keyframes i-loop {
0%, 6% {
opacity: 0;
transform: translateY(10px);
}
22%, 68% {
opacity: 1;
transform: translateY(0);
}
88%, 100% {
opacity: 0;
transform: translateY(6px);
}
}
@media (prefers-reduced-motion: reduce) {
.i-list li {
animation: none;
opacity: 1;
transform: none;
}
}import type { CSSProperties } from "react";
import styles from "./CustomPropertyList.module.scss";
type Vars = CSSProperties & { "--i"?: number };
export type CustomPropertyListProps = {
items: string[];
/** --i 1당 시차 ms (기본 80ms) — CSS 쪽 calc(var(--i) * 80ms) 한 줄이 실제 계산을 한다 */
stagger?: number;
};
export default function CustomPropertyList({ items }: CustomPropertyListProps) {
return (
<ul className={styles.list}>
{items.map((label, i) => (
<li key={label} style={{ "--i": i } as Vars}>
{label}
</li>
))}
</ul>
);
}07 · Delay via --i and one-line calc() — Measured area 13.745% · moving frames 15/23Original by GODRICH · SCSS and React ship in the zip · See the password
// html: <li style="--i:0">, <li style="--i:1">, ...
.i-list li {
opacity: 0;
transform: translateY(10px);
animation: i-loop $duration $easing infinite;
animation-delay: calc(var(--i) * 80ms);
}
@keyframes i-loop {
0%, 6% { opacity: 0; transform: translateY(10px); }
22%, 68% { opacity: 1; transform: translateY(0); }
88%, 100% { opacity: 0; transform: translateY(6px); }
}
08Auto delay via sibling-index()
How it works
Six tiles get no inline --i and no compiled nth-child rule at all — animation-delay: calc(sibling-index() * 100ms) reads each element's own position among its siblings directly inside the browser.
Where it fits
That makes the markup lighter than item 07's, since nothing needs to be written into the HTML, but it currently only runs in Chrome and Edge 138 and newer (MDN's sibling-index() reference).

<main class="stage">
<div class="tiles is-demo">
<span></span><span></span><span></span>
<span></span><span></span><span></span>
</div>
</main>@use "../../../../site/static/demo-tokens" as *;
$duration: $dur-quick; // 타일 하나가 나타나는 시간
$easing: $ease-out; // 시작 빠르고 끝은 부드럽게
$stagger: 100ms; // 형제 순서 1당 시차
@include stage($stage-paper);
// sibling-index() 는 --i 변수도 nth-child 반복문도 없이 형제 순서를 직접 읽는다 (Chrome/Edge 138+)
.tiles {
display: flex;
gap: clamp(6px, 2vw, 10px);
span {
width: clamp(30px, 8vw, 40px);
height: clamp(30px, 8vw, 40px);
border-radius: $r-control;
background: $subject-blue;
animation: tile-loop $dur-loop $easing infinite;
animation-delay: calc(sibling-index() * #{$stagger});
}
}
@keyframes tile-loop {
0%, 6% { opacity: 0; transform: scale(.5); }
22%, 68% { opacity: 1; transform: scale(1); }
88%, 100% { opacity: 0; transform: scale(.7); }
}
@media (prefers-reduced-motion: reduce) {
.tiles span { animation: none; opacity: 1; transform: none; }
}html, body {
margin: 0;
overflow: hidden;
}
.stage {
box-sizing: border-box;
min-height: 100vh;
display: grid;
place-items: center;
margin: 0;
background: #ffffff;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.tiles {
display: flex;
gap: clamp(6px, 2vw, 10px);
}
.tiles span {
width: clamp(30px, 8vw, 40px);
height: clamp(30px, 8vw, 40px);
border-radius: 12px;
background: #2f6df6;
animation: tile-loop 2s ease-out infinite;
animation-delay: calc(sibling-index() * 100ms);
}
@keyframes tile-loop {
0%, 6% {
opacity: 0;
transform: scale(0.5);
}
22%, 68% {
opacity: 1;
transform: scale(1);
}
88%, 100% {
opacity: 0;
transform: scale(0.7);
}
}
@media (prefers-reduced-motion: reduce) {
.tiles span {
animation: none;
opacity: 1;
transform: none;
}
}import styles from "./SiblingIndexTiles.module.scss";
export type SiblingIndexTilesProps = {
/** 타일 개수 (기본 6) — --i 도 nth-child 도 없이 sibling-index() 가 형제 순서를 읽는다 */
count?: number;
};
export default function SiblingIndexTiles({ count = 6 }: SiblingIndexTilesProps) {
return (
<div className={styles.tiles}>
{Array.from({ length: count }, (_, i) => (
<span key={i} />
))}
</div>
);
}08 · Auto delay via sibling-index() — Measured area 5.736% · moving frames 18/23Original by GODRICH · SCSS and React ship in the zip · See the password
.tiles span {
opacity: 0;
transform: scale(.5);
animation: tile-loop $duration $easing infinite;
animation-delay: calc(sibling-index() * 100ms);
}
@keyframes tile-loop {
0%, 6% { opacity: 0; transform: scale(.5); }
22%, 68% { opacity: 1; transform: scale(1); }
88%, 100% { opacity: 0; transform: scale(.7); }
}
09Pseudo-random delay via SCSS random()
How it works
Five badges each get a delay somewhere between 0 and 420ms from SCSS's random() function, called once per badge inside a compile-time loop rather than once per page load.
Where it fits
Because sass resolves random() while turning style.scss into style.css, those five values are picked exactly once and then sit fixed in the shipped stylesheet — reloading the page never reshuffles which badge lands first.

<main class="stage">
<div class="badges is-demo">
<span class="badge">Popular</span>
<span class="badge">New</span>
<span class="badge">Sale</span>
<span class="badge">Limited</span>
<span class="badge">Best</span>
</div>
</main>@use "../../../../site/static/demo-tokens" as *;
$duration: $dur-quick; // 배지 하나가 나타나는 시간
$easing: $ease-pop; // 톡 튀어 올라오는 느낌
$max-delay: 420; // 랜덤 지연 상한(ms) — SCSS random() 이 컴파일 시점에 고정한다
@include stage($stage-ink);
.badges {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
max-width: min(380px, 90vw);
font-weight: 700; font-size: clamp(11px, 3vw, 13px); line-height: 1.2; font-family: inherit;
}
.badge {
padding: clamp(7px, 2.2vw, 9px) clamp(11px, 3vw, 14px);
border-radius: $r-pill;
background: $subject-cream;
color: $stage-ink;
box-shadow: $shadow-raised;
animation: badge-loop $dur-loop $easing infinite;
}
// 항목마다 컴파일 시점에 고정된 서로 다른 지연 — 균일 간격이 아니라 흩뿌려진 느낌
@for $i from 1 through 5 {
.badge:nth-child(#{$i}) { animation-delay: random($max-delay) * 1ms; }
}
@keyframes badge-loop {
0%, 4% { opacity: 0; transform: translateY(10px) scale(.9); }
16%, 60% { opacity: 1; transform: translateY(0) scale(1); }
84%, 100% { opacity: 0; transform: translateY(-6px) scale(.95); }
}
@media (prefers-reduced-motion: reduce) {
.badge { animation: none; opacity: 1; transform: none; }
}html, body {
margin: 0;
overflow: hidden;
}
.stage {
box-sizing: border-box;
min-height: 100vh;
display: grid;
place-items: center;
margin: 0;
background: #17141a;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.badges {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
max-width: min(380px, 90vw);
font-weight: 700;
font-size: clamp(11px, 3vw, 13px);
line-height: 1.2;
font-family: inherit;
}
.badge {
padding: clamp(7px, 2.2vw, 9px) clamp(11px, 3vw, 14px);
border-radius: 999px;
background: #fff7e6;
color: #17141a;
box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
animation: badge-loop 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}
.badge:nth-child(1) {
animation-delay: 160ms;
}
.badge:nth-child(2) {
animation-delay: 175ms;
}
.badge:nth-child(3) {
animation-delay: 136ms;
}
.badge:nth-child(4) {
animation-delay: 122ms;
}
.badge:nth-child(5) {
animation-delay: 193ms;
}
@keyframes badge-loop {
0%, 4% {
opacity: 0;
transform: translateY(10px) scale(0.9);
}
16%, 60% {
opacity: 1;
transform: translateY(0) scale(1);
}
84%, 100% {
opacity: 0;
transform: translateY(-6px) scale(0.95);
}
}
@media (prefers-reduced-motion: reduce) {
.badge {
animation: none;
opacity: 1;
transform: none;
}
}import styles from "./RandomDelayBadges.module.scss";
export type RandomDelayBadgesProps = {
badges: string[];
};
export default function RandomDelayBadges({ badges }: RandomDelayBadgesProps) {
return (
<div className={styles.badges}>
{badges.map((label) => (
<span key={label} className={styles.badge}>
{label}
</span>
))}
</div>
);
}09 · Pseudo-random delay via SCSS random() — Measured area 6.827% · moving frames 9/23Original by GODRICH · SCSS and React ship in the zip · See the password
@for $i from 1 through 5 {
.badge:nth-child(#{$i}) { animation-delay: random($max-delay) * 1ms; }
}
@keyframes badge-loop {
0%, 4% { opacity: 0; transform: translateY(10px) scale(.9); }
16%, 60% { opacity: 1; transform: translateY(0) scale(1); }
84%, 100% { opacity: 0; transform: translateY(-6px) scale(.95); }
}
Where it breaks — the traps
Six of the nine — 01 through 06 and 09 — bake a fixed item count into the stylesheet itself, whether that's an SCSS loop running to 3 or nine hand-written nth-child rules for a 3x3 grid. MDN's :nth-child() documentation is clear that the selector matches against the real DOM position at render time, not against however many rows someone had in mind while writing the SCSS. So if a sixth toast or a tenth grid cell shows up later at runtime, the stylesheet needs recompiling with a longer loop. Otherwise, that new element gets no delay rule and just pops in with everything else at once.
The two that dodge it
Items 07 and 08 exist to dodge precisely this trap. 07 moves the count into markup a template can regenerate on the fly, and 08 sidesteps counting altogether by asking the browser for each element's own sibling position.
random() runs once
Item 09 hides a quieter version of the same mistake. random(420) inside a compile-time loop looks like it should hand out a fresh spread of delays on every visit, but sass only runs that function once, while building style.css from style.scss. Anyone who unzips this set and opens that compiled file will find 8dxrtqpt unlocks it, typed as seven plain lowercase letters and one digit with nothing extra around them. Inside, the five badge delays are already the exact numbers this demo is showing right now, not a new roll of the dice. Layering light onto that one-after-another rhythm is where the CSS glow and neon effects meet the same delay values.
Accessibility
Reduced motion
All nine jump straight to their finished, fully visible state under prefers-reduced-motion — no animation, no delay, every list item, cell, letter, card, dot, tile, or badge sitting in place from first paint onward. Items 01 through 04 and 06 through 09 each cancel a single keyframes loop to get there.
The one with three animations
Item 05 has more moving parts to shut off: because its entrance and its exit run on three separate, direction-specific keyframes rules rather than one shared transition, reduced motion has to cancel three different animations at once and settle every pill into its always-visible middle state. MDN's guide to prefers-reduced-motion covers which operating-system settings flip this media query on.
@media (prefers-reduced-motion: reduce) {
li, span, .card, .badge { animation: none !important; opacity: 1; transform: none; }
}
Nine more entrance patterns sit in the CSS demo archive, and what this site actually sells versus what it just shows for free is explained on the about page.
FAQ
Does a css stagger animation need any JavaScript, or is a css animation delay enough?
No. All nine here run on animation-delay values set entirely in CSS, whether that value comes from a compiled nth-child rule, an inline --i custom property, or the native sibling-index() function. The zip's react/ folder wraps the same SCSS inside components without adding any JS that drives the motion itself. Running that same delay math down a vertical sequence of steps is what the CSS timeline animations collect.
Should I reach for --i or sibling-index() in a real project?
Pick item 07's --i and calc() if the page has to work in every browser people actually use today — it only needs an inline style attribute a template can already generate for each row. Save item 08's sibling-index() for an internal tool or admin panel that only has to run on Chrome or Edge 138 and newer, where it skips writing that inline value at all.
Does item 09's random delay change on every page reload?
No. SCSS's random() function runs once, while sass compiles style.scss into style.css, so the five delays it picks are locked into that file long before a browser ever loads it. Getting a different spread on every visit needs JavaScript to set a custom property like --delay at load time — CSS by itself always replays the same fixed set of numbers.









