Skip to content

176 web animation techniques, each a live demo with plain settings and a ready-made prompt for your AI assistant. No dependencies, no build step.

docs: twelve Key parameters rows and one How it works sentence say what the demos really do, checked against their code

matin147068fd20a4
diff --git a/animations/02-entrance-and-exit/shatter-effect/README.md b/animations/02-entrance-and-exit/shatter-effect/README.md
index e59f8a2f..2cd9f6e5 100644
--- a/animations/02-entrance-and-exit/shatter-effect/README.md
+++ b/animations/02-entrance-and-exit/shatter-effect/README.md
@@ -55,7 +55,7 @@ Each piece waits until the break (`start`, the time the cracks take), then a lit
|-----------|---------|--------|
| Number of pieces | Medium | How finely the card breaks: few is about 15 pieces in two rings, medium about 30 in three and many 60 in four (about 46 on phones) |
| Breaks from | Center | Where the impact is: near the middle (moved a little at random each time) or near the top-left corner; the pieces there are the smallest and fly first |
-| Gravity | Normal | None lets the pieces drift straight outward; normal throws them up a little before they fall; heavy drops them out of view. Over one flight the burst carries the pieces about 1.1, 0.75 or 0.55 card heights outward (none, normal, heavy; further near the impact), and gravity pulls them a further 0.6 card heights down with normal and 2 with heavy |
+| Gravity | Normal | None lets the pieces drift straight outward; normal throws them up a little before they fall; heavy drops them out of view. Over one flight the burst carries the pieces about 1.1, 0.75 or 0.55 card heights outward (none, normal, heavy; further near the impact), and by the end they sit a further 0.6 card heights lower with normal and 2 with heavy. Those drops are what is left once the upward throw is taken off: gravity alone pulls about 1.15 and 2.2 card heights, and the throw takes back about half a card height with normal and a quarter with heavy |
| Speed | Normal | How long each piece's flight takes: slow is 1700ms, normal 1100ms and fast 700ms; the cracks take about a third of that before the break |
| Shows the cracks | on | Draws the cracks across the card, ring by ring from the impact, before it breaks; off, it breaks at once |
| Tumbles in 3D | on | The pieces flip over and fly toward the viewer; off, they spin flat |
diff --git a/animations/02-entrance-and-exit/split-text-reveal/README.md b/animations/02-entrance-and-exit/split-text-reveal/README.md
index efcab97e..b13f7c45 100644
--- a/animations/02-entrance-and-exit/split-text-reveal/README.md
+++ b/animations/02-entrance-and-exit/split-text-reveal/README.md
@@ -51,7 +51,7 @@ Per-unit animation is swappable via `data-anim` (fade-up, fade, scale, rotate);
| Parameter | Default | Effect |
|-----------|---------|--------|
| Split into | Words | Letters give the finest cascade, words a readable rhythm, lines a block reveal |
-| How each piece appears | Fade up | The small entrance each piece plays: fade up rises by half the font size, fade only fades, grow starts at half its size and flip turns in from 90°, edge-on, around a vertical line |
+| How each piece appears | Fade up | The small entrance each piece plays: fade up rises by half the font size, fade only fades, grow starts at half its size and flip turns in from 90°, edge-on, around a vertical line; in Lines mode nothing fades: each line slides up into view from behind an invisible edge, so fade shows only that slide, and fade up, grow and flip add their own movement to it |
| Delay between pieces | Medium | The wait between pieces: short is 10ms, medium 30ms and long 100ms; small values ripple, large values feel deliberate |
| Speed | Normal | How long each piece takes: slow is 800ms, normal 500ms and fast 300ms |
| Feel | Smooth | The curve each piece uses; Springy adds a small settle, Even keeps one steady pace |
diff --git a/animations/04-micro-interactions/accordion/README.md b/animations/04-micro-interactions/accordion/README.md
index d8586d60..55971c42 100644
--- a/animations/04-micro-interactions/accordion/README.md
+++ b/animations/04-micro-interactions/accordion/README.md
@@ -75,7 +75,7 @@ trigger.addEventListener('click', () => {
|-----------|---------|--------|
| Speed | Normal | How long an answer takes to open or close: slow is 500ms, normal 300ms and fast 180ms |
| Feel | Gentle | Gentle eases in and out, which suits opening and closing alike; Smooth slows at the end; Even keeps one steady speed |
-| Several open at once | off | Off closes the open answer when another opens, which keeps the list short but moves the pressed question up when the answer that closes is above it; on keeps each answer open until its question is pressed again, so only the answer being opened moves |
+| Several open at once | off | Off closes the open answer when another opens, which keeps the list short but moves the pressed question up when the answer that closes is above it; on keeps each answer open until its question is pressed again, so nothing jumps up: the pressed question stays where it is and the questions below it only slide down to make room |
| Built with | Measured height | Measured height measures the answer before growing to it; Grid rows lets a grid row grow from nothing to its full size, with no measuring; both look the same |
| Arrow flips | on | The arrow beside each question turns to point up while its answer is open |
| Text fades in | off | The answer's text fades in and rises slightly while its box opens, each paragraph a moment after the one before |
diff --git a/animations/04-micro-interactions/dynamic-island/README.md b/animations/04-micro-interactions/dynamic-island/README.md
index 5f1d2da3..b2091262 100644
--- a/animations/04-micro-interactions/dynamic-island/README.md
+++ b/animations/04-micro-interactions/dynamic-island/README.md
@@ -67,7 +67,7 @@ The same transition runs whichever two shapes it goes between, so picking anothe
## Key parameters
| Parameter | Default | Effect |
|-----------|---------|--------|
-| Notification | Call | What the 96 by 32px pill grows into: a call card 76px tall, a timer in a wide capsule 64px tall, or a music card with controls 148px tall, each about four fifths as wide as the screen; picking another while it is open changes the shape straight into the new one |
+| Notification | Call | What the 96 by 32px pill grows into: a call card 76px tall, a timer in a wide capsule 64px tall, or a music card with controls 148px tall; the call and music cards are about 85% as wide as the screen and the timer about 77%; picking another while it is open changes the shape straight into the new one |
| Speed | Normal | How long it takes to grow or shrink: slow is 1100ms, normal 700ms and fast 450ms; a spring needs a little longer than a plain ease, because it settles at the end |
| Bounce | Soft | None eases out without going past the size; Soft goes past it by about 5% of the change in size and Springy by about 16%, and each settles by the end of its time |
diff --git a/animations/04-micro-interactions/gooey-menu/README.md b/animations/04-micro-interactions/gooey-menu/README.md
index 537a1ec0..55a07811 100644
--- a/animations/04-micro-interactions/gooey-menu/README.md
+++ b/animations/04-micro-interactions/gooey-menu/README.md
@@ -60,7 +60,7 @@ Closed, the small buttons' group is `inert` at once (the buttons turn `visibilit
## Key parameters
| Parameter | Default | Effect |
|-----------|---------|--------|
-| Layout | Arc | Row puts the small buttons in a line beside the round one and Column stacks them above it, with 20px gaps; Arc fans them out above it, 84px from its center and 60° apart; the round button is 64px across and the small ones 50px |
+| Layout | Arc | Row puts the small buttons in a line beside the round one and Column stacks them above it, with 20px gaps; Arc fans them out above it, 84px from its center and 60° apart; the round button is 64px across and the small ones 50px. All of these are at the base scale: the whole menu is scaled 0.88 to 1.2 times with the stage, so the round button is about 56px across at the smallest and 77px at the largest |
| How gooey | Medium | How much the circles are blurred before the edge is sharpened: low is a 5px blur, medium 9px and high 13px for a round button 64px across (scaled with the menu, and a fifth less on phones); higher keeps the drops joined for longer |
| Speed | Normal | How long a small button takes to pop out: slow is 950ms, normal 600ms and fast 380ms, each starting 90, 60 or 40ms after the one before |
| Shows the plain circles | Off | Turns the filter off and draws each circle as a ring, to show what moves underneath; it is a way to look, so it is not added to the copied prompt |
diff --git a/animations/05-text-typography/highlighter-sweep/README.md b/animations/05-text-typography/highlighter-sweep/README.md
index 25cb86a1..8b808dda 100644
--- a/animations/05-text-typography/highlighter-sweep/README.md
+++ b/animations/05-text-typography/highlighter-sweep/README.md
@@ -49,7 +49,7 @@ Replay first drops every band back to nothing with transitions switched off for
|-----------|---------|--------|
| Marker color | Yellow | The color of the bands: yellow, pink, green, blue or orange, all light enough for the dark words to stay easy to read |
| Speed | Normal | How long the marker takes to cross one phrase: slow is 1300ms, normal 700ms and fast 400ms, with a 250ms pause between phrases |
-| How much it covers | Whole words | Whole words covers the letters from just under their tops, with the band starting 12% of the font size below the top of the text; Lower half starts it 62% down, so it covers only the bottom of the letters, like a thick underline |
+| How much it covers | Whole words | Whole words covers the letters completely: the band starts 12% of the font size below the top of the word's box, which is still about an eighth of the font size above the tallest letters, and ends a little below the tails of letters such as g and p; Lower half starts it 62% down, about halfway up the capitals, so it covers only the bottom of the letters, like a thick underline |
## Production notes
- **The background-size version**: a single `<mark>` with `background: linear-gradient(var(--marker), var(--marker)) no-repeat; background-size: 0% 100%`, `box-decoration-break: clone` and a transition on `background-size` handles line wraps with no splitting at all. It is the shortest code, but `background-size` is repainted on every frame; the transform version here stays on the compositor.
diff --git a/animations/06-3d-advanced/chromatic-aberration/README.md b/animations/06-3d-advanced/chromatic-aberration/README.md
index 0c7d34b5..cead01cc 100644
--- a/animations/06-3d-advanced/chromatic-aberration/README.md
+++ b/animations/06-3d-advanced/chromatic-aberration/README.md
@@ -49,7 +49,7 @@ function applyOffset(amount, angleDeg) {
## Key parameters
| Parameter | Default | Effect |
|-----------|---------|--------|
-| Movement | Pulse | Pulse widens the split to 1.8 times and back every 2 seconds; Glitch jumps it twice near the end of every 4 seconds, for 80ms each, to about 3 times the split and then 2 times on the other side; None keeps it still |
+| Movement | Pulse | Pulse widens the split to 1.8 times and back every 2 seconds; Glitch makes the red and blue copies jump twice near the end of every 4 seconds, for 80ms each, always the same way whatever the Direction: red goes right by 3 times the split and up by the split, then left by 2 times the split and down by the split, and blue goes the opposite way; None keeps it still |
| Color split | Medium | How far the red and blue copies sit from the word: small is 2px, medium 4px and large 8px; above about 6px the word gets hard to read |
| Direction | Slanted | Sideways splits the colors left and right; Slanted splits them at 30°; Up and down splits them vertically |
| Soft color edges | off | Blurs the red and blue copies by 2px, which looks more like a lens than a digital shift |
diff --git a/animations/06-3d-advanced/cloth-simulation/README.md b/animations/06-3d-advanced/cloth-simulation/README.md
index a832c84a..e08b92bc 100644
--- a/animations/06-3d-advanced/cloth-simulation/README.md
+++ b/animations/06-3d-advanced/cloth-simulation/README.md
@@ -88,7 +88,7 @@ for (let r = 0; r < ROWS; r++) {
| Wind | Medium | How hard the wind blows; it rises and falls on its own over a 12.6-second cycle: at its peak it speeds points up sideways by about 30px a second every second at light, 75px at medium and 180px at strong, and part of the time it blows back at up to about half that |
| Stiffness | Medium | How many times each step, sixty a second, the links are pulled back to length: stretchy is 2, medium 4 and stiff 8 |
| Gravity | Normal | How heavy the cloth is: gravity speeds a falling point up by about 17px a second every second at light, 35px at normal and 58px at heavy |
-| Detail | Medium | How many squares the cloth's grid has, with a point at every corner: low is 16 × 12, medium 24 × 18 and high 40 × 30; phones start at low |
+| Detail | Medium | How many cells the cloth's grid has, with a point at every corner: low is 16 × 12, medium 24 × 18 and high 40 × 30; the cloth is cut 80% as wide as the stage and 65% as tall, so the cells take their shape from the stage: about square on a phone, but two to three times as wide as tall on a laptop; phones start at low |
| Shows the points | off | Marks every point of the grid, with the pinned ones in red |
## Production notes
diff --git a/animations/06-3d-advanced/morphing-blob/README.md b/animations/06-3d-advanced/morphing-blob/README.md
index f9d27b86..a61a9ec9 100644
--- a/animations/06-3d-advanced/morphing-blob/README.md
+++ b/animations/06-3d-advanced/morphing-blob/README.md
@@ -77,7 +77,7 @@ shape of the stage.
|-----------|---------|--------|
| Gooeyness | Medium | How much the circles are blurred before the edge is sharpened again: low is 6, medium 10 and high 16, measured in a drawing 360 units across whose circles are 26 to 52 units in radius; higher melts circles from farther apart |
| Number of blobs | Medium | Few is 4, medium 6 and many 9 circles, counting the drop that follows the pointer |
-| Speed | Normal | How fast the circles drift: slow is 0.6, normal 1 and fast 1.6 times; at normal each circle swings back and forth along its path once every 6 to 16 seconds, each at its own rate |
+| Speed | Normal | How fast the circles drift: slow is 0.6, normal 1 and fast 1.6 times; each circle sways side to side and up and down at the same time, each sway at its own rate (at normal, one sway takes 6 to 16 seconds), so it wanders in loops that never quite repeat rather than back and forth along one line |
## Production notes
- **Filter performance is the gotcha.** SVG filters rasterize the filter region every frame on the CPU/GPU compositor; a large blurred area over a big viewport can drop frames on mobile. Keep the filtered `<g>` region as small as the design allows, cap `stdDeviation`, and reduce blob count on small screens. Test on a mid-range phone, not just desktop.
diff --git a/animations/06-3d-advanced/noise-based-motion/README.md b/animations/06-3d-advanced/noise-based-motion/README.md
index 30591d6f..9655cc40 100644
--- a/animations/06-3d-advanced/noise-based-motion/README.md
+++ b/animations/06-3d-advanced/noise-based-motion/README.md
@@ -56,7 +56,7 @@ for (let i = 0; i <= vertices; i++) {
ctx.closePath();
```
-The noise is read along a circle of radius `48 * SCALE`. A tiny circle would see almost one value, so the whole edge would only swell and shrink together; this one spans about two bumps of noise at the default size, so the edge ripples.
+The noise is read along a circle of radius `48 * SCALE`. A tiny circle would see almost one value, so the whole edge would only swell and shrink together; this one spans about three bumps of noise at the default size, so the edge ripples.
## Key parameters
| Parameter | Default | Effect |
diff --git a/animations/06-3d-advanced/volumetric-smoke/README.md b/animations/06-3d-advanced/volumetric-smoke/README.md
index 70b535d2..118b6b24 100644
--- a/animations/06-3d-advanced/volumetric-smoke/README.md
+++ b/animations/06-3d-advanced/volumetric-smoke/README.md
@@ -65,7 +65,7 @@ Wherever `src` has faded to almost nothing the function returns before the noise
## Key parameters
| Parameter | Default | Effect |
|-----------|---------|--------|
-| Thickness | Medium | How dense the smoke is: thin is 0.6 times as dense as medium and thick 1.7 times, so the thickest wisps hide about a third of what is behind at thin, half at medium and three quarters at thick; thin looks wispy |
+| Thickness | Medium | How dense the smoke is: thin is 0.6 times as dense as medium and thick 1.7 times, so the thickest wisps hide about a third of what is behind at thin, half at medium and 70% at thick; thin looks wispy |
| Speed | Normal | How fast the smoke rises: its pattern moves about 3% of the box's height a second at slow, 5% at normal and 9% at fast |
| Detail | Medium | How many steps each ray takes: low is 16, medium 32 and high 64 (48 on phones); fewer steps leave visible stripes |
| Smoke color | Gray blue | The color of the lit smoke; the shadowed parts are darker shades of it |
diff --git a/animations/06-3d-advanced/webgl-shader-animation/README.md b/animations/06-3d-advanced/webgl-shader-animation/README.md
index d16e1db7..654465e8 100644
--- a/animations/06-3d-advanced/webgl-shader-animation/README.md
+++ b/animations/06-3d-advanced/webgl-shader-animation/README.md
@@ -71,7 +71,7 @@ float voronoi(vec2 p) {
| Parameter | Default | Effect |
|-----------|---------|--------|
| Pattern | Plasma | Plasma adds up sine waves into flowing color; Waves bends striped color; Cells splits the plane into cells around moving points; Kaleidoscope mirrors one slice around the middle |
-| Speed | Normal | How fast time runs in the pattern: slow is 0.6, normal 1 and fast 1.6 times real time, so the plasma's colors drift once round the rainbow in about 33 seconds at slow, 20 at normal and 12.5 at fast |
+| Speed | Normal | How fast time runs in the pattern: slow is 0.6, normal 1 and fast 1.6 times real time, so the plasma's colors drift once around the rainbow in about 33 seconds at slow, 20 at normal and 12.5 at fast |
| Reacts to the pointer | off | Each pattern bends around the pointer or a finger in its own way; in Kaleidoscope the pointer sets the number of slices |
## Production notes
diff --git a/animations/07-ambient-background/breathing-glow/README.md b/animations/07-ambient-background/breathing-glow/README.md
index dd0301f6..04b212fc 100644
--- a/animations/07-ambient-background/breathing-glow/README.md
+++ b/animations/07-ambient-background/breathing-glow/README.md
@@ -77,7 +77,7 @@ The 2% scale on the center element is intentionally subtle — the eye should no
| How much it grows | Medium | How far the glow shrinks and grows: a little is 80% to 120% of its size, medium 60% to 150% and a lot 45% to 180% |
| Glow color | Blue | The color of the glow: pink, blue, purple, green or orange (white would hide the white title at the breath's peak) |
| Glow size | Medium | The glow's size before it grows: small is 180px, medium 260px and large 340px |
-| Second glow | off | A larger, fainter glow behind the first, 1.5 times its size, breathes over a cycle 1.3 times as long, so the two drift in and out of step |
+| Second glow | off | A larger, softer glow behind the first, 1.5 times its size and about as bright: it brightens and dims through the same range as the first, over a cycle 1.3 times as long, so the two drift in and out of step |
| Icon and title breathe too | on | The icon and the title under it swell by 2% with each breath, too little to notice consciously |
## Production notes