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: Shatter Effect's Gravity row reads plainly, Stagger Reveal's note on 100ms is about long lists, and the skill is written again from the new Key parameters

matin70794b6705f2
diff --git a/animations/01-scroll-based/stagger-reveal/README.md b/animations/01-scroll-based/stagger-reveal/README.md
index 20d43601..8a23e367 100644
--- a/animations/01-scroll-based/stagger-reveal/README.md
+++ b/animations/01-scroll-based/stagger-reveal/README.md
@@ -44,7 +44,7 @@ The order array holds a *rank* per item, not a target — item `i` waits `order[
## Production notes
- **Delay vs. duration**: the stagger delay is the gap between items; each item's own transition duration is separate. Both matter — a 50ms stagger with a 400ms transition means the group overlaps heavily, which usually looks best.
- **Cap the total**: on long lists, `delay × count` grows without bound and the tail feels sluggish. Clamp the effective delay so the whole cascade lands in ~600ms regardless of item count.
-- **Below 30ms reads as simultaneous**: if the eye can't separate the items, you've paid for stagger and gotten none of its benefit. Above ~100ms it starts to drag.
+- **Below 30ms reads as simultaneous**: if the eye can't separate the items, you've paid for stagger and gotten none of its benefit. Above ~100ms a long list starts to drag, though a few large cards need about that much to read as one after another.
- **`setTimeout` vs. CSS `transition-delay`**: this demo uses timers so direction can change at runtime; a static cascade can instead set `transition-delay: calc(var(--i) * 50ms)` per item and avoid JS entirely.
- **Reduced motion**: transitions are disabled under `prefers-reduced-motion`, so each item simply appears at its turn, without moving — the stagger is decorative, never load-bearing.
- **Library equivalents**: GSAP's `stagger` property (including `from: "center"` and `"random"`) is the direct analog; Framer Motion uses `staggerChildren` on a parent variant; Motion One exposes a `stagger()` helper.
diff --git a/animations/02-entrance-and-exit/shatter-effect/README.md b/animations/02-entrance-and-exit/shatter-effect/README.md
index 2b1e486e..e59f8a2f 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. In card heights over one flight, the pieces burst out about 1.1, 0.75 and 0.55 (further near the impact, and varied at random); normal first lifts them about 0.15, then gravity pulls them to about 0.6 below where the burst alone would take them, and heavy pulls them about 2 below |
+| 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 |
| 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/skills/animation-handbook/references/01-scroll-based.md b/skills/animation-handbook/references/01-scroll-based.md
index ef0960e7..29fce374 100644
--- a/skills/animation-handbook/references/01-scroll-based.md
+++ b/skills/animation-handbook/references/01-scroll-based.md
@@ -271,7 +271,7 @@ Add a stagger reveal to [your grid, list or group of items]. When the group scro
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Delay between items: Short · **Medium** · Long. The wait before each next item: short is 30ms, medium 50ms and long 80ms; 40 to 60ms reads as a sweep, and under 30ms the items seem to arrive together.
+- Delay between items: Short · **Medium** · Long. The wait before each next item: short is 30ms, medium 50ms and long 80ms; 40 to 60ms reads as a sweep, and under 30ms the items seem to arrive together. These values suit the demo's grid of 12 small items; a few large cards need a longer wait, about 100 to 150ms, to come in visibly one after another.
- Order: **First to last** · Last to first · From the middle · Random. Which item goes first: first to last, last to first, from the middle outward, or a random order each time.
## Horizontal Scroll
@@ -421,7 +421,7 @@ Add smooth scrolling to [the scrolling area or page you want to glide]. Catch th
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Glide: Long · **Medium** · Short. How much of the remaining distance the content covers in a sixtieth of a second: long is 5%, medium 9% and short 16%; a longer frame covers more, so the glide takes as long on every screen; long feels heavy and floaty, short is closer to normal scrolling.
+- Glide: Long · **Medium** · Short. How much of the remaining distance the content covers in a sixtieth of a second: long is 5%, medium 9% and short 16%, so 95% of a scroll has landed after about 1 s, 0.5 s and 0.3 s; a longer frame covers more, so the glide takes as long on every screen; long feels heavy and floaty, short is closer to normal scrolling.
## Text Fill on Scroll
@@ -459,7 +459,7 @@ Add a velocity skew to [the rows or cards in your list or gallery]. Measure how
- Strength: Subtle · **Normal** · Strong. How far the rows lean for a given scroll speed: subtle is 0.2°, normal 0.35° and strong 0.6° for each pixel scrolled in a sixtieth of a second.
- Lean: **Tilt** · Slant. Tilt tips each row like a slope, the classic look; Slant leans it sideways like italic text.
-- Spring back: Slow · **Normal** · Quick. How quickly the lean follows the scroll speed and fades after you stop; slow feels heavy, quick feels twitchy.
+- Spring back: Slow · **Normal** · Quick. How quickly the lean follows the scroll speed and fades after you stop: in each sixtieth of a second the lean closes 7% of the gap to the lean the scroll speed calls for when slow, 12% at normal and 20% when quick, so 95% of it is gone about 0.7 s, 0.4 s and 0.2 s after you stop; slow feels heavy, quick feels twitchy.
- Most it leans: Small · **Medium** · Large. The largest angle allowed: 6°, 12° or 20°, so a fast flick cannot fold the rows over.
## SVG Line Draw on Scroll
@@ -515,7 +515,7 @@ Add a scroll-driven background color to [the sections of your page]. Give each s
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
- Colors: **Dusk** · Daylight · Forest. The palette, one color per section: Dusk stays dark; Daylight passes through pale colors and Forest through a light green, and the text turns dark on those.
-- Blend: **Gradual** · Quick · Hard cut. Gradual changes the color the whole way between sections; Quick holds each color and changes it near the boundary; Hard cut switches at the boundary with no blend, to show why the blend matters.
+- Blend: **Gradual** · Quick · Hard cut. Gradual changes the color the whole way between sections; Quick holds each color and changes it near the boundary, over the middle 30% of the scroll from one section to the next; Hard cut switches at the boundary with no blend, to show why the blend matters.
## Hide-on-Scroll Header
diff --git a/skills/animation-handbook/references/02-entrance-and-exit.md b/skills/animation-handbook/references/02-entrance-and-exit.md
index 43113a9e..5de7858c 100644
--- a/skills/animation-handbook/references/02-entrance-and-exit.md
+++ b/skills/animation-handbook/references/02-entrance-and-exit.md
@@ -155,7 +155,7 @@ Add a split-text reveal to [your headline]. Break the text into pieces (characte
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
- Split into: Letters · **Words** · Lines. Letters give the finest cascade, words a readable rhythm, lines a block reveal.
-- How each piece appears: **Fade up** · Fade · Grow · Flip. The small entrance each piece plays: fade up, fade, grow or flip.
+- How each piece appears: **Fade up** · Fade · Grow · Flip. 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.
- Delay between pieces: Short · **Medium** · Long. The wait between pieces: short is 10ms, medium 30ms and long 100ms; small values ripple, large values feel deliberate.
- Speed: Slow · **Normal** · Fast. How long each piece takes: slow is 800ms, normal 500ms and fast 300ms.
- Feel: **Smooth** · Springy · Even. The curve each piece uses; Springy adds a small settle, Even keeps one steady pace.
@@ -178,7 +178,7 @@ Add a letter-by-letter entrance to [a short phrase or headline]. In the cascade
- Style: **Cascade** · Typewriter. Cascade animates every letter in turn; Typewriter types them out.
- Delay between letters: Short · **Medium** · Long. The gap between letters: short is 20ms, medium 35ms and long 80ms; higher is slower and more theatrical.
-- How each letter appears: **Fade up** · Fade · Grow · Flip. In Cascade, the entrance each letter plays: fade up, fade, grow or flip.
+- How each letter appears: **Fade up** · Fade · Grow · Flip. In Cascade, the entrance each letter plays as it fades in: fade up rises by 0.4 of the font size, fade only fades, grow starts at 30% of its size and flip turns in from 90°, edge-on, around a vertical line.
- Speed: Slow · **Normal** · Fast. In Cascade, how long each letter takes to settle: slow is 650ms, normal 400ms and fast 250ms.
- Blinking cursor: **on** · off (the page shows it only for some choices of another setting). In Typewriter, a blinking cursor leads the letters.
- Your text: text field, starts as "Hello, world.". The phrase that is animated, up to 60 characters.
@@ -199,7 +199,7 @@ Add a word-by-word reveal to [the paragraph or quote you want to reveal]. Each w
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
- Delay between words: Short · **Medium** · Long. The reading-speed control: short is 40ms, medium 80ms and long 150ms; below about 40ms the words blur into one reveal.
-- How each word appears: **Fade up** · Fade · Grow · Blur · Flip. The entrance each word plays: fade up, fade, grow, blur or flip.
+- How each word appears: **Fade up** · Fade · Grow · Blur · Flip. The entrance each word plays as it fades in: fade up rises by 0.4 of the font size, fade only fades, grow starts at 60% of its size, blur starts 8px blurred and flip turns in from 90°, edge-on, around a horizontal line.
- Speed: Slow · **Normal** · Fast. How long each word takes to settle: slow is 700ms, normal 450ms and fast 270ms.
- Feel: **Smooth** · Springy · Even. Smooth slows each word into place; Springy adds a bounce; Even feels mechanical.
- Pauses between sentences: on · **off**. Adds an extra pause between sentences.
@@ -264,7 +264,7 @@ Add a bounce-in entrance to [the element you want to animate]. When it appears,
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Bounce strength: Soft · **Medium** · Strong. How far past full size it grows: soft about 5%, medium 9% and strong 15%, with smaller dips back under.
+- Bounce strength: Soft · **Medium** · Strong. How far past full size it grows: soft about 5%, medium 9% and strong 15%, with smaller dips back under, to about 2%, 4% and 7% below full size.
- Number of bounces: **One** · Two · Three. How many times it overshoots; almost always one, since more looks cartoonish.
- Speed: Slow · **Normal** · Fast. How long it takes: slow is 1800ms, normal 1100ms and fast 650ms; too short and the spring reads as a jitter.
- Fades in: **on** · off. Whether it fades in while it bounces or is visible from the start.
@@ -308,7 +308,7 @@ Add a shatter effect to [the card or picture you want to break]. When it plays,
- Number of pieces: Few · **Medium** · Many. 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** · Corner. 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: None · **Normal** · Heavy. None lets the pieces drift straight outward; normal throws them up a little before they fall; heavy drops them out of view.
+- Gravity: None · **Normal** · Heavy. 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.
- Speed: Slow · **Normal** · Fast. 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** · off. Draws the cracks across the card, ring by ring from the impact, before it breaks; off, it breaks at once.
- Tumbles in 3D: **on** · off. The pieces flip over and fly toward the viewer; off, they spin flat.
diff --git a/skills/animation-handbook/references/03-page-transitions.md b/skills/animation-handbook/references/03-page-transitions.md
index 76078413..29aec71e 100644
--- a/skills/animation-handbook/references/03-page-transitions.md
+++ b/skills/animation-handbook/references/03-page-transitions.md
@@ -36,7 +36,7 @@ Add page transitions to [your site's pages or views] with the browser's View Tra
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Transition style: **Fade** · Slide · Zoom · Tilt. Fade blends the two pictures; Slide pushes the old one out to the left as the new one comes in from the right; Zoom shrinks the old one away as the new one settles from slightly larger; Tilt turns both slightly as they fade.
+- Transition style: **Fade** · Slide · Zoom · Tilt. Fade blends the two pictures; Slide pushes the old one out to the left as the new one comes in from the right, each moving a full width; Zoom shrinks the old one away to 80% as it fades while the new one fades in and settles from slightly larger, 115%; Tilt turns both slightly as they fade: the old one shrinks to 90% and turns 2° counterclockwise, and the new one starts at 90%, turned 2° clockwise.
- Speed: Slow · **Normal** · Fast. How long the change takes: slow is 800ms, normal 500ms and fast 300ms; under about 150ms it reads as an instant swap.
- Feel: Smooth · **Gentle** · Even. Gentle eases in and out; Smooth slows to a stop; Even keeps one steady pace.
@@ -130,7 +130,7 @@ Add a zoom transition to [the pages or views you want to move between]. When the
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Zoom style: **Zoom in** · Zoom out · Pull through. Zoom in grows the new page from 75% as the old one shrinks to 90%; Zoom out grows the old page past the frame as it fades; Pull through shrinks the old page to 70% while the new one settles from 130%.
+- Zoom style: **Zoom in** · Zoom out · Pull through. Zoom in grows the new page from 75% as the old one shrinks to 90%; Zoom out grows the old page past the frame, to 120%, as it fades, while the new one fades in at full size; Pull through shrinks the old page to 70% while the new one settles from 130%.
- Speed: Slow · **Normal** · Fast. How long the zoom and the fade take: slow is 900ms, normal 550ms and fast 330ms.
- Feel: **Smooth** · Springy · Gentle. Smooth slows to a stop; Springy grows a little past full size and settles; Gentle eases in and out.
@@ -191,8 +191,8 @@ Add an elastic transition to [the pages or panels you want to move between]. The
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
- How it bounces: **Planned path** · Live spring. A planned path plays a bounce decided in advance, which is cheap; a live spring works out the movement in small fixed time steps, which feels physical and can react to interruptions.
-- Bounce size: Small · **Medium** · Large. How far the page goes past its place before settling; with a live spring, a bigger bounce means less damping, so it swings for longer.
-- Speed: Slow · **Normal** · Fast. How quickly it settles: on the planned path slow is 1400ms, normal 900ms and fast 550ms; with a live spring, a faster speed is a stiffer spring.
+- Bounce size: Small · **Medium** · Large. How far the page goes past its place before settling: small is 3.6% of the page's width, medium 7.2% and large 12% on the planned path, and about as far with a live spring, where a bigger bounce means less damping, so it swings for longer.
+- Speed: Slow · **Normal** · Fast. How quickly it settles: on the planned path slow is 1400ms, normal 900ms and fast 550ms; with a live spring, a faster speed is a stiffer spring, which settles in about 1 to 1.3 s when slow, 0.6 to 0.8 s at normal and 0.3 to 0.45 s when fast.
## Portal / Tunnel Zoom
@@ -307,7 +307,7 @@ Add a page curl to [the pages you want to turn, such as a magazine]. A forward t
- Turn speed: Slow · **Normal** · Fast. How long one page takes to turn over: slow is 1500ms, normal 1000ms and fast 650ms.
- Which way it turns: **Forward and back** · Always forward · Always back. Forward and back turns the page away for a later page and lays an earlier page back down; the other two always turn one way.
-- Paper shading: Off · **Soft** · Strong. How strongly the fold is shaded and how dark the shadow on the page below is; off leaves a flat paper back.
+- Paper shading: Off · **Soft** · Strong. How strongly the fold is shaded and how dark the shadow on the page below is: soft darkens the shadow to 42% black at mid-turn and the turned-over paper to 30% black along the fold, strong to 70% and 50%; off leaves a flat paper back.
## Cube Transition
diff --git a/skills/animation-handbook/references/04-micro-interactions.md b/skills/animation-handbook/references/04-micro-interactions.md
index ffd5f793..e03b8521 100644
--- a/skills/animation-handbook/references/04-micro-interactions.md
+++ b/skills/animation-handbook/references/04-micro-interactions.md
@@ -81,7 +81,7 @@ Add a ripple to [the buttons or list items you want to respond to presses]. When
- Starts from: **Where you press** · The middle. Where you press shows exactly where the press landed; the middle is simpler but less exact.
- Speed: Slow · **Normal** · Fast. How long the ripple takes to spread and fade: slow is 1000ms, normal 600ms and fast 350ms; a little longer than a hover change, because the click is already made.
-- Ripple size: Small · **Medium** · Large. How far the circle grows before it fades: small, medium or large; even small reaches every corner of the button.
+- Ripple size: Small · **Medium** · Large. How far the circle grows before it fades: small, medium and large end 3, 5 and 8 times the button's longer side across; even small reaches every corner of the button.
- Ripple strength: Faint · **Medium** · Strong. How visible the ripple is at the start: faint is 20%, medium 40% and strong 60%.
- Ripple color: **White** · Orange · Black. White suits colored buttons, orange matches the accent, black suits light buttons.
@@ -100,8 +100,8 @@ Add an animated focus ring to [the links, buttons and form fields on your page].
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Ring style: **Solid** · Dashed · Glow · Wide. Solid is a plain outline; Dashed draws it in dashes; Glow adds a soft halo; Wide fills the gap between the item and the ring, making one thick band.
-- Speed: Slow · **Normal** · Fast. How long the ring takes to close in: slow is 220ms, normal 140ms and fast 80ms; fast enough not to feel delayed, slow enough to see.
+- Ring style: **Solid** · Dashed · Glow · Wide. Solid is a plain outline; Dashed draws it in dashes; Glow adds a soft halo, a band of the ring's color at 18% opacity reaching 5px out from the item; Wide fills the gap between the item and the ring, making one thick band.
+- Speed: Slow · **Normal** · Fast. How long the ring takes to close in from 8px further out: slow is 220ms, normal 140ms and fast 80ms; fast enough not to feel delayed, slow enough to see.
- Ring thickness: Thin · **Medium** · Thick. Thin is 1px, medium 2px and thick 4px; 2px or more is easy to see.
- Ring gap: None · **Small** · Large. The space between the ring and the item: none, 3px or 6px; 2 to 4px looks natural.
@@ -140,7 +140,7 @@ Add a magnetic effect to [the one button you want to stand out]. When the pointe
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Pull strength: Gentle · **Medium** · Strong. How far the button moves toward the pointer: gentle is 20%, medium 35% and strong 50% of the distance; past about half it feels loose.
+- Pull strength: Gentle · **Medium** · Strong. How far the button moves toward the pointer: gentle is 20%, medium 35% and strong 50% of the distance when the pointer is close, a smaller share the farther it is, down to none at the edge of Reach; past about half it feels loose.
- Reach: Short · **Medium** · Long. How close the pointer must come before the pull starts: short is 100px, medium 160px and long 240px; too far and the button reacts to unrelated movement.
## Toggle / Switch Slide
@@ -179,7 +179,7 @@ Add a like button with a burst to [the heart or favorite button you want to rewa
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
- Number of hearts: Few · **Some** · Many. How many pieces burst out: few is 10, some 18 and many 32; above about 40 it gets busy and costs frames.
-- How far they fly: Short · **Medium** · Far. How far the pieces travel before they fade: short, medium or far.
+- How far they fly: Short · **Medium** · Far. How far the pieces travel before they fade: short, medium and far launch them at up to 300, 450 or 700px a second (at least half that), and they slow, fall and fade out over about three quarters of a second, the fastest ending about 150, 225 or 350px to the side of the heart.
## Success Confetti
@@ -198,7 +198,7 @@ Add a confetti burst to [the action that completes something important, such as
- Amount of confetti: Some · **Medium** · Lots. How many pieces fly: some is 60, medium 120 and lots 200; above about 200 costs frames on slower phones for little gain.
- Spread: Narrow · **Medium** · Wide. How wide the fan is: narrow is 60°, medium 110° and wide 170°; narrow looks like a fountain, wide like a dome.
-- Fall speed: Floaty · **Normal** · Heavy. How strongly the pieces are pulled down: floaty, normal or heavy; heavy falls fast, floaty drifts.
+- Fall speed: Floaty · **Normal** · Heavy. How strongly the pieces are pulled down: floaty, normal and heavy speed their fall by about 540, 1,000 and 1,600px a second every second, against launch speeds of 360 to 780px a second, so the fastest pieces climb about 560, 300 or 180px before they fall; heavy falls fast, floaty drifts.
## Skeleton Loader
@@ -216,7 +216,7 @@ Add a skeleton loading state to [the card, list or panel whose content loads]. W
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
- Pulse speed: Slow · **Normal** · Fast. How long one pulse takes: slow is 2.4s, normal 1.5s and fast 0.9s; one to two seconds feels calm, faster feels anxious.
-- Pulse strength: Soft · **Medium** · Strong. How far the blocks fade between pulses: soft, medium or strong; a soft pulse is enough.
+- Pulse strength: Soft · **Medium** · Strong. How far the blocks fade between pulses: soft, medium and strong fade them to 70%, 50% and 30% opacity and back to full; a soft pulse is enough.
- Loading time: Short · **Medium** · Long. How long the placeholders show before the content fades in: short is 1s, medium 2s and long 3.5s.
## Shimmer Effect
@@ -235,8 +235,8 @@ Add a shimmer to [the skeleton placeholders on your loading screen]. Lay a band
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
- Speed: Slow · **Normal** · Fast. How often the light crosses: slow every 1.2s, normal every 0.75s and fast every 0.45s; more often than about every 0.4s it feels frantic.
-- Brightness: Soft · **Medium** · Bright. How strong the band of light is: soft, medium or bright; soft is subtle, bright suits a branded screen.
-- Highlight angle: **Upright** · Slanted · Diagonal. Upright sweeps a straight band; Slanted and Diagonal tilt it; keep one angle across the whole page.
+- Brightness: Soft · **Medium** · Bright. How strong the band of light is: soft, medium and bright are 12%, 25% and 45% opacity at its center; soft is subtle, bright suits a branded screen.
+- Highlight angle: **Upright** · Slanted · Diagonal. Upright sweeps a straight band; Slanted tilts it 25° and Diagonal 45°; keep one angle across the whole page.
- Highlight color: **White** · Blue · Gold. White works on any placeholder; blue or gold suit branded screens.
## Loading Spinner
@@ -294,9 +294,9 @@ Add a success check mark that draws itself to [the form or action that just fini
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Result: **Success** · Error. Success draws a circle and a tick and turns the button green; Error draws a red X, shakes it and turns the button red.
-- Speed: Slow · **Normal** · Fast. How long each line takes to draw: slow is 800ms, normal 500ms and fast 300ms; 200 to 800ms is easy to follow.
-- Line thickness: Thin · **Medium** · Thick. Thin is 2, medium 4 and thick 7 units wide; thick reads as confident, thin as precise.
+- Result: **Success** · Error. Success draws a circle and a tick and turns the button green; Error draws a red X, shakes it (6, 6, 4 and 4px to alternate sides over 0.4 seconds) and turns the button red.
+- Speed: Slow · **Normal** · Fast. How long each line takes to draw: slow is 800ms, normal 500ms and fast 300ms, the tick starting 40% of that time after the circle (the X's second line 30% after its first); 200 to 800ms is easy to follow.
+- Line thickness: Thin · **Medium** · Thick. Thin is 2px, medium 4px and thick 7px wide, on an icon 80px across whose circle is 60px wide; thick reads as confident, thin as precise.
- Feel: **Smooth** · Gentle · Even. Smooth slows at the end like a pen lifting off; Gentle eases in and out; Even draws at one steady pace.
- Tick color: Pink · White · Blue · Purple · **Green** · Orange. The color of the circle and the tick; the X stays red.
@@ -335,7 +335,7 @@ Add a pulsing notification badge to [the icon that has something new, such as a
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Pulse style: **Grow** · Ring · Both. Grow scales the badge up and back; Ring sends a soft halo outward; Both does the two together.
+- Pulse style: **Grow** · Ring · Both. Grow scales the badge up and back; Ring sends a soft halo outward from just around the badge, growing to 2.2 times that size as it fades from half opacity to nothing; Both does the two together.
- Speed: Slow · **Normal** · Fast. How long one pulse takes: slow is 2.4s, normal 1.5s and fast 0.9s; fast feels urgent, slow is easy to miss.
- How much it grows: Slightly · **Medium** · A lot. How big the badge gets at the top of each pulse: slightly is 115%, medium 130% and a lot 150% of its size.
- Stops after three pulses: on · **off**. The badges pulse three times and then rest; the online dot keeps going.
@@ -357,7 +357,7 @@ Add tooltips to [the icon buttons, shortened text or fields that need a short ex
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
- Delay before showing: None · Short · **Medium** · Long. How long the pointer must rest before the tooltip shows: none, short (150ms), medium (300ms) or long (600ms); 300ms keeps tooltips from flashing as the pointer passes, and 200ms can work for very small ones.
-- Speed: Slow · **Normal** · Fast. How long the fade and the slight grow take: slow is 250ms, normal 150ms and fast 90ms.
+- Speed: Slow · **Normal** · Fast. How long the fade and the slight grow (from 95% of its size) take: slow is 250ms, normal 150ms and fast 90ms.
- Delay before hiding: None · **Short** · Long. How long the tooltip stays after the pointer leaves: none, short (100ms) or long (300ms); a short pause stops it vanishing the instant the pointer slips off its item.
- Shows an arrow: on · **off**. Adds a small point that aims the tooltip at its item.
@@ -418,7 +418,7 @@ Add an accordion to [the questions or sections you want to fold away]. Show only
- Speed: Slow · **Normal** · Fast. How long an answer takes to open or close: slow is 500ms, normal 300ms and fast 180ms.
- Feel: **Gentle** · Smooth · Even. 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: on · **off**. Off closes the open answer when another opens, which keeps the list short; on suits settings pages.
+- Several open at once: on · **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.
- Built with: **Measured height** · Grid rows. 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** · off. The arrow beside each question turns to point up while its answer is open.
- Text fades in: on · **off**. The answer's text fades in and rises slightly while its box opens, each paragraph a moment after the one before.
@@ -459,7 +459,7 @@ Add an error shake to [the form field that can be rejected, such as a password].
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Shake distance: Small · **Medium** · Large. How far the field swings: small is 4px, medium 8px and large 14px; under 4px barely shows and over about 16px feels violent.
+- Shake distance: Small · **Medium** · Large. How far the field swings: small is 4px, medium 8px and large 14px, the first swing most of that way and each one after it shorter, down to nothing; under 4px barely shows and over about 16px feels violent.
- Number of swings: Few · **Medium** · Many. How many times it swings: few is 4, medium 6 and many 8; four to six reads as a head shake, more feels frantic.
- Speed: Slow · **Normal** · Fast. How long the whole shake lasts: slow is 650ms, normal 400ms and fast 250ms; under 250ms feels twitchy and over 600ms drags.
@@ -478,7 +478,7 @@ Add swipe to dismiss to [the list items people should be able to remove]. While
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Distance to delete: Short · **Medium** · Long. How far a card must be dragged before letting go deletes it: short is 20%, medium 35% and long 50% of its width; a quick flick deletes it from a shorter drag.
+- Distance to delete: Short · **Medium** · Long. How far a card must be dragged before letting go deletes it: short is 20%, medium 35% and long 50% of its width; a quick flick (faster than 600px a second, after at least 24px) deletes it from a shorter drag.
- Shows a Delete label: **on** · off. A red strip with the word Delete shows behind the card while it is dragged.
## Hamburger Menu Toggle
@@ -573,7 +573,7 @@ Add toast notifications to [the actions in your app that should be confirmed qui
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
- Corner: Top left · **Top right** · Bottom left · Bottom right. Where toasts appear and stack; in the bottom corners the newest sits nearest the corner.
-- How it comes in: **Slides** · Fades · Grows. Slides in from its corner's side, fades in, or grows from slightly smaller; it leaves the same way.
+- How it comes in: **Slides** · Fades · Grows. Slides in from its corner's side, starting just over its own width away, fades in, or grows from 85% of its size, each fading in over 0.34 seconds; it leaves the same way in 0.3 seconds.
- Time on screen: Short · **Medium** · Long. How long each toast stays: short is 2.5 seconds, medium 4 and long 6.5; its bar counts down this time.
- Most at once: Two · Three · **Four**. Two, three or four; when one more arrives, the oldest leaves.
@@ -594,7 +594,7 @@ Add a segmented control to [the row of options people switch between, such as Da
- Speed: Slow · **Normal** · Fast. How long the highlight takes to slide: slow is 550ms, normal 340ms and fast 200ms.
- Feel: **Springy** · Smooth · Even. Springy runs a little past the option, then settles; Smooth slows to a stop; Even keeps one steady speed.
-- Highlight: **Pill** · Underline. A filled pill behind the chosen option, or a thin line under it.
+- Highlight: **Pill** · Underline. A filled pill behind the chosen option, or a thin 2px line under it.
- Number of options: Two · Three · **Four** · Five. Two to five options; more, or long labels, do not fit on one line.
## Pull to Refresh
@@ -613,7 +613,7 @@ Add pull to refresh to [the scrolling list or feed that should reload]. When the
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
- Pull distance: Short · **Medium** · Long. How far the list must be pulled before letting go refreshes: short is 48px, medium 64px and long 80px, measured after the resistance.
-- Resistance: Low · **Medium** · High. How hard the list fights back as it is pulled: low, medium or high; with a long pull distance and high resistance, it takes a long drag.
+- Resistance: Low · **Medium** · High. How hard the list fights back as it is pulled: it follows the finger at first and stiffens, so reaching the pull distance takes a drag of about 1.4 times it (low), 1.8 times (medium) or 2.25 times (high), and the list never goes past 3.4, 2.2 or 1.8 times it; with a long pull distance and high resistance, it takes a long drag.
- Spinner: **Ring** · Dots · Bars. A turning ring, three blinking dots or four stretching bars.
- Refresh time: Short · **Medium** · Long. How long the spinner turns before the new item arrives: short is 700ms, medium 1200ms and long 2000ms.
@@ -635,7 +635,7 @@ Add an animated gradient border to [the card or button you want to stand out]. G
- Colors: **Rainbow** · Sunset · Ocean. The four colors of the band: Rainbow, Sunset (yellow to purple) or Ocean (teal to indigo).
- Speed: Slow · **Normal** · Fast. How long one trip around the edge takes: slow is 7s, normal 4s and fast 2s; much faster and it looks busy.
- Soft glow: **on** · off. A blurred copy of the band behind the element, so its colors spill softly onto the page.
-- Band length: Short · **Long** · All around. How much of the edge the colors cover at once: a short band, a long one, or colors all around.
+- Band length: Short · **Long** · All around. How much of the edge the colors cover at once: a short band about a third of the way around, a long one about three fifths, each fading in from a faint tail to a bright front, or colors all around.
- Border width: Thin · **Medium** · Thick. How thick the colored edge is: thin is 1px, medium 2px and thick 4px.
## Spotlight Hover Glow
@@ -656,7 +656,7 @@ Add a spotlight glow to [the grid of dark cards you want to light up]. As the po
- Glow size: Small · **Medium** · Large. How far the light reaches: small, medium and large are 0.7, 1.15 and 1.7 times the grid's shorter side across.
- Color: White · Orange · Pink · **Purple** · Blue · Green. The color of the light and of the lit edges; white looks the most natural on gray cards.
- Lights the edges: **on** · off. The card edges near the pointer glow brightly; off, only the faces brighten.
-- Lag: None · **Short** · Long. How far the light trails a moving pointer: none follows it exactly, short closes 30% of the gap per 60 Hz frame and long 10%.
+- Lag: None · **Short** · Long. How far the light trails a moving pointer: none follows it exactly, short closes 30% of the gap per 60 Hz frame and long 10% (other screens close the share that fits their frame time), so the light gets 95% of the way in about 0.15 or 0.5 seconds.
## Add-to-Cart Fly
@@ -674,7 +674,7 @@ Add an add-to-cart animation to [the Add to cart buttons of your product list].
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
- Flight speed: Slow · **Normal** · Fast. How long the copy takes to reach the cart: slow is 1.1s, normal 0.7s and fast 0.45s.
-- Path: **Arc** · Straight. Arc rises and drops into the cart like a toss; Straight goes in a line, easing in and out.
+- Path: **Arc** · Straight. Arc moves sideways at an even pace while it rises and drops into the cart like a toss, peaking a twentieth of the sideways distance (10 to 28px) above the cart; Straight goes in a line, easing in and out.
- Cart bumps: **on** · off. The cart tips and grows for a moment and its badge pops as the copy lands; off, only the number changes.
## Drag to Reorder
@@ -693,7 +693,7 @@ Add drag to reorder to [the list whose order people can change]. Lift the picked
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
- Slide speed: Slow · **Normal** · Fast. How fast the passed items slide aside and the dropped one settles: slow is 420ms, normal 220ms and fast 120ms.
-- How much it lifts: **Subtle** · Strong. Subtle grows the held item by 2% with a soft shadow; strong grows it by 6%, tilts it a little and deepens the shadow.
+- How much it lifts: **Subtle** · Strong. Subtle grows the held item by 2% with a soft shadow 8px below it; strong grows it by 6%, tilts it 1.5° and deepens the shadow to 18px below it.
- Drags by the handle only: on · **off**. Only the grip starts a drag; when off, the whole row does, after a short press on touch screens.
## Rolling Numbers
@@ -730,8 +730,8 @@ Add a typing indicator to [the chat or comment thread where replies arrive]. Whi
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- How the dots move: **Bounce** · Fade · Wave. Bounce hops each dot 7px up and rests between rounds; fade brightens each dot and grows it from 70% to full size; wave raises and lowers the dots without a rest.
-- Speed: Slow · **Normal** · Fast. How long one round of the three dots takes: slow is 1.8 seconds, normal 1.2 seconds and fast 0.8 seconds.
+- How the dots move: **Bounce** · Fade · Wave. Bounce hops each dot 7px up and rests between rounds; fade brightens each dot and grows it from 70% to full size; wave raises and lowers the dots between 2.5px below and 5px above their place, without a rest.
+- Speed: Slow · **Normal** · Fast. How long one round of the three dots takes: slow is 1.8 seconds, normal 1.2 seconds and fast 0.8 seconds, each dot starting 15% of a round after the one before.
- Bubble color: **Gray** · Blue · Green · Purple. The color of the other person's bubbles: gray, blue, green or purple; the dots turn light gray or white to stay clear on it.
## Hold to Confirm
@@ -788,10 +788,10 @@ Add loading states to [the button that sends a form or saves something]. When it
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Result: **Success** · Error. Success shows a tick on green; Error shows a cross on red and gives the button a small shake.
+- Result: **Success** · Error. Success shows a tick on green; Error shows a cross on red and gives the button a small shake, swinging 7, 6, 4 and 2px to alternate sides over 0.4 seconds.
- Speed: Slow · **Normal** · Fast. How long the shape, the color and the icon take to change: slow is 500ms, normal 300ms and fast 180ms.
- Shrinks to a circle: **on** · off. On clips the button's color into a circle around the spinner; off keeps its full shape and changes only what is inside.
-- How long it loads: Short · **Medium** · Long. How long the spinner turns before the answer: short is 0.7 seconds, medium 1.2 and long 2.2; in a real form this is the server's time.
+- How long it loads: Short · **Medium** · Long. How long the spinner turns once the button has changed shape, before the answer comes: short is 0.7 seconds, medium 1.2 and long 2.2; in a real form this is the server's time.
## Image Trail
@@ -829,8 +829,8 @@ Add a gooey menu to [the round action button on your page]. Pressing it lets sma
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Layout: Row · **Arc** · Column. Row puts the small buttons in a line beside the round one; Arc fans them out above it; Column stacks them above it.
-- How gooey: Low · **Medium** · High. How much the circles are blurred before the edge is sharpened: low is 5, medium 9 and high 13 (times the menu's scale, and a fifth less on phones); higher keeps the drops joined for longer.
+- Layout: Row · **Arc** · Column. 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.
+- How gooey: Low · **Medium** · High. 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: Slow · **Normal** · Fast. 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.
- Button color: **Orange** · Pink · Purple · Blue · Green. The color of the circles; the icons stay dark.
@@ -849,6 +849,6 @@ Add a Dynamic Island style notification to [the top of your app or page]. At res
**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Notification: **Call** · Timer · Music. What the pill grows into: a call card, a timer in a wide capsule, or a taller music card with controls; picking another while it is open changes the shape straight into the new one.
+- Notification: **Call** · Timer · Music. 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.
- Speed: Slow · **Normal** · Fast. 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: None · **Soft** · Springy. None eases out without going past the size; Soft goes about 5% past it and Springy about 16%, and then each settles.
+- Bounce: None · **Soft** · Springy. 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.