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.

fix: the AI skill from the owner's test: each setting line ends with what it does and the demo's values from its README's Key parameters, a page without settings lists its own values, catalog lines lose their entry links, and SKILL.md treats the demo's choices as a starting point for the user's page and builds the smallest version that does what was asked

matin8028481548ac
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 198dbdde..3f577b5f 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -104,9 +104,9 @@ problem goes privately, as [SECURITY.md](SECURITY.md) describes, not into a publ
compared there.
Changing anything the skill or `llms.txt` repeats (a page's title, one-line description, kind,
-prompt, settings or Good for and Avoid on tags, or a card's name, places or order in `CATS`)
-also means running `node tools/make-skill.mjs` again: the skill test (`tests/skill.test.js`)
-fails until then.
+prompt, settings or Good for and Avoid on tags, a README's Key parameters, or a card's name,
+places or order in `CATS`) also means running `node tools/make-skill.mjs` again: the skill test
+(`tests/skill.test.js`) fails until then.
## The demo page
diff --git a/llms.txt b/llms.txt
index e2ee21df..f7ec0768 100644
--- a/llms.txt
+++ b/llms.txt
@@ -193,15 +193,15 @@ Each page plays one technique live and gives a ready-made prompt that describes
## Skill files
-- [SKILL.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/SKILL.md): how to find a technique, choose its settings and build it, with the rules every animation follows
+- [SKILL.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/SKILL.md): how to find a technique, choose its settings for the user's page and build it, with the rules for real pages
- [references/catalog.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/catalog.md): all 166 in one list, with what each does and where it goes, and an index by place
-- [references/01-scroll-based.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/01-scroll-based.md): the 27 Scroll-Based entries, each with its prompt and settings
-- [references/02-entrance-and-exit.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/02-entrance-and-exit.md): the 14 Entrance & Exit entries, each with its prompt and settings
-- [references/03-page-transitions.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/03-page-transitions.md): the 16 Page Transitions entries, each with its prompt and settings
-- [references/04-micro-interactions.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/04-micro-interactions.md): the 41 Micro-Interactions entries, each with its prompt and settings
-- [references/05-text-typography.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/05-text-typography.md): the 19 Text & Typography entries, each with its prompt and settings
-- [references/06-3d-advanced.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/06-3d-advanced.md): the 26 3D & Advanced entries, each with its prompt and settings
-- [references/07-ambient-background.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/07-ambient-background.md): the 23 Ambient & Background entries, each with its prompt and settings
+- [references/01-scroll-based.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/01-scroll-based.md): the 27 Scroll-Based entries, each with its prompt and its settings, with the demo's values
+- [references/02-entrance-and-exit.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/02-entrance-and-exit.md): the 14 Entrance & Exit entries, each with its prompt and its settings, with the demo's values
+- [references/03-page-transitions.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/03-page-transitions.md): the 16 Page Transitions entries, each with its prompt and its settings, with the demo's values
+- [references/04-micro-interactions.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/04-micro-interactions.md): the 41 Micro-Interactions entries, each with its prompt and its settings, with the demo's values
+- [references/05-text-typography.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/05-text-typography.md): the 19 Text & Typography entries, each with its prompt and its settings, with the demo's values
+- [references/06-3d-advanced.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/06-3d-advanced.md): the 26 3D & Advanced entries, each with its prompt and its settings, with the demo's values
+- [references/07-ambient-background.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/07-ambient-background.md): the 23 Ambient & Background entries, each with its prompt and its settings, with the demo's values
## Optional
diff --git a/skills/animation-handbook/SKILL.md b/skills/animation-handbook/SKILL.md
index 7b6ce9db..5fe7fa02 100644
--- a/skills/animation-handbook/SKILL.md
+++ b/skills/animation-handbook/SKILL.md
@@ -6,30 +6,32 @@ license: MIT
# Animation Handbook
-[Animation Handbook](https://matinmonshizadeh.github.io/animation-handbook/) is a free reference of 166 web animation techniques. On the site, each one has a page where it plays live, a few plain settings for most of them (speed, direction, color and the like) and a prompt that says in plain words how to build it, with no code. This skill holds all of those prompts and settings, so you can build any of the techniques in the user's own project.
+[Animation Handbook](https://matinmonshizadeh.github.io/animation-handbook/) is a free reference of 166 web animation techniques. Each one has a page where it plays live, a few plain settings for most of them (speed, direction, color and the like) and a prompt that says in plain words how to build it. This skill holds every prompt and every setting with the demo's values, so you can pick the right technique and build it into the user's own project.
## How to use it
-1. **Find the technique** in [references/catalog.md](references/catalog.md): one line per animation, with what it does, what it is best for and its places, the parts of a page it suits (Buttons, Text, Images & cards, Backgrounds, Menus & forms, Loading & messages, Page intros, Scrolling, Page changes). Match both what the user describes and where it goes. When two fit equally well, build one and mention the other. If nothing fits, say so and build what the user asked for with the rules below.
-2. **Read its entry** in the category file the catalog line names. The files are long, so find the heading with the technique's name and read down to the next heading: the prompt, the settings with their defaults, how it runs, what it is good for and what to avoid it on. If the user's place is on its Avoid on list, say so and suggest a better fit from the catalog.
-3. **Choose the settings** from the user's words: "a panel that slides in slowly from the left" picks the slow speed and the left side. Keep the default (in bold) for anything they did not mention, and ask only when a choice changes the result a lot and nothing they said points either way. The choices are named, not numbered: the technique's README gives the demo's own values for many of them (see the end of this file); otherwise choose values that fit the name and the project.
-4. **Build it** in the user's own stack, from plain HTML, CSS and JavaScript to React, Vue, Svelte or whatever the project already uses. Follow the prompt as the specification, with the user's own element in place of each [part in square brackets]. "Match the settings listed below" means the settings from step 3; the line at the end of each entry shows how the site lists them.
-5. **Check it** against the rules below, then tell the user which technique you built, with its live demo address, and which settings you chose.
+1. **Find the technique.** Search [references/catalog.md](references/catalog.md) for the effect the user describes and a synonym or two, rather than reading the whole file. Each line holds one technique: its name and live demo address, what it does and what it is best for, and its places, the parts of a page it suits (Buttons, Text, Images & cards, Backgrounds, Menus & forms, Loading & messages, Page intros, Scrolling, Page changes). Match both what the user describes and where it goes. Read the whole catalog, or its By place index at the end, only when the user wants ideas or a search finds nothing that fits. When two fit equally well, build one and mention the other; when none fits, say so and build what the user asked for with the rules below.
+2. **Read its entry.** It is in the category file named after the folder in its address (references/04-micro-interactions.md for an address under animations/04-micro-interactions/), from the heading with the technique's name to the next heading: what it is good for and what to avoid it on, how it runs, its prompt and its settings. If the user's place is on its Avoid on list, say so and suggest a better fit.
+3. **Choose the settings.** Each setting lists its choices and what they do, with the demo's values. The choice in bold is where the demo starts, set to show the effect off in a small box: a starting point, not advice for every page. Take what the user asked for first ("a panel that slides in slowly from the left" picks the slow speed and the left side), then choose the rest for their page: its size, how many things move and what the effect is for. A speed that suits a small demo can feel rushed across a full-width hero, and a delay that reads well between many small tiles can vanish between a few large cards. Ask only when a choice changes the result a lot and nothing points either way.
+4. **Build the smallest version that does what the user asked**, in their own stack (plain HTML, CSS and JavaScript, React, Vue, Svelte or whatever the project uses), with their element in place of each [part in square brackets]. The prompt describes the whole technique as its demo shows it. Keep everything it says about looking right, staying smooth, accessibility and reduced motion, but build only the features the request needs: one confirmation message does not need a stack of them, and a hover effect does not need a touch-drag version when touch users miss nothing without it. "Match the settings listed below" means your choices from step 3.
+5. **Check it** against the rules below. Then tell the user which technique you built, with its live demo address; the settings you chose, and why where they differ from the demo's; and the features of the prompt you left out, as options they can ask for.
When the user only asks which animation to use, suggest one or two from the catalog with their live demo addresses, and build once they choose. To improve an animation the project already has, find its closest technique the same way and change only what falls short of that prompt and the rules below.
-## The rules every animation follows
+## The rules for the user's page
-The handbook's demos follow these rules and the prompts take them for granted, so keep them even where a prompt does not repeat them.
+Keep these even where a prompt does not say them. Each prompt describes its technique as the demo shows it, in a box on a page about animation; where a prompt and a rule differ, follow the rule, which is about real pages.
-- **Move with transform and fade with opacity.** Never animate width, height, top, left or box-shadow, which make the browser lay out or repaint the page on every frame. Where a prompt asks for something else, such as a blur, a clip, a line that draws itself, a color change or a font weight, follow the prompt: it says how to keep that smooth.
-- **Move a JavaScript frame loop by elapsed time.** Each frame moves by the time since the last one, capped at about 50 ms, never by a fixed step per frame, so it runs at the same speed on a 30 Hz, 60 Hz or 120 Hz screen.
+- **Keep the page whole without the animation.** Nothing on screen when the page loads waits for a scroll to appear: it shows at once or plays its entrance right away, and only what starts below the first screen waits for the scroll. Hide content for an entrance only from the script that will reveal it, and create controls that work only with a script, such as an accordion's buttons, from that script, so the page still shows everything if the script fails.
+- **Give keyboard users what mouse users get on what they can reach.** On a link, button or form control, an effect that shows on hover also shows on focus, and one that starts on a press also starts on Enter or Space, from the middle of the control. Do not make other content focusable for a decorative effect, and leave the arrow keys alone unless the element is a control that uses them, such as a slider or a carousel: extra tab stops and captured keys cost keyboard users more than the effect gives them.
+- **Give touch what it needs.** When a hover reveals something people need, such as a menu, a tooltip or a hidden button, a tap reveals it too, and a drag uses pointer events so that touch works. A purely decorative hover effect, such as a tilt or a glow, can stay still on touch screens.
- **Follow reduced motion.** When the device asks for reduced motion, show the end state or a short fade instead of the movement, and start loops paused.
-- **Give a hover or a drag a touch equivalent.** A hover effect also works with a tap, and a drag uses pointer events so that touch works too.
-- **Make it work from the keyboard.** An effect that shows on hover also shows on keyboard focus. An effect that follows the pointer inside its own area, such as a card or a button, works from the keyboard when that area has focus: focus shows it and the arrow keys move it. A page-wide effect, such as a custom cursor or an image trail, never takes over the arrow keys, which scroll the page. An effect that starts on a press also starts on Enter or Space, from the middle of the control.
-- **Keep controls at least 44×44 px on phones**, buttons and handles drawn inside the animation included.
-- **Keep text at least 4.5:1 against its background.**
-- **Give heavy effects a lighter phone version.** A big blur, many particles or a shader gets a lighter version on phones, which are up to 600 px wide, or up to 500 px tall when held sideways.
+- **Move with transform and fade with opacity.** Never animate width, height, top, left or box-shadow, which make the browser lay out or repaint the page on every frame. Where the effect is something else, such as a clip, a line that draws itself, a color change or a blur-in, the prompt says how to keep it smooth.
+- **Make soft shapes from gradients.** A glow or a blob of color that only needs soft edges gets them from a gradient that fades to transparent, not from a large blur filter, which costs the browser a lot on every frame while the shape moves; a gradient is drawn once and then only moved. Keep the blur where it is the effect, as in a blur-in, frosted glass or a gooey merge.
+- **Stop what nobody can see.** A loop that keeps running, such as an ambient background, a canvas or a frame loop, pauses while it is scrolled out of view; a frame loop or timer also stops while the tab is hidden.
+- **Time a frame loop by the clock.** Each frame moves by the time since the last one, capped at about 50 ms, never by a fixed step, so it runs at the same speed on 30, 60 and 120 Hz screens.
+- **Lighten heavy effects on phones**, up to 600 px wide or 500 px tall when held sideways: less blur, fewer particles, a simpler shader.
+- **Keep touch targets at least 44×44 px on phones**, buttons and handles drawn inside the animation included, and **text at least 4.5:1 against its background.**
- **Add no library the project does not already use.** Every prompt works with plain code; use GSAP, Framer Motion, Three.js or the like only where the project has it.
## Where to look
@@ -43,4 +45,4 @@ The handbook's demos follow these rules and the prompts take them for granted, s
- [references/06-3d-advanced.md](references/06-3d-advanced.md): 3D & Advanced, 26 animations. WebGL, shaders, particles, 3D transforms, simulations, and other heavier effects.
- [references/07-ambient-background.md](references/07-ambient-background.md): Ambient & Background, 23 animations. Passive, looping effects that hold visual interest without demanding attention — gradients, particles, grain, and glows.
-Each live demo address is also the technique's folder in the repository, https://github.com/matinmonshizadeh/animation-handbook. Add README.md to the address (https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/rotate-in/README.md, for example) to read its README as plain text: how it works, the values behind each setting's choices and production notes. The address itself is the demo, with all of its code in the page.
+Each live demo address is also the technique's folder in the repository, https://github.com/matinmonshizadeh/animation-handbook: the page holds the demo's code, and its README (the address followed by README.md) explains how it works, with production notes. The entries hold what you need to build a technique; read a README only when the user asks how one works.
diff --git a/skills/animation-handbook/references/01-scroll-based.md b/skills/animation-handbook/references/01-scroll-based.md
index fca7dd2c..ef0960e7 100644
--- a/skills/animation-handbook/references/01-scroll-based.md
+++ b/skills/animation-handbook/references/01-scroll-based.md
@@ -1,6 +1,6 @@
# 01 · Scroll-Based
-Animations driven by scroll position — parallax, sticky, scrub, snap, and storytelling. 27 animations from Animation Handbook, in the home page's order. Each entry gives the live demo, how it runs, what it is good for and what to avoid it on, the prompt from its page word for word, and its settings.
+Animations driven by scroll position — parallax, sticky, scrub, snap, and storytelling. 27 animations from Animation Handbook, in the home page's order. Each entry gives the live demo, how it runs, what it is good for and what to avoid it on, the prompt from its page word for word, and its settings with what each does and the demo's values.
## Contents
@@ -45,7 +45,13 @@ Layers move at their own speed as the focus shifts. Best for cinematic intros.
Add a parallax depth-of-field effect to [your layered scene or illustration]. Split the scene into layers from far to near and hold it in place while the visitor scrolls through a taller section. As they scroll, move each layer by an amount that grows with its nearness, and move a point of sharp focus from the farthest layer to the nearest: blur each layer by how far it sits from that focus. Ease the layers toward the scroll position on every frame by a share of the distance left, exponential in the time since the last frame, so a wheel's jumps turn into smooth movement at the same pace on every screen. If the visitor has reduced motion turned on, keep the layers still and only shift the focus.
-**Settings**: none. The page has no settings, so the prompt is complete as it is.
+**Settings**: none, so the prompt is complete as it is. The demo's own values:
+
+- Focus: Follows the scroll. Sharp on the sky at the top of the scroll and on the front ridge at the end; each layer blurs by its distance from it.
+- Strongest blur: 14px (8px on phones). The blur of a layer as far from the focus as a layer can be.
+- Layer travel: 19% of the box's height (12.5% on phones). What the layers' sinking is measured against: over the whole scroll the front ridge sinks 70% of it, the hills 45%, the mountains 25%, the far peaks 10% and the sky not at all.
+- Easing: 14% per sixtieth of a second. How much of the remaining distance the layers cover in a sixtieth of a second; a longer frame covers more, so the layers settle in the same time on every screen; lower is smoother but lags more.
+- Pinned scene: Three box heights of scrolling. How much scrolling the whole focus pull takes.
## Parallax Scrolling
@@ -60,13 +66,9 @@ Far layers move slower than near ones as you scroll. Best for hero scenes.
Add a parallax scene to [your hero section or illustration]. Split the scene into layers from far to near, such as sky, hills, trees and ground, and hold it in place while the visitor scrolls through a taller section. As they scroll, move each layer by its own amount, as the settings choose; usually the farthest layer barely moves and the nearest moves most, which makes the flat picture feel deep. Base the movement on how far through the section the visitor has scrolled, so it starts and stops at the same place every time. If the visitor has reduced motion turned on, keep every layer still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Depth: Flat · Shallow · **Normal** · Deep
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Depth: Normal.
+- Depth: Flat · Shallow · **Normal** · Deep. The speeds of the sky, ridge, trees and grass: normal is 10%, 30%, 60% and 100%; shallow 50%, 65%, 80% and 100%; deep 0%, 25%, 70% and 150%; flat moves all four together. At 100% a layer travels a quarter of the box's height over the whole scroll.
## Reverse-Scrolling Columns
@@ -81,14 +83,10 @@ Side columns run the opposite way to the middle one. Best for portfolios.
Add reverse-scrolling columns to [your grid of project cards or images]. Lay the cards out in three columns and hold them in view while the visitor scrolls through a taller section. Move the middle column up with the scroll, and move the two side columns in the direction and at the speed given in the settings; running them the opposite way makes them seem to flow against the scroll. Put two copies of the cards in each column and wrap the movement by exactly one copy's height, so the columns never run out. If the visitor has reduced motion turned on, keep the columns still. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Side columns go: **Opposite way** · Same way
-- Side column speed: Slower · **Same** · Faster
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Side columns go: Opposite way, Side column speed: Same.
+- Side columns go: **Opposite way** · Same way. Opposite way makes the side columns flow against the scroll; same way moves all three together, so the effect disappears.
+- Side column speed: Slower · **Same** · Faster. The side columns' speed compared with the middle one: slower is half, same is equal and faster is one and a half times; above that the motion gets uncomfortable.
## Cover Card to Fixed Header
@@ -103,14 +101,10 @@ A tall cover shrinks into a slim header as you scroll. Best for articles.
Add a collapsing cover to [your article or page header]. Start with a tall cover pinned to the top that holds the title, a subtitle, the date and the author. As the visitor scrolls, shrink it into a slim header: the title scales down into the corner, the subtitle and date fade out first, and a small author badge fades in near the end. Unless the settings make it snap, tie every change to one number that runs from 0 to 1 with the scroll, so every moment in between looks planned and scrolling back reverses it. Turn off scroll anchoring on the scrolling area. If the visitor has reduced motion turned on, switch between the tall and slim cover halfway, without animating. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Shrink distance: Short · **Medium** · Long
-- Snaps at halfway: on · **off**
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Shrink distance: Medium, Snaps at halfway: off.
+- Shrink distance: Short · **Medium** · Long. How far you scroll before the cover is fully small: short is 200px, medium 320px and long 440px.
+- Snaps at halfway: on · **off**. Switches between the tall cover and the slim header at half the distance instead of shrinking with the scroll; reduced motion always does this.
## Fly-in Fly-out Contact List
@@ -125,17 +119,13 @@ Rows fade and slide as they near the top or bottom edge. Best for long lists.
Add a fly-in, fly-out effect to [your scrolling list, such as contacts or messages]. Treat a band at the top and a band at the bottom of the scrolling area as edge zones. As a row passes through the bottom band it arrives, and as it passes through the top band it leaves: the deeper it is in the band, the more it is faded, moved and shrunk, as the settings choose, and in the middle it shows in full. Work it out from the scroll position on every frame, so scrolling back brings rows back. If the visitor has reduced motion turned on, do not move or shrink rows; only fade them a little near the edges. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Effect: **All three** · Move only · Fade only
-- Edge zone size: Small · **Medium** · Large
-- How far rows move: Short · **Medium** · Far
-- How much rows shrink: A little · **Medium** · A lot
-- Shows the zones: on · **off**
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Effect: All three, Edge zone size: Medium, How far rows move: Medium, How much rows shrink: Medium, Shows the zones: off.
+- Effect: **All three** · Move only · Fade only. Which changes a row makes in the bands: all three (moving, fading and shrinking) together read as physical motion; moving only or fading only feels flatter.
+- Edge zone size: Small · **Medium** · Large. How tall each band is: small is 15% of the box, medium 25% and large 35%.
+- How far rows move: Short · **Medium** · Far. How far a row slides at the very edge: short is 20px, medium 40px and far 70px.
+- How much rows shrink: A little · **Medium** · A lot. The size of a row at the very edge: a little is 97%, medium 94% and a lot 88%.
+- Shows the zones: on · **off**. Tints the two bands, red for leaving and green for arriving.
## Stacking Cards
@@ -150,15 +140,11 @@ Cards stick at the top and pile into a deck. Best for step-by-step stories.
Add stacking cards to [your set of project or step cards]. Make each card stick to the top of the scrolling area so the next card slides up over it, and push each later card down by the offset in the settings so a strip of the cards underneath stays visible, like a deck. As a card is covered, shrink it slightly from its top edge, so buried cards look farther away. Leave some room after the last card so the finished deck stays on screen. Use scroll-driven animations where the browser supports them, with a small script as the fallback. If the visitor has reduced motion turned on, let the cards stack without shrinking. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Edge that shows: None · Small · **Medium** · Large
-- How much cards shrink: A little · **Medium** · A lot
-- Number of cards: 3 · **5** · 7
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Edge that shows: Medium, How much cards shrink: Medium, Number of cards: 5.
+- Edge that shows: None · Small · **Medium** · Large. The strip of each card left showing above the next: none, small (8px), medium (14px) or large (20px).
+- How much cards shrink: A little · **Medium** · A lot. How much smaller each card gets for every card on top of it: a little is 5%, medium 10% and a lot 12%.
+- Number of cards: 3 · **5** · 7. Three, five or seven cards; more make a taller deck and a longer scroll.
## Scroll-Triggered Animation
@@ -173,7 +159,12 @@ Animations start, follow and pin at set scroll points. Best for landing pages.
Add scroll-triggered animations to [the sections of your page]. Split the page into zones and work out from the scroll position whether each zone is still ahead, on screen or already passed. Fade a zone's content in when the zone arrives and hide it again when it has gone. Tie another animation's progress to how far the visitor has scrolled through its zone, so it plays forward and back with the scroll. Pin one card in place while its text steps through a few stages, and light up a row of dots in steps. Leave some space after the last zone so it can finish. If the visitor has reduced motion turned on, show content without fading it.
-**Settings**: none. The page has no settings, so the prompt is complete as it is.
+**Settings**: none, so the prompt is complete as it is. The demo's own values:
+
+- Zone height: 90% of the box (zone 3: twice the box). How much scrolling each zone takes.
+- Follow window: From 80% to 25% down the box. The square in zone 2 and the row of dots in zone 4 play while their own center rises between these two lines, so each plays in full view.
+- Pinned span: Zone 3's height less one box. How long the card holds still; its three stages share it equally.
+- Run-out: One box height. Space after the last zone, so it can finish and leave.
## Scrub Animation
@@ -188,13 +179,9 @@ Scroll plays it forward and back, like dragging a video. Best for product tours.
Add a scroll-scrubbed animation to [your illustration or product explainer]. Hold the scene in view while the visitor scrolls through a taller section, and turn how far they have scrolled into a progress value from 0 to 1. Draw the whole route up front, place the moving object at the point on it that matches the progress, facing along the path, and fill in the part already traveled. Nothing plays on a timer: scrolling back simply moves it back. Shape the progress with the easing given in the settings. If the visitor has reduced motion turned on, drop decorative effects but keep the object following the scroll. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Feel: **Even** · Gentle · Smooth · Slow start
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Feel: Even.
+- Feel: **Even** · Gentle · Smooth · Slow start. How scroll turns into progress: even follows the scroll one to one; gentle eases in and out; smooth slows toward the end; slow start begins slowly and speeds up.
## Pin Animation
@@ -209,7 +196,11 @@ One part stays put while its text changes on scroll. Best for feature lists.
Add a pinned section to [your product page, and the element that should stay in view]. Make the section several screens tall and pin the element and its text in the middle of the view while the visitor scrolls through it; the extra height is how long it stays. Split that distance into equal parts and show the next feature's text and picture in each part. When the section ends, let the element scroll away with the page. Use the browser's sticky positioning for the pin instead of moving it with a script. If the visitor has reduced motion turned on, change the features without animation.
-**Settings**: none. The page has no settings, so the prompt is complete as it is.
+**Settings**: none, so the prompt is complete as it is. The demo's own values:
+
+- Pinned section: Three box heights. The phone holds still for the two extra box heights; a taller section makes each feature last longer.
+- Number of features: 4. The features share the pinned scrolling equally.
+- Pinned at: The top of the box. Where the pinned frame sticks; the phone sits in its middle.
## Snap Scrolling
@@ -224,13 +215,9 @@ The box settles on one whole section at a time. Best for slides and galleries.
Add snap scrolling to [your page of full-height sections, slides or gallery]. Make each section exactly as tall as the scrolling area and mark its top as a snap point, so that, as the settings choose, the view settles on the nearest section instead of stopping between two. Use the browser's built-in scroll snapping rather than a script. Add small dots that show which section is in view and take the visitor to a section when pressed. Check scrolling with the arrow keys too, because strict snapping can feel stiff there. If the visitor has reduced motion turned on, let the view settle without a smooth glide. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Snapping: **Always** · When close · Off
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Snapping: Always.
+- Snapping: **Always** · When close · Off. Always settles on a section after every scroll; when close settles only when the box stops near one; off never snaps.
## Scrollytelling
@@ -245,7 +232,11 @@ A picture beside the story changes as you read down. Best for data stories.
Add a scrollytelling layout to [your story and the picture that goes with it]. Put the story in a column of chapters that scrolls, and keep the picture in view beside it. Work out which chapter has passed a reading line about 40% down the view and how far it is toward the next, as a fraction, and blend every value in the picture between the two chapters with it, such as colors and a counting number, so the picture changes smoothly as the visitor reads. On phones, pin a short strip of the picture above the text. If the visitor has reduced motion turned on, change the picture without fading.
-**Settings**: none. The page has no settings, so the prompt is complete as it is.
+**Settings**: none, so the prompt is complete as it is. The demo's own values:
+
+- Reading line: 42% down the box. A chapter becomes current once its top passes this line; a higher line changes chapters later, a lower one sooner.
+- Chapter height: At least 90% of the box. How much scrolling each chapter takes; taller chapters make slower, finer blends.
+- Number of chapters: 6. Each chapter adds its colors and its depth to the blend.
## Reveal on Scroll
@@ -260,14 +251,10 @@ Cards appear as they cross a line in the box. Best for long landing pages.
Add reveal-on-scroll animations to [the sections or cards on your page]. Keep each element in a hidden starting state, such as faded, shifted, shrunk, blurred or clipped, until it rises past a trigger line inside the view, then let it settle into its normal state. Watch the elements with the browser's intersection observer rather than on every scroll, and count an element that is already above the line as crossed, so a fast scroll never skips one. Reveal each element once, or every time it crosses, as the settings say. If the visitor has reduced motion turned on, show each element without movement. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Trigger line: Higher · **Normal** · Lower
-- Plays every time: on · **off**
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Trigger line: Normal, Plays every time: off.
+- Trigger line: Higher · **Normal** · Lower. Where the dashed line sits: higher is halfway down the box, normal 70% down and lower 90% down; the higher the line, the further a card must scroll before it appears.
+- Plays every time: on · **off**. Off, each card appears once and stays; on, it hides again when it drops back below the line and replays the next time.
## Stagger Reveal
@@ -282,14 +269,10 @@ Items in a group appear one after another as it scrolls in. Best for card grids.
Add a stagger reveal to [your grid, list or group of items]. When the group scrolls into view, reveal its items one after another instead of all at once: each item fades in and rises a little, starting a short delay after the one before, in the order the settings choose. Make each item's own animation longer than the delay between items, so they overlap into one sweep, and keep the whole cascade under about 600ms on long lists. If the visitor has reduced motion turned on, show the items without movement. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Delay between items: Short · **Medium** · Long
-- Order: **First to last** · Last to first · From the middle · Random
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Delay between items: Medium, Order: First to last.
+- 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.
+- 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
@@ -304,7 +287,11 @@ Scroll down and a row of panels slides sideways. Best for portfolios.
Add a horizontal scroll section to [the panels or projects you want to show]. Place the panels side by side in one long strip inside a section that is several screens tall. As the visitor scrolls down through that section, pin its inner frame in place and slide the strip to the left in step with the scroll, so scrolling down moves the panels sideways; once the last panel is in view, release the frame and let the page scroll on. Give the strip an explicit width so it can move. Keep the visitor's own scrolling, touch included, so scrolling back up slides the panels back. If the visitor has reduced motion turned on, keep the strip tied exactly to their scrolling, with no easing or snapping added.
-**Settings**: none. The page has no settings, so the prompt is complete as it is.
+**Settings**: none, so the prompt is complete as it is. The demo's own values:
+
+- Number of panels: 5. Each panel is one box wide, and the strip is as wide as all of them together.
+- Pinned section height: Five box heights. The strip slides while the box scrolls through it; a taller section makes each panel pass more slowly.
+- Lead-in and lead-out: Six tenths of a box height each. The space before and after the section, so you see it arrive, hold still and let go.
## Sticky Section
@@ -319,7 +306,11 @@ A section holds still while its content changes. Best for feature tours.
Add a sticky section to [the steps or features you want to walk through]. Make the section several screens tall and pin its inner frame to the top of the screen while the visitor scrolls through it. Split that scroll distance into equal parts, one per step, and as each part is reached, fade the text and the picture over to the next step while the frame itself stays still. After the last step, let the section scroll away so the page carries on. Work out the step from the scroll position, so scrolling back up steps backwards. If the visitor has reduced motion turned on, switch the steps without fading.
-**Settings**: none. The page has no settings, so the prompt is complete as it is.
+**Settings**: none, so the prompt is complete as it is. The demo's own values:
+
+- Number of steps: 4. Each step owns an equal share of the scrolling while the section holds still.
+- Wrapper height: Four box heights. The section holds still for three of them; a taller wrapper makes each step last longer.
+- Fade between steps: 0.5 s. How long the text takes to fade to the next step; the picture takes 0.6 s.
## Counter Animation
@@ -334,16 +325,12 @@ Numbers count up when they scroll into view. Best for stats.
Add a count-up animation to [the numbers in your stats section]. When the numbers scroll far enough into view, count each one up from zero to its total, and format it on every step so commas, currency signs and units show the whole way through, not just at the end. Count again if the numbers leave the view and come back. When the settings include it, start each number a moment after the one before for a cascade. Screen readers should hear each final number once, never the steps in between. If the visitor has reduced motion turned on, show the final numbers straight away. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Starts counting: Early · **Middle** · Late
-- Speed: Slow · **Normal** · Fast
-- Feel: **Smooth** · Slow finish · Springy · Even
-- One after another: **on** · off
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Starts counting: Middle, Speed: Normal, Feel: Smooth, One after another: on.
+- Starts counting: Early · **Middle** · Late. The line the top of the tiles must pass before the numbers may count: early is a tenth of the way up the box, middle 40% of the way up and late 70%. Each number then waits until half of it is inside the box, so on a short box early and middle start at almost the same place.
+- Speed: Slow · **Normal** · Fast. How long each count takes: slow is 2.9 s, normal 1.8 s and fast 1.1 s.
+- Feel: **Smooth** · Slow finish · Springy · Even. Smooth slows to a stop; Slow finish races to near the total, then creeps through the last digits; Springy goes a little past and settles back; Even counts at one steady pace, which feels mechanical.
+- One after another: **on** · off. Each number starts 200ms after the one before, so the four count in a cascade.
## Progress Bar
@@ -358,15 +345,11 @@ A bar fills as you read down the page. Best for long articles.
Add a reading progress indicator to [your article or long page]. Work out how far the reader has scrolled as a share of the total distance they can scroll, and show it as a bar that fills along the top, a ring that fills in a corner, or a thin rail down the side, so it is full exactly when the last line is in view. Keep the indicator outside the scrolling content so it stays in place, and grow it with a transform rather than by changing its width, so scrolling stays smooth. Hide the indicator from screen readers; it only repeats what scrolling shows. It follows the reader's own scrolling, so reduced motion needs no change. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Indicator: **Top bar** · Ring · Side rail
-- Thickness: Thin · **Medium** · Thick
-- Color: **Blue** · Green · Orange · Purple
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Indicator: Top bar, Thickness: Medium, Color: Blue.
+- Indicator: **Top bar** · Ring · Side rail. The top bar is the most noticeable; the ring in the corner takes the least room and shows the percentage; the side rail is the quietest.
+- Thickness: Thin · **Medium** · Thick. Thin is 2px, medium 3px and thick 6px; thin is almost invisible until you look for it, thick is hard to miss.
+- Color: **Blue** · Green · Orange · Purple. The color of the fill.
## Section Wipe
@@ -381,14 +364,10 @@ Each section slides up over the one before. Best for full-screen stories.
Add a section wipe to [the full-screen sections of your page]. Make each section exactly one screen tall, stick each one to the top as the visitor scrolls, and stack them so every section sits above the one before; the next section then slides up and covers the current one instead of pushing it away. While a section is being covered, shrink its content in step with the scroll so it seems to sink behind the one arriving, unless the settings turn the shrink off. Nothing ever covers the last section. If the visitor has reduced motion turned on, keep the wipe but skip the shrink. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Shrink: None · **A little** · A lot
-- Shrink speed: Quick · Medium · **Gradual**
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Shrink: A little, Shrink speed: Gradual.
+- Shrink: None · **A little** · A lot. How small the covered section gets: none keeps it full size, a little is 96% and a lot 88%; smaller sinks it deeper.
+- Shrink speed: Quick · Medium · **Gradual**. How much of the wipe the shrink takes: gradual spreads it over the whole wipe, medium over the first 60% and quick over the first 30%.
## Zoom Into Image
@@ -403,15 +382,11 @@ A small window opens up to fill the box as you scroll. Best for hero images.
Add a zoom-into-image effect to [your featured picture]. Pin the picture in place while the visitor scrolls through a section a couple of screens tall, and show only a small window of it at first. As they scroll, open that window outward in step with the scroll until the picture fills the whole frame, then fade in a caption. Uncover the picture by clipping it rather than scaling it up, so it stays sharp, and let scrolling back up close the window again. If the visitor has reduced motion turned on, show the full picture and the caption from the start. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Starting window: Small · **Medium** · Large
-- Corners: Square · **Rounded** · Very rounded
-- Shows the starting frame: **on** · off
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Starting window: Medium, Corners: Rounded, Shows the starting frame: on.
+- Starting window: Small · **Medium** · Large. How much of the picture shows at first: small is a window a fifth of the box wide, medium two fifths and large three fifths.
+- Corners: Square · **Rounded** · Very rounded. How round the window's corners are at the start: square, 16px or 32px; they straighten as the window opens.
+- Shows the starting frame: **on** · off. A faint outline stays where the window began, so you can see how far it has opened; it fades out as the caption fades in.
## Scroll Image Sequence
@@ -426,14 +401,10 @@ Scrolling plays a series of pictures like a flip-book. Best for products.
Add a scroll-driven image sequence to [your product or object animation]. Export the animation as a numbered series of pictures and load them all before the section comes into view. Pin a canvas in place while the visitor scrolls through a section a few screens tall, turn their scroll position into a frame number, and draw that frame whenever it changes, so scrolling plays the sequence like a flip-book and scrolling back plays it in reverse. When the settings include it, let the picture ease toward the frame the scroll points at instead of jumping. Give the canvas a text description for screen readers. If the visitor has reduced motion turned on, jump straight to each frame. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Number of frames: Few · **Normal** · Many
-- Glides between frames: **on** · off
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Number of frames: Normal, Glides between frames: on.
+- Number of frames: Few · **Normal** · Many. How many pictures the sequence has: few is 24, normal 120 and many 240; more frames scrub more smoothly but are more images to load in production.
+- Glides between frames: **on** · off. The picture eases toward the frame the scroll points at instead of jumping to it.
## Smooth (Inertia) Scroll
@@ -448,13 +419,9 @@ Scrolling glides to a stop instead of jumping. Best for portfolio sites.
Add smooth scrolling to [the scrolling area or page you want to glide]. Catch the visitor's wheel, swipe and drag and turn each one into a target position, then on every frame move the content part of the remaining distance toward that target, so it glides and slows to a stop instead of jumping. Make that part exponential in the time since the last frame (one minus a fixed fraction to the power of that time), so the pace is the same on every screen. Move the content with a transform and keep a custom scrollbar in step with it. Keep keyboard scrolling, links to headings and find-in-page working. If the visitor has reduced motion turned on, use the browser's normal scrolling with no glide. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Glide: Long · **Medium** · Short
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Glide: Medium.
+- 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.
## Text Fill on Scroll
@@ -469,15 +436,11 @@ Words light up one by one as you scroll. Best for key statements.
Add a scroll-driven text fill to [the statement or paragraph you want read]. Pin the paragraph in place while the visitor scrolls through a section a few screens tall. Split it into words, show every word in a dim but readable gray, and light the words up one by one in step with the scroll, so how far the reader has scrolled decides how much is lit and scrolling back up un-lights them. When the settings include it, show the next word to fill in a highlight color, like a reading cursor. Keep it real text for screen readers. If the visitor has reduced motion turned on, change each word's color without fading. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Highlights the current word: **on** · off
-- Fill finishes: Early · **Normal** · At the end
-- Highlight color: **Blue** · Green · Orange
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Highlights the current word: on, Fill finishes: Normal, Highlight color: Blue.
+- Highlights the current word: **on** · off. The next word to fill shows in the highlight color, like a reading cursor.
+- Fill finishes: Early · **Normal** · At the end. How far through the scrolling the last word lights: early at 70%, normal at 90% and at the end at 100%; finishing early leaves a moment to read the whole text.
+- Highlight color: **Blue** · Green · Orange. The color of the word being filled.
## Scroll Velocity Skew
@@ -492,16 +455,12 @@ Rows lean when you scroll fast and straighten when you stop. Best for galleries.
Add a velocity skew to [the rows or cards in your list or gallery]. Measure how far the list scrolls on each frame, smooth that speed so it rises and falls gradually, and lean every row by an angle in proportion to it, up to a limit. Fast scrolling leans the rows; when the scrolling stops, the speed falls to zero and they spring back straight. Lean each row on its own rather than the whole list, and stop the frame loop once everything is still. This effect can make some people feel unwell, so if the visitor has reduced motion turned on, keep the rows straight and scroll normally. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Strength: Subtle · **Normal** · Strong
-- Lean: **Tilt** · Slant
-- Spring back: Slow · **Normal** · Quick
-- Most it leans: Small · **Medium** · Large
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Strength: Normal, Lean: Tilt, Spring back: Normal, Most it leans: Medium.
+- 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.
+- 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
@@ -516,15 +475,11 @@ A line draws itself along a route as you scroll. Best for timelines.
Add a scroll-drawn route to [your timeline, journey or process steps]. Draw a long winding path down the page with a faint dashed copy underneath, and reveal the solid line in step with the scroll so its tip travels down with the visitor. Measure the path's length once and reveal it by sliding a single dash that is exactly as long as the path. When the settings include them, place labeled stops along the path and pop each one in as the line reaches it; scrolling back up erases the line and hides them again. If the visitor has reduced motion turned on, show each stop without the pop. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Feel: **Even** · Smooth
-- Shows the stops: **on** · off
-- Line finishes: Early · Near the end · **At the end**
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Feel: Even, Shows the stops: on, Line finishes: At the end.
+- Feel: **Even** · Smooth. Even keeps the tip of the line level with your scroll; Smooth draws quickly at first and slows toward the end.
+- Shows the stops: **on** · off. Five labeled stops pop in as the line reaches them and hide again when you scroll back.
+- Line finishes: Early · Near the end · **At the end**. How far through the scrolling the line is complete: early at 70%, near the end at 85% and at the end at 100%; finishing early shows the whole route before you reach the bottom.
## Scrollspy Navigation
@@ -539,14 +494,10 @@ A menu highlights the section you are reading. Best for long docs.
Add a scrollspy menu to [your documentation or long page and its section headings]. Keep a menu of section links in place beside the content and highlight the link for the section being read, with a marker that slides to it: a section becomes current once its heading scrolls up past a chosen line, and the last link lights up at the very bottom. Clicking or tapping a link scrolls to its section and lights that link at once, without flickering through the links in between. On phones, turn the menu into a strip across the top. If the visitor has reduced motion turned on, jump to sections instead of gliding. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Link changes at: Near the top · **A third down** · Halfway
-- Glides to the section: **on** · off
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Link changes at: A third down, Glides to the section: on.
+- Link changes at: Near the top · **A third down** · Halfway. Where a section's heading must reach before its link lights: near the top is 20% down the box, a third down 35% and halfway 50%; a higher line switches later.
+- Glides to the section: **on** · off. A link glides to its section; off, it jumps there at once, as it always does under reduced motion.
## Scroll-Driven Background Color
@@ -561,14 +512,10 @@ The background color changes as you scroll through sections. Best for stories.
Add a scroll-driven background color to [the sections of your page]. Give each section a color, and as the visitor scrolls, change the page background from one section's color to the next in step with their position, blending between them unless the settings ask for a hard cut, so the color follows the scroll both ways. Blend in a perceptual color space so the colors in between stay clean. Check the text against the background at every point, and switch the text to dark when the background turns light. A change of color is not movement, so keep it when the visitor has reduced motion turned on. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Colors: **Dusk** · Daylight · Forest
-- Blend: **Gradual** · Quick · Hard cut
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Colors: Dusk, Blend: Gradual.
+- 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.
## Hide-on-Scroll Header
@@ -583,12 +530,8 @@ Scrolling down hides the top bar; scrolling up shows it. Best for mobile pages.
Add a hide-on-scroll header to [the top bar of your site]. When the visitor scrolls down, slide the bar up out of view, or shrink it to a slim strip if the settings ask for that; when they scroll back up, bring it back as the settings say. Tell the direction by comparing each scroll position with the last one, ignore moves of a few pixels so the bar never flickers, and always show it near the top of the page. Let the bar float over the content, move it only with a transform and read the scroll once per frame. Touch scrolling counts too. If the visitor has reduced motion turned on, fade the bar out and in instead. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Speed: Slow · **Normal** · Fast
-- Comes back: **On any scroll up** · Only near the top
-- Shrinks instead of hiding: on · **off**
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Speed: Normal, Comes back: On any scroll up, Shrinks instead of hiding: off.
+- Speed: Slow · **Normal** · Fast. How long the slide takes: slow is 700ms, normal 300ms and fast 150ms.
+- Comes back: **On any scroll up** · Only near the top. On any scroll up brings the bar back at the first move up; Only near the top keeps it away until the page is back within two bar heights of the top.
+- Shrinks instead of hiding: on · **off**. Keeps a slim strip of the bar in view, with smaller contents, instead of sliding it all away.
diff --git a/skills/animation-handbook/references/02-entrance-and-exit.md b/skills/animation-handbook/references/02-entrance-and-exit.md
index c588f443..e3821d3c 100644
--- a/skills/animation-handbook/references/02-entrance-and-exit.md
+++ b/skills/animation-handbook/references/02-entrance-and-exit.md
@@ -1,6 +1,6 @@
# 02 · Entrance & Exit
-Element-level animations for arriving and departing — fades, slides, reveals, flips, and text staggers. 14 animations from Animation Handbook, in the home page's order. Each entry gives the live demo, how it runs, what it is good for and what to avoid it on, the prompt from its page word for word, and its settings.
+Element-level animations for arriving and departing — fades, slides, reveals, flips, and text staggers. 14 animations from Animation Handbook, in the home page's order. Each entry gives the live demo, how it runs, what it is good for and what to avoid it on, the prompt from its page word for word, and its settings with what each does and the demo's values.
## Contents
@@ -32,14 +32,10 @@ Fades in to appear and fades out to leave. Best for pop-ups and tooltips.
Add a fade-in and fade-out to [the element you want to show and hide]. When it appears, it should go smoothly from fully transparent to fully visible, and when it leaves it should do the reverse. Nothing moves or changes size; only the opacity changes, which keeps the animation smooth because the browser doesn't need to repaint. Reserve the element's space while it is invisible so the layout doesn't jump, and make sure a hidden element can't be clicked or focused. If the visitor has reduced motion turned on, show and hide it instantly or with a very short fade. Match the settings listed below.
-**Settings** (the defaults in bold):
+**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
-- Feel: **Smooth** · Gentle · Even
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Speed: Normal, Feel: Smooth.
+- Speed: Slow · **Normal** · Fast. How long the fade takes: slow is 1000ms, normal 600ms and fast 350ms; under 150ms a fade barely registers.
+- Feel: **Smooth** · Gentle · Even. Smooth starts quickly and settles gently, the natural feel for an entrance; Gentle eases in and out; Even keeps one steady pace.
## Slide In
@@ -54,17 +50,13 @@ Travels into place from one edge. Best for side panels and notifications.
Add a slide-in entrance to [the element you want to animate]. It should start away from its final position, on the side and at the distance given in the settings, and travel into place so it feels like it came from somewhere; slowing down as it arrives makes the landing feel natural. Unless the settings turn it off, fade it in during the slide too, because a slide on its own tends to look mechanical. Give longer distances a little more time so the speed still feels natural. Move it without changing the layout, so nothing around it shifts. If the visitor has reduced motion turned on, skip the travel and simply show it. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Comes in from: **Top** · Bottom · Left · Right
-- How far it travels: Short · **Medium** · Far
-- Speed: Slow · **Normal** · Fast
-- Feel: **Smooth** · Springy · Gentle · Even
-- Fades in: **on** · off
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Comes in from: Top, How far it travels: Medium, Speed: Normal, Feel: Smooth, Fades in: on.
+- Comes in from: **Top** · Bottom · Left · Right. Which edge it travels in from.
+- How far it travels: Short · **Medium** · Far. How far away it starts: short is 50px, medium 200px and far 400px; short distances suit subtle interface motion, long ones feel dramatic.
+- Speed: Slow · **Normal** · Fast. How long the slide takes: slow is 1000ms, normal 600ms and fast 350ms; longer distances need more time so the speed still feels believable.
+- Feel: **Smooth** · Springy · Gentle · Even. Smooth slows down into place; Springy adds a small overshoot; Gentle eases in and out; Even keeps one steady pace.
+- Fades in: **on** · off. A slide alone looks mechanical; the fade makes it read as an arrival.
## Slide Up Reveal
@@ -79,16 +71,12 @@ Text rises into view from behind an invisible edge. Best for headlines.
Add a slide-up reveal to [your headline or lines of text]. Each line should rise into view from just below an invisible edge, as if it is coming up from behind a solid surface, so viewers only see it arrive and never see it below the line. The text can slide up behind the edge or be uncovered in place from the bottom up; both look almost the same. When there are several lines, start each one a moment after the line above it so they cascade. The text must stay readable by screen readers and search engines the whole time. If the visitor has reduced motion turned on, show the text immediately without the rise. Match the settings listed below.
-**Settings** (the defaults in bold):
+**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
-- Delay between lines: Short · **Medium** · Long
-- Reveal style: **Slide** · Wipe
-- Feel: **Smooth** · Springy · Even
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Speed: Normal, Delay between lines: Medium, Reveal style: Slide, Feel: Smooth.
+- Speed: Slow · **Normal** · Fast. How long each line takes to rise: slow is 1100ms, normal 700ms and fast 400ms.
+- Delay between lines: Short · **Medium** · Long. The wait before each next line starts: short is 30ms, medium 60ms and long 120ms; 40 to 80ms reads as a cascade.
+- Reveal style: **Slide** · Wipe. Two ways to build it that look almost the same: sliding the text up behind a hidden edge, or wiping it into view in place.
+- Feel: **Smooth** · Springy · Even. Smooth slows to a stop; Springy adds a slight settle; Even keeps one steady pace.
## Scale In / Zoom In
@@ -103,17 +91,13 @@ Grows from smaller to full size. Best for pop-ups and menus.
Add a scale-in entrance to [the element you want to animate]. It should start smaller than its final size and grow to full size, anchored at the point given in the settings: its center, or an edge or corner so it seems to grow out of the button that opened it. A springy curve lets it overshoot slightly and settle, which makes the arrival feel physical. Unless the settings turn it off, fade it in while it grows so it never flashes at full strength while it is still tiny. Animate only its size and opacity. If the visitor has reduced motion turned on, show it at full size without the zoom. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Starting size: **A bit smaller** · Half size · From nothing
-- Grows from: **Center** · Top left · Top · Bottom
-- Speed: Slow · **Normal** · Fast
-- Feel: Smooth · **Springy** · Gentle · Even
-- Fades in: **on** · off
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Starting size: A bit smaller, Grows from: Center, Speed: Normal, Feel: Springy, Fades in: on.
+- Starting size: **A bit smaller** · Half size · From nothing. How small it starts: a bit smaller is 80% of full size, half size 50% and from nothing 0%; close to full size is subtle, below half reads as a big zoom.
+- Grows from: **Center** · Top left · Top · Bottom. The point it grows from: the center, the top left corner, the top edge or the bottom edge.
+- Speed: Slow · **Normal** · Fast. How long it takes: slow is 800ms, normal 500ms and fast 300ms; a springy curve needs room to overshoot and settle.
+- Feel: Smooth · **Springy** · Gentle · Even. Springy overshoots and settles; Smooth and Gentle arrive more calmly; Even keeps one steady pace.
+- Fades in: **on** · off. Stops the element flashing at full strength while it is still tiny.
## Clip-Path Reveal
@@ -128,16 +112,12 @@ A growing shape uncovers it while it stays still. Best for images and banners.
Add a mask reveal to [the image or block you want to reveal]. The element should stay completely still and fully drawn while a shape uncovers it, like a window opening: an edge wipe that starts from one side or from the center, or a circle or oval that opens from the middle. Nothing moves, fades or changes size; only the visible area grows until the whole element shows. A wipe that slows down as it finishes looks calmer than one that stops abruptly. The content must stay accessible even while part of it is hidden. If the visitor has reduced motion turned on, show it fully without the wipe. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Shape: **Edge wipe** · Circle · Oval
-- Starts from: **Left** · Right · Top · Bottom · Center
-- Speed: Slow · **Normal** · Fast
-- Feel: **Smooth** · Even
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Shape: Edge wipe, Starts from: Left, Speed: Normal, Feel: Smooth.
+- Shape: **Edge wipe** · Circle · Oval. Edge wipe uncovers it from one side or from the center; Circle and Oval open from the middle like an iris.
+- Starts from: **Left** · Right · Top · Bottom · Center. For the edge wipe, where the reveal begins: left, right, top, bottom or center.
+- Speed: Slow · **Normal** · Fast. How long the reveal takes: slow is 1300ms, normal 800ms and fast 500ms; a reveal reads best a little slower than a fade.
+- Feel: **Smooth** · Even. Smooth slows to a stop instead of snapping; Even keeps one steady pace.
## Curtain Reveal
@@ -152,16 +132,12 @@ A colored panel covers it, then slides away. Best for intros and logos.
Add a curtain reveal to [the content you want to reveal]. A solid colored panel should slide across and cover the content completely, hold for the pause given in the settings, then keep going and slide off the far side, leaving the content visible. The pause is what makes the change register. When the panels come in from both sides, two panels meet in the middle, then part. Pick a panel color that contrasts strongly with the content. Move the panels rather than resizing them so the motion stays smooth. If the visitor has reduced motion turned on, show the content without the curtain. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Comes in from: **Left** · Right · Top · Bottom · Both sides
-- Speed: Slow · **Normal** · Fast
-- Pause while covered: None · **Short** · Long
-- Curtain color: **Dark** · Ink blue · Warm red · Off-white · Gold
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Comes in from: Left, Speed: Normal, Pause while covered: Short, Curtain color: Dark.
+- Comes in from: **Left** · Right · Top · Bottom · Both sides. Which way the panel travels; Both sides sends two panels that meet in the middle, then part.
+- Speed: Slow · **Normal** · Fast. Time for one pass: slow is 800ms, normal 500ms and fast 300ms; the whole reveal takes about two passes plus the pause.
+- Pause while covered: None · **Short** · Long. How long the panel covers everything: none, short (300ms) or long (800ms); the pause is what makes the change register.
+- Curtain color: **Dark** · Ink blue · Warm red · Off-white · Gold. The panel's color; strong contrast with the content makes the reveal more dramatic.
## Split Text Reveal
@@ -176,18 +152,14 @@ Text breaks into pieces that appear one after another. Best for headlines.
Add a split-text reveal to [your headline]. Break the text into pieces (characters, words or lines) and animate each piece into view one after another with a short delay between them, so the text flows in as a cascade instead of appearing all at once. Every piece plays the same small entrance, such as fading up from slightly below. Screen readers should still read the text as one normal sentence, not as separate pieces, and the text must not reflow or jump while it animates. If the visitor has reduced motion turned on, show the text immediately. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Split into: Letters · **Words** · Lines
-- How each piece appears: **Fade up** · Fade · Grow · Flip
-- Delay between pieces: Short · **Medium** · Long
-- Speed: Slow · **Normal** · Fast
-- Feel: **Smooth** · Springy · Even
-- Your text: text field, starts as "Design beyond the obvious"
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Split into: Words, How each piece appears: Fade up, Delay between pieces: Medium, Speed: Normal, Feel: Smooth, Your text: "Design beyond the obvious".
+- 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.
+- 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.
+- Your text: text field, starts as "Design beyond the obvious". The text that is split and revealed.
## Letter-by-Letter Stagger
@@ -202,18 +174,14 @@ A phrase appears letter by letter or typewriter-style. Best for short headlines.
Add a letter-by-letter entrance to [a short phrase or headline]. In the cascade style, every letter plays a small entrance a moment after the previous one, so the phrase assembles from left to right. In the typewriter style, the letters appear one at a time as if someone is typing, with a blinking cursor when the settings include one. Use it only on short phrases, because long text becomes tedious to wait for. Screen readers should hear the whole phrase once, not letter by letter. If the visitor has reduced motion turned on, show the full phrase immediately. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Style: **Cascade** · Typewriter
-- Delay between letters: Short · **Medium** · Long
-- How each letter appears: **Fade up** · Fade · Grow · Flip
-- Speed: Slow · **Normal** · Fast
-- Blinking cursor: **on** · off (the page shows it only for some choices of another setting, and copies it only then)
-- Your text: text field, starts as "Hello, world."
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Style: Cascade, Delay between letters: Medium, How each letter appears: Fade up, Speed: Normal, Your text: "Hello, world.".
+- 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.
+- 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, and copies it only then). 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.
## Word-by-Word Reveal
@@ -228,18 +196,14 @@ Words appear one after another at a reading pace. Best for quotes and intros.
Add a word-by-word reveal to [the paragraph or quote you want to reveal]. Each word should appear a moment after the one before it, so the text builds up as if it is being spoken; a delay close to the pace people read feels most natural. If pauses between sentences are on, wait a little longer at the end of each sentence before continuing. Keep the delay short enough that nobody waits for text they could already read. The full text must stay readable by screen readers and must not reflow while it appears. If the visitor has reduced motion turned on, show all the text at once. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Delay between words: Short · **Medium** · Long
-- How each word appears: **Fade up** · Fade · Grow · Blur · Flip
-- Speed: Slow · **Normal** · Fast
-- Feel: **Smooth** · Springy · Even
-- Pauses between sentences: on · **off**
-- Your text: text box, starts with the lines "We build interfaces that disappear.", "Tools that feel inevitable." and "Software made with care."
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Delay between words: Medium, How each word appears: Fade up, Speed: Normal, Feel: Smooth, Pauses between sentences: off, Your text: "We build interfaces that disappear. Too…".
+- 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.
+- 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.
+- Your text: text box, starts with the lines "We build interfaces that disappear.", "Tools that feel inevitable." and "Software made with care.". The passage that is revealed, one sentence per line.
## Blur In
@@ -254,17 +218,13 @@ Comes into focus from a blur, like a camera. Best for featured cards and photos.
Add a blur-in entrance to [the element you want to animate]. It should come into view like a camera pulling focus onto the subject: sharpening from a blur makes it feel like a lens finding its subject, and fading in at the same time makes it feel like it is arriving. It can also drift up slightly as it settles. Use it on one focal element at a time, not on a list or grid, because blur is expensive for the browser to draw. Remove the blur completely once the animation ends. If the visitor has reduced motion turned on, show the element sharp and visible without the effect. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- How blurry it starts: Slight · **Medium** · Heavy
-- Speed: Slow · **Normal** · Fast
-- What changes: **Blur and fade** · Blur only · Fade only
-- Feel: **Smooth** · Gentle · Even
-- Drifts up: **on** · off
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: How blurry it starts: Medium, Speed: Normal, What changes: Blur and fade, Feel: Smooth, Drifts up: on.
+- How blurry it starts: Slight · **Medium** · Heavy. How much blur it starts with: slight is 8px, medium 20px and heavy 35px; past about 30px it looks like frosted glass.
+- Speed: Slow · **Normal** · Fast. How long it takes: slow is 1100ms, normal 700ms and fast 400ms; blur needs a little longer than a plain fade for the lens feel to land.
+- What changes: **Blur and fade** · Blur only · Fade only. The full effect; Blur only and Fade only show each half on its own.
+- Feel: **Smooth** · Gentle · Even. Smooth slows down like a lens settling; Gentle eases in and out; Even feels robotic.
+- Drifts up: **on** · off. A small rise while it sharpens, as if it is settling into place; only with Blur and fade.
## Flip In
@@ -279,19 +239,15 @@ Swings into view in 3D, like a card turning over. Best for cards and tiles.
Add a 3D flip-in entrance to [the card you want to animate]. The card should start turned away from the viewer and swing toward them until it faces them flat. Give the card's container a 3D perspective so the swing has real depth; without it, the flip looks like a flat squash. The hinge can sit in the middle or along one edge, and the card can fade in while it turns. If the visitor has reduced motion turned on, show the card facing forward without the flip. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Swing direction: **Sideways** · Up and down · Diagonal
-- Hinge: **Center** · Top · Bottom · Left
-- Speed: Slow · **Normal** · Fast
-- How far it turns: A little · **¼ turn** · ½ turn
-- 3D depth: Subtle · **Medium** · Strong
-- Feel: **Smooth** · Springy · Gentle · Even
-- Fades in: **on** · off
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Swing direction: Sideways, Hinge: Center, Speed: Normal, How far it turns: ¼ turn, 3D depth: Medium, Feel: Smooth, Fades in: on.
+- Swing direction: **Sideways** · Up and down · Diagonal. Which way it swings: sideways around an upright hinge like a door, up and down like a flap, or diagonally.
+- Hinge: **Center** · Top · Bottom · Left. Where it turns from; an edge makes it swing from that side.
+- Speed: Slow · **Normal** · Fast. How long the swing takes: slow is 1000ms, normal 600ms and fast 350ms.
+- How far it turns: A little · **¼ turn** · ½ turn. The angle it starts from: a little (45°), a quarter turn (90°, edge-on) or half a turn (180°, facing away).
+- 3D depth: Subtle · **Medium** · Strong. How close the viewer seems: subtle is 2000px, medium 1000px and strong 400px; closer is more dramatic.
+- Feel: **Smooth** · Springy · Gentle · Even. Smooth slows the swing as it comes to face you; Springy adds a settle; Gentle eases in and out; Even keeps one steady pace.
+- Fades in: **on** · off. Fades it in while it turns.
## Bounce In
@@ -306,16 +262,12 @@ Lands with a springy bounce. Best for badges and success messages.
Add a bounce-in entrance to [the element you want to animate]. When it appears, it should start small and a little below its final spot, grow slightly past full size, dip just under it, then settle, as if it landed with a small spring. Each bounce is smaller than the one before, like energy running out, and one bounce usually looks best. Unless the settings turn it off, fade it in at the same time. Animate only its position, size and opacity so it stays smooth. If the visitor has reduced motion turned on, show the element without the bounce. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Bounce strength: Soft · **Medium** · Strong
-- Number of bounces: **One** · Two · Three
-- Speed: Slow · **Normal** · Fast
-- Fades in: **on** · off
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Bounce strength: Medium, Number of bounces: One, Speed: Normal, Fades in: on.
+- 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.
+- 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.
## Rotate In
@@ -330,18 +282,14 @@ Spins into place while it grows. Best for icons, stars and badges.
Add a rotate-in entrance to [the icon or badge you want to animate]. It should spin around its center as it appears. Growing from small at the same time makes it look like it is arriving rather than just turning, and a slight overshoot at the end makes the spin land instead of gliding to a stop. Use this on round or symmetric shapes like icons, stars, gears and badges; it looks wrong on text or wide rectangles. If the visitor has reduced motion turned on, show it in place without spinning. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- How much it spins: ¼ turn · **½ turn** · Full turn
-- Speed: Slow · **Normal** · Fast
-- Spin direction: **Clockwise** · Counter-clockwise
-- Bounce at the end: **on** · off
-- Grows from small: **on** · off
-- Fades in: **on** · off
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: How much it spins: ½ turn, Speed: Normal, Spin direction: Clockwise, Bounce at the end: on, Grows from small: on, Fades in: on.
+- How much it spins: ¼ turn · **½ turn** · Full turn. How far it turns on the way in: a quarter turn, half a turn or a full turn.
+- Speed: Slow · **Normal** · Fast. How long the spin takes: slow is 1000ms, normal 600ms and fast 350ms.
+- Spin direction: **Clockwise** · Counter-clockwise. Which way it turns as it lands.
+- Bounce at the end: **on** · off. Goes slightly past its resting angle and settles back, so the spin lands instead of gliding to a stop.
+- Grows from small: **on** · off. Starts tiny and grows while it spins, which turns a spin into an arrival.
+- Fades in: **on** · off. Fades in as it spins instead of appearing at once.
## Shatter Effect
@@ -356,15 +304,11 @@ Breaks into pieces that fly apart and fade. Best for galleries and bold exits.
Add a shatter effect to [the card or picture you want to break]. When it plays, the card breaks into uneven pieces that burst away from the point of impact, each turning as it flies and fading out, while the next card fades in behind them. Make each piece a copy of the whole card trimmed to its own shape, so together they look exactly like the card until they move, and launch the pieces nearest the impact first. Move and turn the pieces rather than resizing them so it stays smooth, and remove them once they have faded. If the visitor has reduced motion turned on, fade the card out and the next one in, with no pieces. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Number of pieces: Few · **Medium** · Many
-- Breaks from: **Center** · Corner
-- Gravity: None · **Normal** · Heavy
-- Speed: Slow · **Normal** · Fast
-- Shows the cracks: **on** · off
-- Tumbles in 3D: **on** · off
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Number of pieces: Medium, Breaks from: Center, Gravity: Normal, Speed: Normal, Shows the cracks: on, Tumbles in 3D: on.
+- 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.
+- 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 23cbcc26..76078413 100644
--- a/skills/animation-handbook/references/03-page-transitions.md
+++ b/skills/animation-handbook/references/03-page-transitions.md
@@ -1,6 +1,6 @@
# 03 · Page Transitions
-Full-page transitions between routes or views — crossfades, slides, portals, morphs, and the View Transitions API. 16 animations from Animation Handbook, in the home page's order. Each entry gives the live demo, how it runs, what it is good for and what to avoid it on, the prompt from its page word for word, and its settings.
+Full-page transitions between routes or views — crossfades, slides, portals, morphs, and the View Transitions API. 16 animations from Animation Handbook, in the home page's order. Each entry gives the live demo, how it runs, what it is good for and what to avoid it on, the prompt from its page word for word, and its settings with what each does and the demo's values.
## Contents
@@ -34,15 +34,11 @@ The browser animates the change between two pages for you. Best for web apps.
Add page transitions to [your site's pages or views] with the browser's View Transitions API. Wrap each page change in a view transition: the browser takes a picture of the page before and after the change and animates between the two pictures. Name the content area so that only it animates, and turn off the default animation of the whole page. Style how the old and new pictures move with CSS, for example a fade, a slide or a zoom. Check that the browser supports the API, and simply swap the content when it does not. If the visitor has reduced motion turned on, swap the content with no animation. Match the settings listed below.
-**Settings** (the defaults in bold):
+**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
-- Speed: Slow · **Normal** · Fast
-- Feel: Smooth · **Gentle** · Even
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Transition style: Fade, Speed: Normal, Feel: Gentle.
+- 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.
+- 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.
## Shared Element Transition
@@ -57,14 +53,10 @@ A picture grows from the list into the next page's header. Best for galleries.
Add a shared element transition to [your list of items and their detail pages]. When a visitor opens an item, its picture should grow from its place in the list into the large header of the detail page, while the list fades away and the detail text fades in just after the picture lands. Measure where the picture starts and where it ends, then move a copy from one to the other with a transform only, never by changing its position or size, so it reads as one continuous element. Going back fades the detail page out and the list back in. If the visitor has reduced motion turned on, open and close the detail page without the movement. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Speed: Slow · **Normal** · Fast
-- Feel: **Smooth** · Springy
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Speed: Normal, Feel: Smooth.
+- Speed: Slow · **Normal** · Fast. How long the picture takes to travel and grow: slow is 800ms, normal 500ms and fast 300ms; 300 to 600ms feels responsive without dragging.
+- Feel: **Smooth** · Springy. Smooth slows to a stop; Springy grows a little past the header's size, then settles.
## Morph Transition
@@ -79,14 +71,10 @@ The logo changes shape to match each page you visit. Best for brand marks.
Add a morphing logo to [your logo or icon, and the pages it belongs to]. Give each page its own shape for the logo, and when the visitor changes page, let the outline flow from the old shape into the new one while the page content fades across. Draw every shape with the same number of points in the same order, so each point has a partner to move to and the outline never tears or twists. Move the points yourself on every frame, because CSS cannot blend two different shapes. If the visitor has reduced motion turned on, switch to the new shape at once. Match the settings listed below.
-**Settings** (the defaults in bold):
+**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
-- Feel: Smooth · Springy · **Gentle** · Even
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Speed: Normal, Feel: Gentle.
+- Speed: Slow · **Normal** · Fast. How long the change of shape takes: slow is 1100ms, normal 700ms and fast 400ms; slower reads as more deliberate.
+- Feel: Smooth · Springy · **Gentle** · Even. Gentle eases in and out; Smooth slows to a stop; Springy stretches a little past the new shape and settles back; Even keeps one steady pace.
## Crossfade Transition
@@ -101,15 +89,11 @@ The old page fades out as the new one fades in. Best for calm page changes.
Add a crossfade between [the pages or views you want to switch between]. Stack the old and the new page in exactly the same place, then fade the old one out and the new one in. When the two fades run together, both pages are half visible for a moment and blend; one after the other, a short blank moment falls between them. Nothing moves; only how see-through each page is changes. It is the calmest page change and suits content that has no order. If the visitor has reduced motion turned on, switch pages instantly. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Fade order: **Together** · One after the other
-- Speed: Slow · **Normal** · Fast
-- Feel: Smooth · **Gentle** · Even
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Fade order: Together, Speed: Normal, Feel: Gentle.
+- Fade order: **Together** · One after the other. Together overlaps the two fades so the pages blend; One after the other fades the old page out first, leaving a blank moment.
+- Speed: Slow · **Normal** · Fast. How long the whole change takes: slow is 800ms, normal 500ms and fast 300ms; one after the other gives each fade half of it.
+- Feel: Smooth · **Gentle** · Even. Gentle eases in and out; Smooth slows to a stop; Even keeps one steady pace, which reads most evenly for a pure fade.
## Slide Transition
@@ -124,16 +108,12 @@ Pages slide across, and going back slides the other way. Best for step flows.
Add slide transitions to [the pages or steps you want to move between]. When the visitor changes page, move the old page out of one side while the new page comes in from the other, like panels on a track. When the direction follows the navigation, going forward slides to the left and going back slides to the right, as phone apps do. Move the pages with transforms only, never by changing their position or size, and keep pages that are off screen from catching taps. If the visitor has reduced motion turned on, switch pages without sliding. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Direction: **Forward and back** · Left to right · Right to left · Top to bottom
-- Speed: Slow · **Normal** · Fast
-- Feel: **Smooth** · Springy · Even
-- Gap between pages: **None** · Small · Large
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Direction: Forward and back, Speed: Normal, Feel: Smooth, Gap between pages: None.
+- Direction: **Forward and back** · Left to right · Right to left · Top to bottom. Forward and back slides left for the next page and right for the previous one; the other choices always slide the same way.
+- Speed: Slow · **Normal** · Fast. How long each slide takes: slow is 800ms, normal 500ms and fast 300ms; 300 to 500ms matches phone apps, longer drags.
+- Feel: **Smooth** · Springy · Even. Smooth slows to a stop; Springy goes a little past and settles back; Even keeps one steady pace.
+- Gap between pages: **None** · Small · Large. How much later the new page starts: none, small (80ms) or large (160ms); a delay leaves a gap between the pages.
## Zoom Transition
@@ -148,15 +128,11 @@ The pages zoom as they swap, as if moving in depth. Best for opening details.
Add a zoom transition to [the pages or views you want to move between]. When the page changes, scale the old and the new page while one fades out and the other fades in, so the change seems to move through depth rather than across the screen. Zooming in, where the new page grows into place, feels like going deeper; zooming out feels like stepping back; a pull-through, where the new page rushes in from larger, feels like traveling forward. Scale with transforms only, and keep the fade so no hard edge shows. If the visitor has reduced motion turned on, swap pages without scaling. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Zoom style: **Zoom in** · Zoom out · Pull through
-- Speed: Slow · **Normal** · Fast
-- Feel: **Smooth** · Springy · Gentle
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Zoom style: Zoom in, Speed: Normal, Feel: Smooth.
+- 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%.
+- 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.
## Flash / Light Leak Transition
@@ -171,16 +147,12 @@ A burst of light hides the moment the page changes. Best for bold, lively sites.
Add a flash transition to [the pages or scenes you want to switch between]. Cover the content with a full-size colored layer that rises to its peak, swap the page while it is covered, then fade the layer away to reveal the new page, like a burst of light hiding a cut in a film. At full strength the change is completely hidden. Let the fade-out take a little longer than the rise. Keep flashes rare, never several in one second, to protect people who are sensitive to flashing light. If the visitor has reduced motion turned on, switch pages with no flash. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Flash color: **White** · Gold · Cyan · Red
-- Speed: Slow · **Normal** · Fast
-- Flash strength: **Full** · Strong · Soft
-- Blurs the flash: on · **off**
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Flash color: White, Speed: Normal, Flash strength: Full, Blurs the flash: off.
+- Flash color: **White** · Gold · Cyan · Red. White reads as a camera flash; gold, cyan and red read as a colored light leak.
+- Speed: Slow · **Normal** · Fast. How fast the flash rises and fades: slow is 320ms up and 510ms down, normal 200ms and 320ms, fast 120ms and 190ms; the fade is always a little longer than the rise.
+- Flash strength: **Full** · Strong · Soft. How solid the flash gets: full hides the page change completely; strong (75%) and soft (50%) let it show through.
+- Blurs the flash: on · **off**. Softens the flash's edges into a glow.
## Blur Transition
@@ -195,17 +167,13 @@ The old page blurs away and the new one comes into focus. Best for photo sites.
Add a blur transition to [the pages or views you want to switch between]. When the page changes, blur the old page until it is out of focus, bring in the new page just as blurred, then sharpen it into focus, like a camera pulling focus from one subject to another. Fading while blurring hides the moment of the swap. Blur is costly for the browser to draw, so use it only on changes the visitor starts, never on anything that repeats by itself, and remove the blur completely when it ends. If the visitor has reduced motion turned on, switch pages without blurring. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- How blurry it gets: Slight · **Medium** · Heavy
-- Speed: Slow · **Normal** · Fast
-- Fades as it blurs: **on** · off
-- Overlaps the two halves: on · **off**
-- Feel: Smooth · **Gentle** · Even
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: How blurry it gets: Medium, Speed: Normal, Fades as it blurs: on, Overlaps the two halves: off, Feel: Gentle.
+- How blurry it gets: Slight · **Medium** · Heavy. How much the pages blur at the midpoint: slight is 8px, medium 20px and heavy 35px; above about 30px it is heavy for the browser and can look muddy.
+- Speed: Slow · **Normal** · Fast. How long each half takes, blurring out and then sharpening in: slow is 650ms, normal 400ms and fast 250ms.
+- Fades as it blurs: **on** · off. Fades each page as it blurs, which hides the swap; off, the pages stay solid and only blur.
+- Overlaps the two halves: on · **off**. Starts sharpening the new page halfway through the blur, so the change takes a quarter less time.
+- Feel: Smooth · **Gentle** · Even. Gentle feels like a controlled focus pull; Smooth snaps into focus sooner; Even keeps one steady pace.
## Elastic Transition
@@ -220,15 +188,11 @@ The new page slides in, goes too far and springs back. Best for playful apps.
Add an elastic transition to [the pages or panels you want to move between]. The new page should slide in from the side, go a little past its place and spring back before settling, as if pulled by a rubber band, while the old page slides away. The bounce can be planned ahead as a fixed path, which is cheap, or worked out live with a simple spring, which can react if the visitor interrupts it; with a live spring, advance it in small fixed time steps so it moves the same on every screen, and limit the time one frame adds so a slow frame cannot throw it off. If the visitor has reduced motion turned on, switch pages without movement. Match the settings listed below.
-**Settings** (the defaults in bold):
+**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
-- Bounce size: Small · **Medium** · Large
-- Speed: Slow · **Normal** · Fast
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: How it bounces: Planned path, Bounce size: Medium, Speed: Normal.
+- 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.
## Portal / Tunnel Zoom
@@ -243,15 +207,11 @@ The next page opens out of a circle you click. Best for big reveals.
Add a portal transition to [the element that should open into the next page]. When the visitor clicks it, show the next page through an opening that starts as a point at the element's center and grows until the new page fills the view, as if diving through a window. Put the new page underneath first and only grow the visible opening, measuring the element's position at the moment of the click so the opening starts exactly there. Make the opening big enough at the end to reach the corners. If the visitor has reduced motion turned on, show the new page at once. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Portal shape: **Circle** · Square
-- Speed: Slow · **Normal** · Fast
-- Feel: **Speeds up** · Smooth · Gentle · Even
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Portal shape: Circle, Speed: Normal, Feel: Speeds up.
+- Portal shape: **Circle** · Square. A circle feels like a tunnel; a square opens like a window.
+- Speed: Slow · **Normal** · Fast. How long the opening takes to fill the view: slow is 1900ms, normal 1200ms and fast 700ms; too fast and it becomes a plain wipe.
+- Feel: **Speeds up** · Smooth · Gentle · Even. Speeds up feels like diving in; Smooth slows at the end, like pulling back; Gentle eases in and out; Even keeps one steady pace.
## Dissolve Transition
@@ -266,16 +226,12 @@ The page breaks into tiles that give way to the next. Best for photo galleries.
Add a dissolve transition to [the pages or images you want to switch between]. Lay a grid of tiles over the old page and fade each tile in at a slightly different moment, following a pattern such as random, a diagonal sweep or rings from the middle, so the old page breaks up instead of fading evenly. Swap the page while the tiles cover it, then remove the tiles, or fade them away in the same pattern to reveal the new page. Give each tile its own delay and let the browser run the fades. If the visitor has reduced motion turned on, use a short, plain fade instead. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Pattern: **Random** · Diagonal · From the middle
-- Tile size: Small · **Medium** · Large
-- Speed: Slow · **Normal** · Fast
-- Dissolves both ways: on · **off**
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Pattern: Random, Tile size: Medium, Speed: Normal, Dissolves both ways: off.
+- Pattern: **Random** · Diagonal · From the middle. The order the tiles appear in: random looks like grain, diagonal sweeps from one corner, and from the middle spreads out in rings.
+- Tile size: Small · **Medium** · Large. How big the tiles are: small is a 16 by 16 grid (10 by 10 on phones), medium 8 by 8 and large 4 by 4; small tiles come close to a smooth fade.
+- Speed: Slow · **Normal** · Fast. How long the tiles take: slow is 1300ms, normal 800ms and fast 500ms; the page swaps at 60% of it, under the tiles.
+- Dissolves both ways: on · **off**. Also fades the tiles away in the same pattern to reveal the new page, instead of removing them at once.
## FLIP Technique
@@ -290,14 +246,10 @@ Cards glide to their new places when the layout changes. Best for sorting lists.
Animate layout changes in [the grid or list you want to rearrange] with the FLIP technique. Before the change, record where every item is. Apply the new order or layout so the items jump to their new places. Then shift each item back to where it was with a transform, and animate that shift away so the items glide to their real places. Only transforms animate, so it stays smooth even with many items. Match items across the change by a stable id. If the visitor has reduced motion turned on, let the items jump to their new places without gliding. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Speed: Slow · **Normal** · Fast
-- Feel: **Smooth** · Springy · Even
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Speed: Normal, Feel: Smooth.
+- Speed: Slow · **Normal** · Fast. How long the cards take to glide: slow is 800ms, normal 500ms and fast 300ms; 300 to 600ms reads as deliberate.
+- Feel: **Smooth** · Springy · Even. Smooth slows to a stop; Springy goes a little past each place and settles; Even keeps one steady pace.
## Circle Reveal
@@ -312,15 +264,11 @@ Pages grow from any spot you click and shrink back into it. Best for app navigat
Add a circle reveal to [the links or buttons that change the page]. When the visitor clicks or taps, put the new page on top of the old one and show it only inside a circle that starts as a dot and grows until it covers everything. Make its final size reach the farthest corner from where it starts, so no corner is left uncovered. When it starts from the click, measure the spot at that moment; a press of the keyboard has no spot, so use the middle of the pressed button. Grow only the visible circle; neither page moves. If the visitor has reduced motion turned on, crossfade the pages instead. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Where it starts: **Where you click** · Center · Corner
-- Speed: Slow · **Normal** · Fast
-- Closes when you go back: **on** · off
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Where it starts: Where you click, Speed: Normal, Closes when you go back: on.
+- Where it starts: **Where you click** · Center · Corner. Where you click follows the pointer, or the middle of the button for a keyboard press; Center and Corner (the bottom right) always start in the same place.
+- Speed: Slow · **Normal** · Fast. How long the circle takes to cover the page: slow is 1200ms, normal 750ms and fast 450ms.
+- Closes when you go back: **on** · off. Going to an earlier page shrinks the old page into the spot instead of growing the earlier one out of it.
## Overlay Wipe
@@ -335,16 +283,12 @@ A colored panel sweeps over the page as it changes. Best for portfolio sites.
Add an overlay wipe to [the pages you want to switch between]. When the visitor changes page, sweep a solid colored panel across until it covers the whole page, swap the page while it is covered, then sweep the panel on out of the opposite side to reveal the new page. Move the panel only by sliding it, never by resizing it, and keep the covered moment short so the change still feels quick. Ease each sweep so the panel starts and stops softly. A second, lighter panel can lead the way in and trail the first on the way out. If the visitor has reduced motion turned on, use a quick fade instead. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Direction: **Left to right** · Right to left · Bottom to top · Top to bottom
-- Panel color: **Violet** · Coral · Teal · Gold
-- Two stacked panels: on · **off**
-- Speed: Slow · **Normal** · Fast
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Direction: Left to right, Panel color: Violet, Two stacked panels: off, Speed: Normal.
+- Direction: **Left to right** · Right to left · Bottom to top · Top to bottom. The side the panel comes in from; it always leaves on the opposite side.
+- Panel color: **Violet** · Coral · Teal · Gold. The color of the panel; the second panel is a lighter shade of it.
+- Two stacked panels: on · **off**. A lighter panel runs just ahead of the main one on the way in and just behind it on the way out.
+- Speed: Slow · **Normal** · Fast. How long each sweep takes: slow is 550ms, normal 400ms and fast 270ms; the page stays covered for a quarter of that.
## Page Curl
@@ -359,15 +303,11 @@ The page peels back from its corner like paper. Best for digital magazines.
Add a page curl to [the pages you want to turn, such as a magazine]. A forward turn lifts the bottom corner of the current page and turns it over to the left like paper, so the page underneath shows. A turn back runs the same movement in reverse and lays a page down over the current one. Draw the folded part as the back of the sheet, lying over the page along a straight fold that moves with the corner. Paper shading darkens the fold and casts a shadow on the page below. Work out the fold from the corner on every frame, timing the turn by elapsed time. If the visitor has reduced motion turned on, fade between the pages instead. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Turn speed: Slow · **Normal** · Fast
-- Which way it turns: **Forward and back** · Always forward · Always back
-- Paper shading: Off · **Soft** · Strong
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Turn speed: Normal, Which way it turns: Forward and back, Paper shading: Soft.
+- 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.
## Cube Transition
@@ -382,12 +322,8 @@ The pages sit on a cube that turns to show the next. Best for photo stories.
Add a cube transition to [the pages or slides you want to switch between]. Treat the current page and the next one as two sides of a cube: when the visitor changes page, turn the cube a quarter turn around its middle, which sits half a page behind the screen, so the old page swings away and the new one swings into place. Going back turns the cube the other way. Give the scene perspective, hide any side that faces away from the viewer and darken each side a little as it turns away. Animate only the turn itself so it stays smooth. If the visitor has reduced motion turned on, crossfade the pages instead. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Turn direction: **Sideways** · Up and down
-- Speed: Slow · **Normal** · Fast
-- Depth: Shallow · **Normal** · Deep
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Turn direction: Sideways, Speed: Normal, Depth: Normal.
+- Turn direction: **Sideways** · Up and down. Sideways turns around a vertical line, a later page coming in from the right; up and down turns around a horizontal line, a later page coming in from below.
+- Speed: Slow · **Normal** · Fast. How long the cube takes to turn: slow is 1100ms, normal 750ms and fast 500ms.
+- Depth: Shallow · **Normal** · Deep. How close the viewer is to the cube: shallow puts them 3.2 sides away, normal 1.6 and deep 0.9, so the near edge looms larger.
diff --git a/skills/animation-handbook/references/04-micro-interactions.md b/skills/animation-handbook/references/04-micro-interactions.md
index ef0f85c1..ffd5f793 100644
--- a/skills/animation-handbook/references/04-micro-interactions.md
+++ b/skills/animation-handbook/references/04-micro-interactions.md
@@ -1,6 +1,6 @@
# 04 · Micro-Interactions
-Short, user-triggered animations — hover, click, focus, loading states, and UI feedback patterns. 41 animations from Animation Handbook, in the home page's order. Each entry gives the live demo, how it runs, what it is good for and what to avoid it on, the prompt from its page word for word, and its settings.
+Short, user-triggered animations — hover, click, focus, loading states, and UI feedback patterns. 41 animations from Animation Handbook, in the home page's order. Each entry gives the live demo, how it runs, what it is good for and what to avoid it on, the prompt from its page word for word, and its settings with what each does and the demo's values.
## Contents
@@ -59,14 +59,10 @@ Six ways a card can react when you point at it. Best for buttons and cards.
Add hover feedback to [the buttons, links or cards you want to react]. When the pointer moves over an item, change it in one clear way: shift its background color, grow it slightly, lift it with a deeper shadow, draw an underline out from the left, nudge its arrow forward, or sweep a tint across it. Use one style per kind of item and keep it the same across the page. Apply hover styles only on devices that can hover, and show the same change while an item is pressed on touch screens. If the visitor has reduced motion turned on, switch the look without animating it. Match the settings listed below.
-**Settings** (the defaults in bold):
+**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
-- Feel: **Smooth** · Springy · Gentle · Even
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Speed: Normal, Feel: Smooth.
+- Speed: Slow · **Normal** · Fast. How long each change takes: slow is 300ms, normal 180ms and fast 110ms; keep hover changes at 200ms or less so moving across several items never feels sticky.
+- Feel: **Smooth** · Springy · Gentle · Even. Smooth slows into place; Springy goes a little too far, then settles; Gentle eases in and out; Even keeps one steady pace.
## Click / Tap Ripple
@@ -81,17 +77,13 @@ A ripple spreads out from the spot you press. Best for buttons and list items.
Add a ripple to [the buttons or list items you want to respond to presses]. When the visitor presses one, a soft circle appears where they pressed, or in the middle when the settings say so, then grows outward and fades away. Clip it to the button's shape so it never spills outside, start it as soon as the press begins so the feedback feels instant, and remove each ripple once it has faded so quick taps do not pile up. It should work the same for mouse, touch and pen. If the visitor has reduced motion turned on, fade a flat highlight over the button instead of a growing circle. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Starts from: **Where you press** · The middle
-- Speed: Slow · **Normal** · Fast
-- Ripple size: Small · **Medium** · Large
-- Ripple strength: Faint · **Medium** · Strong
-- Ripple color: **White** · Orange · Black
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Starts from: Where you press, Speed: Normal, Ripple size: Medium, Ripple strength: Medium, Ripple color: White.
+- 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 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.
## Focus Ring Animation
@@ -106,16 +98,12 @@ A ring closes in around the item the Tab key reaches. Best for forms and menus.
Add an animated focus ring to [the links, buttons and form fields on your page]. When keyboard focus moves to an item, draw an outline around it that starts a little further out and faint, then closes in to its place, so each Tab press is easy to follow. Show the ring only for keyboard focus, not after mouse clicks, and never remove the browser's focus outline without drawing this one instead. Make sure the ring stands out against every background it sits on. If the visitor has reduced motion turned on, show the ring at once without closing in. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Ring style: **Solid** · Dashed · Glow · Wide
-- Speed: Slow · **Normal** · Fast
-- Ring thickness: Thin · **Medium** · Thick
-- Ring gap: None · **Small** · Large
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Ring style: Solid, Speed: Normal, Ring thickness: Medium, Ring gap: Small.
+- 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 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.
## Button Press Scale
@@ -130,16 +118,12 @@ Shrinks as you press it and springs back as you let go. Best for main buttons.
Add press feedback to [the buttons you want to feel tactile]. While a button is held down it shrinks, as if pushed in, and when it is let go it returns to full size. A press that is quicker than the release feels most like a real button. Respond to mouse, touch and pen presses and to Space and Enter on the keyboard, and let go cleanly if a press turns into a scroll, so no button stays stuck down. Change only the button's size so nothing around it moves. If the visitor has reduced motion turned on, change the size at once, without animating it. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Press depth: Light · **Medium** · Deep
-- Release speed: Slow · **Normal** · Fast
-- Release feel: **Springy** · Smooth · Even
-- Press speed: Slow · **Normal** · Fast
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Press depth: Medium, Release speed: Normal, Release feel: Springy, Press speed: Normal.
+- Press depth: Light · **Medium** · Deep. How small the button gets while held down: light is 97%, medium 95% and deep 90% of its size; smaller than 90% looks broken.
+- Release speed: Slow · **Normal** · Fast. How long it takes to spring back: slow is 300ms, normal 180ms and fast 110ms; about twice the press time feels natural.
+- Release feel: **Springy** · Smooth · Even. Springy goes a little past full size, then settles; Smooth slows into place; Even keeps one steady pace.
+- Press speed: Slow · **Normal** · Fast. How long the shrink takes: slow is 130ms, normal 80ms and fast 50ms; a press should feel instant.
## Magnetic Button
@@ -154,14 +138,10 @@ Leans toward the pointer, then springs home. Best for one main button.
Add a magnetic effect to [the one button you want to stand out]. When the pointer comes within reach, pull the button part of the way toward it, more strongly the closer it gets, and move its label a little further so the label seems to float above the button. When the pointer leaves, let the button spring back to its place. Move it only with transforms so the layout never shifts, and use it on one or two buttons at most. On touch screens, pull the button toward the finger while it touches and send it home when it lifts. If the visitor has reduced motion turned on, move it quickly and evenly instead of letting it glide. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Pull strength: Gentle · **Medium** · Strong
-- Reach: Short · **Medium** · Long
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Pull strength: Medium, Reach: Medium.
+- 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.
+- 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
@@ -176,16 +156,12 @@ The knob slides across as the switch turns on or off. Best for settings.
Add an animated toggle switch to [the on/off setting you want to control]. Build it on a real checkbox so it works with the keyboard and screen readers. When it is turned on, the round knob slides across the track and the track fills with color; when it is turned off, both go back. When the settings ask for it, let the knob go slightly past the end and settle, so it feels springy. Make the whole switch and its label easy to tap. If the visitor has reduced motion turned on, move the knob without sliding. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Speed: Slow · **Normal** · Fast
-- Feel: Smooth · **Gentle** · Even
-- Springy knob: **on** · off
-- On color: Pink · **Blue** · Purple · Green · Orange
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Speed: Normal, Feel: Gentle, Springy knob: on, On color: Blue.
+- Speed: Slow · **Normal** · Fast. How long the knob takes to slide: slow is 320ms, normal 200ms and fast 120ms; under 120ms feels mechanical, over 350ms sluggish.
+- Feel: Smooth · **Gentle** · Even. Gentle eases in and out, which gives the knob weight; Smooth starts fast and slows to a stop; Even slides at one steady speed.
+- Springy knob: **on** · off. The third switch's knob goes a little past the end, then settles.
+- On color: Pink · **Blue** · Purple · Green · Orange. The track color when a switch is on; it must stand out from the white knob. The Appearance switch keeps its own orange.
## Heart / Like Burst
@@ -200,14 +176,10 @@ The heart pops and fills as small hearts burst out. Best for like buttons.
Add a like button with a burst to [the heart or favorite button you want to reward]. When the visitor likes something, the heart quickly squashes, overshoots a little and settles as it fills with color, while a spray of tiny hearts and dots flies out from its center, arcs down and fades. Unliking simply removes the color, with no burst. Draw the burst on one layer over the button and stop drawing once the last piece has faded. Tell screen readers whether it is liked. If the visitor has reduced motion turned on, only fill the heart, with no pop or burst. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Number of hearts: Few · **Some** · Many
-- How far they fly: Short · **Medium** · Far
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Number of hearts: Some, How far they fly: Medium.
+- 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.
## Success Confetti
@@ -222,15 +194,11 @@ Confetti bursts from the button when a task is done. Best for big moments.
Add a confetti burst to [the action that completes something important, such as placing an order]. When it succeeds, turn the button into a clear success state with a check mark and a short confirmation, and fire small colored rectangles from the button: they shoot upward in a fan, spin, slow down, fall and fade. Save it for real milestones, not everyday clicks. Draw the pieces on one layer and stop drawing once the last one has faded or fallen out of view. If the visitor has reduced motion turned on, show the success state without the confetti. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Amount of confetti: Some · **Medium** · Lots
-- Spread: Narrow · **Medium** · Wide
-- Fall speed: Floaty · **Normal** · Heavy
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Amount of confetti: Medium, Spread: Medium, Fall speed: Normal.
+- 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.
## Skeleton Loader
@@ -245,15 +213,11 @@ Gray shapes hold the place of content while it loads. Best for feeds and cards.
Add a skeleton loading state to [the card, list or panel whose content loads]. While it loads, show gray blocks in the shapes and sizes of the content that is coming, such as a round avatar, lines of text and an image, and let them pulse between dimmer and brighter. When the content is ready, swap the blocks for it and fade it in. Match the shapes closely, because a skeleton that does not fit the content makes the page jump when it arrives. If the visitor has reduced motion turned on, keep the blocks still. Match the settings listed below.
-**Settings** (the defaults in bold):
+**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
-- Pulse strength: Soft · **Medium** · Strong
-- Loading time: Short · **Medium** · Long
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Pulse speed: Normal, Pulse strength: Medium, Loading time: Medium.
+- 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.
+- 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
@@ -268,16 +232,12 @@ A band of light sweeps over gray placeholders. Best for loading screens.
Add a shimmer to [the skeleton placeholders on your loading screen]. Lay a band of light over each placeholder and sweep it across in one direction, again and again, so the gray shapes look like content streaming in. Every placeholder on the page should shimmer in the same direction, and each one must clip the band to its own edges so it never spills out. Keep the band see-through so it works on any placeholder color. If the visitor has reduced motion turned on, keep the placeholders still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Speed: Slow · **Normal** · Fast
-- Brightness: Soft · **Medium** · Bright
-- Highlight angle: **Upright** · Slanted · Diagonal
-- Highlight color: **White** · Blue · Gold
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Speed: Normal, Brightness: Medium, Highlight angle: Upright, Highlight color: White.
+- 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.
+- Highlight color: **White** · Blue · Gold. White works on any placeholder; blue or gold suit branded screens.
## Loading Spinner
@@ -292,15 +252,11 @@ Six small shapes loop to show that something is loading. Best for short waits.
Add a loading spinner to [the place where people wait for something to load]. Use a small shape that keeps moving in a steady loop, such as a ring with one colored part turning around, dots circling or dots bouncing in turn, to show that work is going on when you cannot say how long it will take. Show it only for waits longer than about half a second, and tell screen readers that something is loading. If you know how far along the task is, use a progress bar instead. If the visitor has reduced motion turned on, fade it gently instead of spinning. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Speed: Slow · **Normal** · Fast
-- Size: Small · **Medium** · Large
-- Color: Pink · White · **Blue** · Purple · Green · Orange
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Speed: Normal, Size: Medium, Color: Blue.
+- Speed: Slow · **Normal** · Fast. How long one turn takes: slow is 1.3s, normal 0.8s and fast 0.5s; 0.6 to 1 second reads as calm, faster as anxious.
+- Size: Small · **Medium** · Large. Small is 28px, medium 40px and large 52px; small fits inside a button, large fills an empty area.
+- Color: Pink · White · **Blue** · Purple · Green · Orange. The spinner's color; pick one that stands out from the page.
## Progress Animation
@@ -315,17 +271,13 @@ A bar, a ring and steps fill up to show progress. Best for uploads.
Add a progress indicator to [the upload, download or task whose progress you know]. Show how much is done with a bar that fills from left to right, a ring whose outline fills around the circle, or a row of steps that light up in turn, all driven by the same percentage and shown with the number. Fill it smoothly as progress arrives, and only show real progress: never race to near the end and stall. When the settings ask for it, slide a short piece along the bar for waits of unknown length. If the visitor has reduced motion turned on, jump straight to the current value. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Fills to: 50% · 75% · **100%**
-- Speed: Slow · **Normal** · Fast
-- Feel: **Smooth** · Gentle · Even
-- Sliding bar: on · **off**
-- Fill color: Pink · White · **Blue** · Purple · Green · Orange
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Fills to: 100%, Speed: Normal, Feel: Smooth, Sliding bar: off, Fill color: Blue.
+- Fills to: 50% · 75% · **100%**. How far one play fills: 50%, 75% or 100%.
+- Speed: Slow · **Normal** · Fast. How long the fill takes: slow is 3.2s, normal 2s and fast 1.2s; in a real app it follows the actual progress.
+- Feel: **Smooth** · Gentle · Even. Smooth starts fast and slows near the end, which feels natural; Gentle eases in and out; Even fills at one steady pace.
+- Sliding bar: on · **off**. For waits of unknown length: a short piece slides along the bar instead of filling it.
+- Fill color: Pink · White · **Blue** · Purple · Green · Orange. The color of the bar, the ring and the steps.
## Checkmark Draw
@@ -340,17 +292,13 @@ A tick draws itself in a circle once a task succeeds. Best for forms.
Add a success check mark that draws itself to [the form or action that just finished]. After the visitor submits, show a short loading state in the button, then draw a circle and a tick inside it as if by hand: the circle first, then the tick, starting just before the circle closes. For a failure, draw a red X the same way and give it a short shake. Let the button turn green or red to match. If the visitor has reduced motion turned on, show the finished check or X at once. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Result: **Success** · Error
-- Speed: Slow · **Normal** · Fast
-- Line thickness: Thin · **Medium** · Thick
-- Feel: **Smooth** · Gentle · Even
-- Tick color: Pink · White · Blue · Purple · **Green** · Orange
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Result: Success, Speed: Normal, Line thickness: Medium, Feel: Smooth, Tick color: Green.
+- 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.
+- 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.
## Form Field Morph
@@ -365,16 +313,12 @@ The label moves up out of the way as you type. Best for sign-up forms.
Add floating labels to [the form fields you want to label]. Each label sits inside its field like a placeholder; when the field is focused or has text in it, the label moves up and shrinks so it stays visible above the text, and the field's line or border takes on the focus color. When an empty field loses focus, the label moves back down. Keep a real label element for each field so screen readers announce it, and shrink the label from its left edge so it does not drift sideways. If the visitor has reduced motion turned on, move the label without animating it. Match the settings listed below.
-**Settings** (the defaults in bold):
+**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 far it rises: Low · **Medium** · High
-- Size when raised: Small · **Medium** · Large
-- Focus color: Pink · White · **Blue** · Purple · Green · Orange
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Speed: Normal, How far it rises: Medium, Size when raised: Medium, Focus color: Blue.
+- Speed: Slow · **Normal** · Fast. How long the label takes to move: slow is 320ms, normal 200ms and fast 120ms; slower feels heavy on a form with many fields.
+- How far it rises: Low · **Medium** · High. How far the label moves up on the underlined fields: low is 16px, medium 22px and high 28px; it must clear the typed text.
+- Size when raised: Small · **Medium** · Large. How big the raised label is on the underlined fields: small is 70%, medium 80% and large 90% of its size.
+- Focus color: Pink · White · **Blue** · Purple · Green · Orange. The color of the raised label and the active line or border.
## Notification Badge Pulse
@@ -389,17 +333,13 @@ A badge on an icon pulses to catch the eye. Best for unread messages.
Add a pulsing notification badge to [the icon that has something new, such as a bell or an inbox]. Place a small colored dot or number on the icon's corner and let it pulse, growing and settling back or sending a soft ring outward, so it catches the eye without demanding attention. Give the badge a thin border in the background color so it seems to float above the icon. Remove the badge once the visitor has opened what it points to, and when the settings ask for it, stop the pulse after three beats. If the visitor has reduced motion turned on, keep the badge still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Pulse style: **Grow** · Ring · Both
-- Speed: Slow · **Normal** · Fast
-- How much it grows: Slightly · **Medium** · A lot
-- Stops after three pulses: on · **off**
-- Badge color: **Red** · Pink · Blue · Purple · Orange
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Pulse style: Grow, Speed: Normal, How much it grows: Medium, Stops after three pulses: off, Badge color: Red.
+- Pulse style: **Grow** · Ring · Both. Grow scales the badge up and back; Ring sends a soft halo outward; 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.
+- Badge color: **Red** · Pink · Blue · Purple · Orange. The badge's color; red reads as new and urgent.
## Tooltip Reveal
@@ -414,16 +354,12 @@ A small label fades in after a short pause. Best for icon buttons.
Add tooltips to [the icon buttons, shortened text or fields that need a short explanation]. When the pointer rests on an item, or keyboard focus reaches it, wait a moment, then fade the tooltip in beside it while it grows very slightly from the side facing the item, so it feels light rather than like a pop-up. The wait keeps tooltips from flashing while the pointer only passes by. When the pointer leaves, hide it again, after a pause if the settings include one, and let the Escape key close it at once. On touch screens, show and hide it with a tap. If the visitor has reduced motion turned on, fade it without growing. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Delay before showing: None · Short · **Medium** · Long
-- Speed: Slow · **Normal** · Fast
-- Delay before hiding: None · **Short** · Long
-- Shows an arrow: on · **off**
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Delay before showing: Medium, Speed: Normal, Delay before hiding: Short, Shows an arrow: off.
+- 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.
+- 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.
## Drawer / Panel Slide
@@ -438,16 +374,12 @@ A side panel slides in over a dimmed page. Best for mobile menus.
Add a slide-in drawer to [the menu or panel you want to open]. It waits just beyond one edge of the screen and slides in over the page when its button is pressed; when the settings include it, the page behind it dims. Let it slow down as it arrives, like a panel sliding to a stop, and speed up as it leaves, so closing feels quicker than opening. Close it with a close button, a tap on the page beside it, the Escape key or a swipe back toward its edge. Move only its position, and keep keyboard focus inside it while it is open. If the visitor has reduced motion turned on, show and hide it without sliding. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Slides in from: **Left** · Right · Top · Bottom
-- Opening speed: Slow · **Normal** · Fast
-- Closing speed: Slow · **Normal** · Fast
-- Page dimming: None · Light · **Medium** · Dark
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Slides in from: Left, Opening speed: Normal, Closing speed: Normal, Page dimming: Medium.
+- Slides in from: **Left** · Right · Top · Bottom. The edge the drawer comes from: left or right for menus and filters, top or bottom for sheets.
+- Opening speed: Slow · **Normal** · Fast. How long the slide in takes: slow is 450ms, normal 280ms and fast 170ms; it slows as it arrives.
+- Closing speed: Slow · **Normal** · Fast. How long the slide out takes: slow is 350ms, normal 220ms and fast 130ms; it speeds up as it leaves, and a little shorter than opening feels right.
+- Page dimming: None · Light · **Medium** · Dark. How dark the page behind gets: none, light (25% black), medium (50%) or dark (70%); darker than about 70% feels like a dialog rather than a drawer.
## Modal Expand
@@ -462,16 +394,12 @@ A window grows out of the button you pressed. Best for detail views.
Add a modal that grows out of its button to [the button or card that opens a dialog or detail view]. When it is pressed, measure where that button sits and grow the modal from that spot to full size in the middle of the screen while the page behind it dims, so it clearly comes from what was pressed. Close it with its buttons, a tap on the dimmed page or the Escape key, and let it shrink back toward the same spot. Animate only its scale and opacity. Move keyboard focus into it, and back to the button when it closes. If the visitor has reduced motion turned on, show it at full size without growing. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Speed: Slow · **Normal** · Fast
-- Starting size: Tiny · **Small** · Medium
-- Feel: **Springy** · Smooth · Even
-- Marks where it grows from: **on** · off
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Speed: Normal, Starting size: Small, Feel: Springy, Marks where it grows from: on.
+- Speed: Slow · **Normal** · Fast. How long the window takes to grow: slow is 500ms, normal 320ms and fast 200ms.
+- Starting size: Tiny · **Small** · Medium. How big the window is as it leaves the button: tiny is 5%, small 10% and medium 30% of its full size; too big and the growth is hard to see.
+- Feel: **Springy** · Smooth · Even. Springy goes a little past full size, then settles; Smooth slows to a stop; Even keeps one steady speed.
+- Marks where it grows from: **on** · off. Shows a small dot on the point the window grows out of.
## Accordion Open/Close
@@ -486,18 +414,14 @@ Each question opens smoothly to show its answer. Best for FAQ pages.
Add an accordion to [the questions or sections you want to fold away]. Show only the headings at first; when one is pressed, its content box grows from nothing to its full height and the headings below slide down, and pressing it again shrinks it back. Animate the box to the content's real height, never to a large fixed maximum, or the timing looks wrong. When the settings include it, turn a small arrow to show which items are open. Make each heading a real button that tells screen readers whether it is open. If the visitor has reduced motion turned on, open and close the sections without animating. Match the settings listed below.
-**Settings** (the defaults in bold):
+**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
-- Feel: **Gentle** · Smooth · Even
-- Several open at once: on · **off**
-- Built with: **Measured height** · Grid rows
-- Arrow flips: **on** · off
-- Text fades in: on · **off**
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Speed: Normal, Feel: Gentle, Several open at once: off, Built with: Measured height, Arrow flips: on, Text fades in: off.
+- 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.
+- 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.
## Cursor Follower
@@ -512,17 +436,13 @@ A dot trails your pointer and flips the colors under it. Best for portfolios.
Add a cursor follower to [the page or section where it should appear]. Draw a small shape that follows the pointer with a slight delay: each frame, close a share of the gap that is exponential in the time since the last frame, so it follows at the same pace on every screen. Hide it when the pointer leaves. When the settings include them, let it flip the colors beneath it so it stays visible on light and dark areas alike, and let it grow over buttons and links. Move it with transforms only. Touch screens have no pointer, so hide it there or let it glide to where the visitor taps. If the visitor has reduced motion turned on, keep the normal cursor instead. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Lag: Short · **Medium** · Long
-- Size: Small · **Medium** · Large
-- Flips the colors under it: **on** · off
-- Shape: **Circle** · Ring · Square
-- Grows over buttons: **on** · off
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Lag: Medium, Size: Medium, Flips the colors under it: on, Shape: Circle, Grows over buttons: on.
+- Lag: Short · **Medium** · Long. How closely the dot follows: on a 60 Hz screen each frame closes 35% (short), 15% (medium) or 6% (long) of the gap to the pointer, and other screens close the share that fits their frame time, so the dot gets 95% of the way in about 0.1, 0.3 or 0.8 seconds everywhere; a longer lag feels heavier.
+- Size: Small · **Medium** · Large. The dot is 20px, 32px or 48px across.
+- Flips the colors under it: **on** · off. The dot inverts the colors beneath it, so it stays visible on light and dark areas; off, it is a see-through orange dot.
+- Shape: **Circle** · Ring · Square. A filled circle, a ring or a small square.
+- Grows over buttons: **on** · off. The dot grows to two and a half times its size while the pointer is on a button.
## Error Shake
@@ -537,15 +457,11 @@ A field shakes side to side when the input is wrong. Best for sign-in forms.
Add an error shake to [the form field that can be rejected, such as a password]. When the value is wrong or missing, move the field quickly left and right a few times, each swing smaller than the last, and end exactly where it started, like a head shaking no. Turn its border red and show a short message saying what went wrong, because movement and color alone do not explain the problem. Move only its horizontal position so the shake stays smooth, and restart the shake on every failed try. If the visitor has reduced motion turned on, skip the shake and keep the red border and the message. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Shake distance: Small · **Medium** · Large
-- Number of swings: Few · **Medium** · Many
-- Speed: Slow · **Normal** · Fast
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Shake distance: Medium, Number of swings: Medium, Speed: Normal.
+- 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.
+- 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.
## Swipe to Dismiss
@@ -560,14 +476,10 @@ A card dragged sideways flies off and the list closes up. Best for inboxes.
Add swipe to dismiss to [the list items people should be able to remove]. While an item is dragged sideways, it follows the finger exactly and fades a little; when the settings include it, a red Delete label shows behind it. On release, remove it if it went far enough or was flicked quickly: it slides off the edge and its row closes up so the list moves up smoothly. Otherwise it springs back into place. Use pointer events so mouse, touch and pen all work, and let up-and-down scrolling still pass through. Offer an undo, and a button for people who cannot drag. If the visitor has reduced motion turned on, remove the row at once without sliding. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Distance to delete: Short · **Medium** · Long
-- Shows a Delete label: **on** · off
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Distance to delete: Medium, Shows a Delete label: on.
+- 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.
+- Shows a Delete label: **on** · off. A red strip with the word Delete shows behind the card while it is dragged.
## Hamburger Menu Toggle
@@ -582,15 +494,11 @@ Three lines turn into an X as the menu opens. Best for mobile menus.
Add a menu button whose three lines turn into an X to [the menu button in your header]. When it is pressed, the top and bottom lines move to the middle and turn to cross each other while the middle line fades away, and pressing it again reverses the change. Use the same three lines for both states, moving and turning them rather than swapping icons, and move each outer line exactly to the middle so the X meets at its center. Make it a real button that tells screen readers whether the menu is open. If the visitor has reduced motion turned on, switch between the two icons without movement. Match the settings listed below.
-**Settings** (the defaults in bold):
+**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
-- Feel: **Gentle** · Springy · Smooth · Even
-- Line thickness: Thin · **Medium** · Thick
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Speed: Normal, Feel: Gentle, Line thickness: Medium.
+- Speed: Slow · **Normal** · Fast. How long the change takes: slow is 550ms, normal 340ms and fast 200ms; below about 200ms it snaps and above 500ms it drags.
+- Feel: **Gentle** · Springy · Smooth · Even. Gentle eases in and out; Springy lets the X overshoot a little, then settle; Smooth slows to a stop; Even keeps one steady speed.
+- Line thickness: Thin · **Medium** · Thick. The lines are 2px, 4px or 6px thick; thicker lines read better at small sizes.
## Theme Toggle Morph
@@ -605,14 +513,10 @@ A sun turns into a moon as the colors switch to dark. Best for theme buttons.
Add a theme toggle whose icon turns from a sun into a moon to [the button that switches your site between light and dark]. When it is pressed, the sun's rays shrink into its center while a circle slides across the sun and cuts it into a crescent, so the sun becomes the moon instead of being swapped for another icon. Switch the page's colors at the same moment and at the same pace. Make it a real button whose label says what pressing it will do, and remember the visitor's choice for their next visit. If the visitor has reduced motion turned on, switch the icon and the colors without movement. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Speed: Slow · **Normal** · Fast
-- Feel: **Gentle** · Springy · Even
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Speed: Normal, Feel: Gentle.
+- Speed: Slow · **Normal** · Fast. How long the change takes: slow is 800ms, normal 500ms and fast 300ms; under about 200ms the crescent forms too fast to see, and over 800ms it drags.
+- Feel: **Gentle** · Springy · Even. Gentle eases in and out; Springy overshoots a little, then settles; Even keeps one steady speed.
## Copy to Clipboard
@@ -627,15 +531,11 @@ Copy turns into a tick and Copied, then changes back. Best for codes and links.
Add copy feedback to [the Copy button next to your code, link or key]. When the copy succeeds, turn the button's icon into a tick and its label into Copied!, with a brief flash of color, then change it back on its own after a moment so it is ready to use again. Stack both icons and both labels in the same place so the change never shifts the layout. Show the confirmation only once the copy has really worked, tell screen readers with a short status message, and say so if copying fails. If the visitor has reduced motion turned on, swap the icon and label without movement. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Speed: Slow · **Normal** · Fast
-- Time before it changes back: Short · **Medium** · Long
-- Feel: **Springy** · Smooth · Even
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Speed: Normal, Time before it changes back: Medium, Feel: Springy.
+- Speed: Slow · **Normal** · Fast. How long the icon and label take to change: slow is 450ms, normal 280ms and fast 170ms.
+- Time before it changes back: Short · **Medium** · Long. How long Copied! stays: short is 1 second, medium 1.5 and long 2.5; under a second feels rushed, and over about three seconds it lingers.
+- Feel: **Springy** · Smooth · Even. Springy gives the tick a small bounce; Smooth slows to a stop; Even keeps one steady speed.
## Star Rating
@@ -650,16 +550,12 @@ Stars fill up to your pointer and pop when you choose. Best for reviews.
Add a star rating to [the review or feedback form]. As the pointer moves along the row, fill the stars up to the one under it so the choice shows before it is made, and bring back the chosen rating when the pointer leaves. Clicking or tapping a star chooses that rating and makes the star pop: it grows briefly, dips a little below its size and settles. On touch screens, a finger dragged along the row previews too. Make the row one control that the arrow keys can change, and show the rating as a number as well, so it never depends on color alone. If the visitor has reduced motion turned on, fill the stars without the pop. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Pop size: Small · **Medium** · Large
-- Speed: Slow · **Normal** · Fast
-- Allows half stars: on · **off**
-- Number of stars: Three · **Five** · Ten
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Pop size: Medium, Speed: Normal, Allows half stars: off, Number of stars: Five.
+- Pop size: Small · **Medium** · Large. How big the chosen star grows as it pops: 1.15, 1.35 or 1.6 times its size; above about 1.6 it looks rubbery.
+- Speed: Slow · **Normal** · Fast. How long each star takes to fill with color: slow is 300ms, normal 180ms and fast 110ms; it sets how smoothly the fill follows the pointer.
+- Allows half stars: on · **off**. Pointing at the left half of a star gives half a point, and the arrow keys move in halves.
+- Number of stars: Three · **Five** · Ten. Three, five or ten stars; five is the usual scale.
## Toast Notification
@@ -674,16 +570,12 @@ Short messages slide into a corner, then leave on their own. Best for updates.
Add toast notifications to [the actions in your app that should be confirmed quietly, such as saving]. Each toast comes into a corner of the screen with a short message and a thin bar that empties as it counts down, then leaves on its own. New toasts stack; when one leaves, the others glide over to close the gap, moved with transforms rather than by changing the layout. Pause the countdown while the pointer is over a toast, and let a tap, a sideways swipe or a close button dismiss it early. Announce each message to screen readers without moving focus. If the visitor has reduced motion turned on, show and hide toasts without movement. Match the settings listed below.
-**Settings** (the defaults in bold):
+**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
-- How it comes in: **Slides** · Fades · Grows
-- Time on screen: Short · **Medium** · Long
-- Most at once: Two · Three · **Four**
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Corner: Top right, How it comes in: Slides, Time on screen: Medium, Most at once: Four.
+- 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.
+- 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.
## Segmented Control
@@ -698,16 +590,12 @@ A highlight slides to the option you pick. Best for switching views.
Add a segmented control to [the row of options people switch between, such as Day, Week and Month]. Show the options side by side with one highlight behind the chosen one. When another option is chosen, slide the highlight over to it and stretch or shrink it to that option's width, while the labels' colors cross over as it lands. Measure the chosen option and move the highlight with transforms only, measuring again when fonts load or the window resizes. Make it one group of radio buttons that the arrow keys move through. If the visitor has reduced motion turned on, move the highlight without sliding. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Speed: Slow · **Normal** · Fast
-- Feel: **Springy** · Smooth · Even
-- Highlight: **Pill** · Underline
-- Number of options: Two · Three · **Four** · Five
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Speed: Normal, Feel: Springy, Highlight: Pill, Number of options: Four.
+- 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.
+- Number of options: Two · Three · **Four** · Five. Two to five options; more, or long labels, do not fit on one line.
## Pull to Refresh
@@ -722,16 +610,12 @@ Pulling a list down shows a spinner, then new items. Best for feeds.
Add pull to refresh to [the scrolling list or feed that should reload]. When the list is already at its top and the visitor drags it down, move it with the finger but make it resist more the further it goes, and show a spinner above it that fades in and turns as it is pulled. Let go past the line and the list stays down while the spinner keeps turning and new items load, then everything slides back up with the new items on top; a shorter pull just springs back. Also offer a refresh button for people who cannot drag. If the visitor has reduced motion turned on, snap back without sliding. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Pull distance: Short · **Medium** · Long
-- Resistance: Low · **Medium** · High
-- Spinner: **Ring** · Dots · Bars
-- Refresh time: Short · **Medium** · Long
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Pull distance: Medium, Resistance: Medium, Spinner: Ring, Refresh time: Medium.
+- 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.
+- 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.
## Animated Gradient Border
@@ -746,17 +630,13 @@ A band of colors runs around the edge of a card or button. Best for featured off
Add an animated gradient border to [the card or button you want to stand out]. Give it an edge where a band of colors keeps running around it; wherever the band does not reach, the edge stays a faint line. Build it from a square layer, twice as wide as the element, filled with a gradient that sweeps around its center, clipped to the element's rounded shape and covered by an inner box everywhere but the edge. Turn that layer and never animate the gradient itself, so the browser only rotates a finished picture. For a glow, put a blurred copy of the same layer behind it. If the visitor has reduced motion turned on, keep the border still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Colors: **Rainbow** · Sunset · Ocean
-- Speed: Slow · **Normal** · Fast
-- Soft glow: **on** · off
-- Band length: Short · **Long** · All around
-- Border width: Thin · **Medium** · Thick
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Colors: Rainbow, Speed: Normal, Soft glow: on, Band length: Long, Border width: Medium.
+- 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.
+- Border width: Thin · **Medium** · Thick. How thick the colored edge is: thin is 1px, medium 2px and thick 4px.
## Spotlight Hover Glow
@@ -771,16 +651,12 @@ A soft glow follows the pointer and lights card edges. Best for feature grids.
Add a spotlight glow to [the grid of dark cards you want to light up]. As the pointer moves over the grid, a soft round light follows it across the cards and, when the settings include it, lights up the card edges closest to the pointer while the far edges stay dim. Give each card its own light, clipped to the card, and move it to the pointer with transforms only, so nothing is repainted while it moves. Fade the light in when the pointer arrives and out when it leaves. On touch screens, let a finger dragged across the cards move the light. If the visitor has reduced motion turned on, keep the light on the pointer with no glide. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Glow size: Small · **Medium** · Large
-- Color: White · Orange · Pink · **Purple** · Blue · Green
-- Lights the edges: **on** · off
-- Lag: None · **Short** · Long
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Glow size: Medium, Color: Purple, Lights the edges: on, Lag: Short.
+- 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%.
## Add-to-Cart Fly
@@ -795,15 +671,11 @@ The product flies into the cart, which bumps and counts up. Best for shops.
Add an add-to-cart animation to [the Add to cart buttons of your product list]. When one is pressed, copy that product's picture and fly the copy into the cart icon, shrinking it on the way, then remove it. Move it with transforms only: for a curved path, slide it sideways at an even pace while an inner layer rises and then drops into the cart; for a straight path, move both together. As it lands, raise the number on the cart and, when the settings include it, give the cart a small bump. Tell screen readers that the item was added. If the visitor has reduced motion turned on, fly nothing and fade the new number in. Match the settings listed below.
-**Settings** (the defaults in bold):
+**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
-- Path: **Arc** · Straight
-- Cart bumps: **on** · off
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Flight speed: Normal, Path: Arc, Cart bumps: on.
+- 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.
+- 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
@@ -818,15 +690,11 @@ Drag an item and the others slide aside to make room. Best for to-do lists.
Add drag to reorder to [the list whose order people can change]. Lift the picked-up item and let it follow the pointer exactly; as it passes a neighbor's middle, slide that neighbor into the gap, and on release settle it into place and save the order. Shift the items rather than changing the layout, so it stays smooth. Support the keyboard: Space picks up, the arrow keys move, Space drops and Escape cancels, each step read out to screen readers. On touch screens, start a drag at once from the grip; if the rest of an item can start one too, only after a short press, so swipes still scroll. If the visitor has reduced motion turned on, move items straight to their places. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Slide speed: Slow · **Normal** · Fast
-- How much it lifts: **Subtle** · Strong
-- Drags by the handle only: on · **off**
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Slide speed: Normal, How much it lifts: Subtle, Drags by the handle only: off.
+- 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.
+- 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
@@ -841,15 +709,11 @@ Each digit rolls to its new value, like a mileage counter. Best for prices.
Add rolling numbers to [the number that changes, such as a counter, score or price]. Show each digit in a small window over a column of the digits 0 to 9, and when the value changes, slide each column so its new digit rolls into view, like the wheels of a mileage counter; digits that stay the same do not move, and separators stay still. Give every digit the same width so the number never shifts sideways, and only slide the columns, never resize anything, so it stays smooth. Let screen readers hear the plain number once. If the visitor has reduced motion turned on, swap the digits with a short fade instead of rolling. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Roll speed: Slow · **Normal** · Fast
-- Direction: Up · Down · **Shortest**
-- Digits one after another: **on** · off
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Roll speed: Normal, Direction: Shortest, Digits one after another: on.
+- Roll speed: Slow · **Normal** · Fast. How long a digit takes to roll to its new value: slow is 900ms, normal 550ms and fast 300ms.
+- Direction: Up · Down · **Shortest**. Shortest turns each digit the nearer way round; up turns every digit forward, as a mileage counter does, so 9 to 0 is one step; down turns them back, like a countdown.
+- Digits one after another: **on** · off. Each changing digit starts 70ms after the changing digit to its right, so a big change ripples from right to left.
## Typing Indicator
@@ -864,15 +728,11 @@ Three dots in a chat bubble move in turn while someone types. Best for chat apps
Add a typing indicator to [the chat or comment thread where replies arrive]. While the other person is typing, show a small bubble on their side of the conversation with three dots that move one after another in a steady loop, so it reads as someone writing right now. Show it only while they are really typing, hide it after a few quiet seconds, and when their message arrives, put the message where the bubble was. Animate only the dots, never the bubble's size, so it stays smooth, and give screen readers a short text that says who is typing. If the visitor has reduced motion turned on, keep the dots in place and only let them brighten in turn. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- How the dots move: **Bounce** · Fade · Wave
-- Speed: Slow · **Normal** · Fast
-- Bubble color: **Gray** · Blue · Green · Purple
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: How the dots move: Bounce, Speed: Normal, Bubble color: Gray.
+- 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.
+- 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
@@ -887,16 +747,12 @@ A button fills up while you hold it and acts only once it is full. Best for dele
Add hold to confirm to [the button for a risky action, such as Delete]. While the visitor holds it down, a fill grows steadily, and the action runs only once it is full, when a tick shows. If they let go early, the fill drains back, nothing happens and a short hint says to keep holding; when the settings ask for it, the button also shakes. Holding Space or Enter works the same way, and on touch a long press must not open the browser's menu. Grow the fill smoothly by the time held, not per frame, and announce the result to screen readers. If the visitor has reduced motion turned on, fill in a few steps without the shake. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- How long to hold: Short · **Medium** · Long
-- Fill style: **Bar** · Ring
-- Shakes if let go early: **on** · off
-- How fast it drains: **Quickly** · Slowly
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: How long to hold: Medium, Fill style: Bar, Shakes if let go early: on, How fast it drains: Quickly.
+- How long to hold: Short · **Medium** · Long. How long the button must be held before it acts: short is 0.8 seconds, medium 1.5 and long 2.5; under about half a second it no longer guards against a stray tap, over three seconds it feels stuck.
+- Fill style: **Bar** · Ring. Bar fills the whole button from left to right; Ring fills a ring around a round button, clockwise from the top.
+- Shakes if let go early: **on** · off. A short side-to-side shake when the button is let go before it is full; the hint to keep holding shows either way.
+- How fast it drains: **Quickly** · Slowly. How long a full fill takes to run back out when it is let go: quickly is 0.4 seconds, slowly 1.5.
## Expanding Search
@@ -911,15 +767,11 @@ A search icon opens into a field, then closes when done. Best for toolbars.
Add an expanding search to [the toolbar or header where search should sit]. Show only a search icon until it is pressed; then open a search field out of the icon, over the items beside it, and put the text cursor in it. Reveal the field with a clip or a scale from the icon's side, never by animating its width, so nothing around it moves. Escape or a close button closes it and gives the focus back to the icon, and a closed field stays out of the Tab order. Make the icon a real button with a label. If the visitor has reduced motion turned on, open and close it at once. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Opens toward: **Left** · Right
-- Speed: Slow · **Normal** · Fast
-- Closes when you leave it: **on** · off
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Opens toward: Left, Speed: Normal, Closes when you leave it: on.
+- Opens toward: **Left** · Right. Left puts the icon at the right end of the toolbar and grows the field leftward over the links; Right puts the icon beside the logo and grows the field rightward.
+- Speed: Slow · **Normal** · Fast. How long the field takes to open or close: slow is 450ms, normal 280ms and fast 160ms; much slower and typing has to wait for it.
+- Closes when you leave it: **on** · off. On closes the field as soon as the focus moves away, by a click elsewhere or Tab; off keeps it open until Escape or the close button.
## Button Loading States
@@ -934,16 +786,12 @@ The button becomes a spinner, then a tick or a cross. Best for Save buttons.
Add loading states to [the button that sends a form or saves something]. When it is pressed, fade its label out, show a spinner in its place and ignore further presses until it is done. When the answer comes, swap the spinner for a tick, or for a cross with a short shake if it failed, then bring the label back after a moment. When the settings ask for it, shrink the button's colored shape into a circle around the spinner with a clip, never by animating its width, so nothing around it moves. Announce each change to screen readers. If the visitor has reduced motion turned on, keep the shape and change the label's words instead. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Result: **Success** · Error
-- Speed: Slow · **Normal** · Fast
-- Shrinks to a circle: **on** · off
-- How long it loads: Short · **Medium** · Long
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Result: Success, Speed: Normal, Shrinks to a circle: on, How long it loads: Medium.
+- Result: **Success** · Error. Success shows a tick on green; Error shows a cross on red and gives the button a small shake.
+- 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.
## Image Trail
@@ -958,17 +806,13 @@ Pictures pop up in a trail behind your pointer, then fade. Best for portfolios.
Add an image trail to [the hero section the pointer moves over]. Each time the pointer has traveled a set distance, drop a picture at its tip, so a still pointer leaves none. Each new picture pops up on top of the others, gliding in from where the last one appeared, stays a while, then leaves and fades away. Reuse a small set of picture elements in turn, and move, scale and fade them with transforms and opacity only, so it stays smooth. On touch screens, let a finger dragged across the section leave the trail. If the visitor has reduced motion turned on, show one picture at a time where they point, fading in and out without moving. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- How often a picture appears: Often · **Normal** · Rarely
-- How long they stay: Short · **Normal** · Long
-- Picture size: Small · **Medium** · Large
-- How they leave: **Shrink** · Fade · Fall
-- Tilts the pictures: **on** · off
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: How often a picture appears: Normal, How long they stay: Normal, Picture size: Medium, How they leave: Shrink, Tilts the pictures: on.
+- How often a picture appears: Often · **Normal** · Rarely. How far the pointer goes between two pictures: often, normal and rarely are 0.12, 0.2 and 0.32 times the hero's shorter side, so the spacing looks the same on a phone and a laptop.
+- How long they stay: Short · **Normal** · Long. How long a picture shows before it starts to leave: 0.4, 0.8 or 1.6 seconds from when it appears, then half a second to leave; longer stays make a longer trail.
+- Picture size: Small · **Medium** · Large. Each picture is 0.26, 0.34 or 0.44 times the hero's shorter side across, in a 4:5 frame.
+- How they leave: **Shrink** · Fade · Fall. Shrink scales the picture down to a quarter as it fades; Fade only fades it; Fall drops it by 30% of the hero's height as it fades, turning it a little further.
+- Tilts the pictures: **on** · off. Each picture leans up to 8 degrees to one side, at random, and turns into place as it pops; off, they all stand straight.
## Gooey Menu
@@ -983,16 +827,12 @@ Small buttons ooze out of a round button like liquid. Best for quick actions.
Add a gooey menu to [the round action button on your page]. Pressing it lets smaller buttons ooze out like drops of liquid and pop into place; pressing again pulls them back in. Draw plain circles of one color on a layer under the icons and run that layer through a filter that blurs it, then sharpens the blurred edge again, so circles that touch melt together. Move them only with transforms, keep the filtered layer small and blur less on phones. Make every button a real button the keyboard can reach, tell screen readers whether the menu is open, and let Escape close it. If the visitor has reduced motion turned on, fade the buttons in place without the stretch. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Layout: Row · **Arc** · Column
-- How gooey: Low · **Medium** · High
-- Speed: Slow · **Normal** · Fast
-- Button color: **Orange** · Pink · Purple · Blue · Green
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Layout: Arc, How gooey: Medium, Speed: Normal, Button color: Orange.
+- 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.
+- 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.
## Dynamic Island
@@ -1007,12 +847,8 @@ A black pill grows into a notification, then shrinks back. Best for live updates
Add a Dynamic Island style notification to [the top of your app or page]. At rest it is a small black pill; when [an event such as an incoming message] happens or the pill is pressed, it grows into a rounded card with the details, then shrinks back. Change the black shape with a clip or a scale, never by animating its width or height, so the text inside never stretches and nothing around it moves. Keep the details inside the shape, fading them in once it has room. Make the pill a real button for taps, clicks and the keyboard, and announce its message politely to screen readers. If the visitor has reduced motion turned on, crossfade the pill and the card instead. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Notification: **Call** · Timer · Music
-- Speed: Slow · **Normal** · Fast
-- Bounce: None · **Soft** · Springy
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Notification: Call, Speed: Normal, Bounce: Soft.
+- 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.
+- 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.
diff --git a/skills/animation-handbook/references/05-text-typography.md b/skills/animation-handbook/references/05-text-typography.md
index 1b6d281a..bcfdcc5e 100644
--- a/skills/animation-handbook/references/05-text-typography.md
+++ b/skills/animation-handbook/references/05-text-typography.md
@@ -1,6 +1,6 @@
# 05 · Text & Typography
-Animations specifically for type — kinetic motion, character-level effects, gradient flows, and word transformations. 19 animations from Animation Handbook, in the home page's order. Each entry gives the live demo, how it runs, what it is good for and what to avoid it on, the prompt from its page word for word, and its settings.
+Animations specifically for type — kinetic motion, character-level effects, gradient flows, and word transformations. 19 animations from Animation Handbook, in the home page's order. Each entry gives the live demo, how it runs, what it is good for and what to avoid it on, the prompt from its page word for word, and its settings with what each does and the demo's values.
## Contents
@@ -37,13 +37,9 @@ Words arrive and leave one by one, each moving its own way. Best for intros.
Add a kinetic typography sequence to [the short phrases you want to show]. Show one phrase at a time and give each an entrance and an exit that fit its meaning: a heavy word can drop in large, a soft word can simply fade, a quick word can slide. Hold each phrase long enough to be read, and use size and color so the key words stand out. Leave the final phrase on screen when the sequence ends. Screen readers should hear each phrase as plain text. If the visitor has reduced motion turned on, show the phrases without movement. Match the settings listed below.
-**Settings** (the defaults in bold):
+**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
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Speed: Normal.
+- Speed: Slow · **Normal** · Fast. The pace of the whole sequence: slow plays it at 0.6× speed, normal at 1× and fast at 1.7×; entrances, holds and exits all scale together.
## Typewriter Effect
@@ -58,18 +54,14 @@ Text types itself out behind a blinking cursor. Best for short taglines.
Add a typewriter effect to [your tagline or short text]. The text should appear one character at a time, as if someone is typing it, with a blinking cursor always just after the last character. Unless the settings turn it off, vary the time between keystrokes slightly so it feels typed by a person rather than a machine. When the settings include it, back up over the last word and type a new ending. Keep it to short text, because long text is slow to wait for. Screen readers should hear the full text once, not each character. If the visitor has reduced motion turned on, show the full text immediately. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Speed: Slow · **Normal** · Fast
-- Cursor shape: **Line** · Block · Underscore
-- Deletes and retypes: on · **off**
-- Types like a person: **on** · off
-- Cursor color: **Pink** · White · Blue · Purple · Green · Orange
-- Your text: text field, starts as "Typography is the art and craft of arranging type. Good type communicates before it decorates."
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Speed: Normal, Cursor shape: Line, Deletes and retypes: off, Types like a person: on, Cursor color: Pink, Your text: "Typography is the art and craft of arra…".
+- Speed: Slow · **Normal** · Fast. The time between keystrokes: slow is 80ms, normal 50ms and fast 30ms; about 80 to 120ms feels like a natural pace.
+- Cursor shape: **Line** · Block · Underscore. A block reads as a terminal, a line as a text editor, an underscore as an old computer screen.
+- Deletes and retypes: on · **off**. Types the text, backs up over the last word at about 30ms a character, then types it again with a new ending.
+- Types like a person: **on** · off. Moves each keystroke up to 20ms earlier or later so the rhythm is uneven, like real typing.
+- Cursor color: **Pink** · White · Blue · Purple · Green · Orange. The cursor's color; pick one that stands out from the text.
+- Your text: text field, starts as "Typography is the art and craft of arranging type. Good type communicates before it decorates.". The text that is typed; short lines work best.
## Scramble / Glitch Text
@@ -84,16 +76,12 @@ Random symbols lock into the real text, left to right. Best for tech headlines.
Add a scramble effect to [your headline or short phrase]. Each letter should start as a random character and keep flickering through random characters until it locks into the real letter. Lock the letters in reading order, from left to right, so the text becomes readable bit by bit, as if it is being decoded. Capital letters scramble most cleanly. Screen readers should hear the final text once, never the random characters. If the visitor has reduced motion turned on, show the final text immediately. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Random characters: Alphabet · **Symbols** · Numbers · Japanese · Mixed
-- Delay between letters: Short · **Medium** · Long
-- Flicker speed: Slow · **Normal** · Fast
-- Your text: text field, starts as "DECODE THE MESSAGE"
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Random characters: Symbols, Delay between letters: Medium, Flicker speed: Normal, Your text: "DECODE THE MESSAGE".
+- Random characters: Alphabet · **Symbols** · Numbers · Japanese · Mixed. What the letters flicker through: symbols look like hacking, Japanese characters look like the falling code in science-fiction films, and the alphabet or numbers look like a password being cracked.
+- Delay between letters: Short · **Medium** · Long. The wait between one letter locking and the next: short is 40ms, medium 70ms and long 120ms; it sets how fast the decoding travels.
+- Flicker speed: Slow · **Normal** · Fast. How often the random characters change: slow every 65ms, normal every 40ms and fast every 25ms; faster looks more chaotic.
+- Your text: text field, starts as "DECODE THE MESSAGE". The text that is decoded, shown in capitals.
## Variable Font Morph
@@ -108,15 +96,11 @@ A word smoothly turns bold, then light, and leans over. Best for headlines.
Add a variable font morph to [your headline or word]. Use a variable font, which holds a whole range of weights in one file, and change the weight smoothly so the letters grow heavier and lighter as you watch, moving through a few styles in turn and resting briefly on each. When the settings include it, the word also leans over during some changes: a font with its own slant does this best, and a slight tilt works for fonts without one. Change the weight through the font itself, not by scaling, so the text stays sharp. If the visitor has reduced motion turned on, keep the word in one style. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Speed: Slow · **Normal** · Fast
-- Leans as it changes: **on** · off
-- Your text: text field, starts as "Type"
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Speed: Normal, Leans as it changes: on, Your text: "Type".
+- Speed: Slow · **Normal** · Fast. How long each change takes: slow is 1000ms, normal 600ms and fast 350ms; the word then rests for 800ms before the next.
+- Leans as it changes: **on** · off. Some changes also tilt the word by up to 15 degrees; off, only the weight changes.
+- Your text: text field, starts as "Type". The word that changes.
## Text Clip-Path Reveal
@@ -131,17 +115,13 @@ Each line of a headline is uncovered in turn. Best for big headlines.
Add a line-by-line reveal to [your multi-line headline]. Lay out every line in its final place from the start, then uncover each line with a wipe that grows from one side until the whole line shows, starting each line a moment after the one above so the headline cascades in. Nothing moves or changes size; only the visible part of each line grows, so the letter spacing stays exactly as designed. A wipe that slows down as it finishes looks calmer than one that stops abruptly. The text must stay readable by screen readers the whole time. If the visitor has reduced motion turned on, show all the lines at once. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Starts from: **Left** · Right · Top
-- Speed: Slow · **Normal** · Fast
-- Delay between lines: Short · **Medium** · Long
-- Feel: **Smooth** · Gentle · Even
-- Your lines: text box, starts with the lines "Good design", "Is honest" and "Always."
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Starts from: Left, Speed: Normal, Delay between lines: Medium, Feel: Smooth, Your lines: "Good design Is honest Always.".
+- Starts from: **Left** · Right · Top. The side each line's wipe begins on: left follows the reading order, right suits right-to-left scripts, top works for display headings.
+- Speed: Slow · **Normal** · Fast. How long each line takes to uncover: slow is 1100ms, normal 700ms and fast 400ms.
+- Delay between lines: Short · **Medium** · Long. The wait before each next line starts: short is 100ms, medium 180ms and long 300ms; 100 to 200ms reads as a natural cascade.
+- Feel: **Smooth** · Gentle · Even. Smooth slows to a stop, which feels physical; Gentle eases in and out; Even feels mechanical.
+- Your lines: text box, starts with the lines "Good design", "Is honest" and "Always.". The headline, one line per row.
## Marquee / Ticker
@@ -156,17 +136,13 @@ Text scrolls sideways in an endless loop, with no seam. Best for news tickers.
Add a marquee to [the text or items you want to scroll]. The text should scroll sideways in an endless loop with no visible jump: place two identical copies side by side, each at least as wide as the space it scrolls through, and move them by exactly one copy's width before starting over. Put a small mark between the repeats. Rows can run in opposite directions for a decorative band. Pointing at a row should stop it so people can read it, and a tap should do the same on touch screens. Screen readers should not announce the moving text again and again. If the visitor has reduced motion turned on, keep the text still. Match the settings listed below.
-**Settings** (the defaults in bold):
+**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
-- Text size: Small · **Medium** · Large
-- Space between items: Tight · **Medium** · Wide
-- Separator: "Dot ·" · Star ★ · Dash — · **Sparkle ✦**
-- Your text: text field, starts as "Animation Handbook"
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Speed: Normal, Text size: Medium, Space between items: Medium, Separator: Sparkle ✦, Your text: "Animation Handbook".
+- Speed: Slow · **Normal** · Fast. How fast the text travels: slow is 50px, normal 80px and fast 130px per second; news tickers run slower, brand strips faster.
+- Text size: Small · **Medium** · Large. Small is 32px, medium 48px and large 64px; large type is the usual choice for brand strips.
+- Space between items: Tight · **Medium** · Wide. The space around each repeat of the text and its separator: tight is 24px, medium 48px and wide 80px.
+- Separator: "Dot ·" · Star ★ · Dash — · **Sparkle ✦**. The mark between repeats: a dot, a star, a dash or a sparkle.
+- Your text: text field, starts as "Animation Handbook". The text that scrolls.
## Text Morphing
@@ -181,17 +157,13 @@ One word changes into the next, letter by letter. Best for short labels.
Add a letter-by-letter morph to [the word that should change, and the words it cycles through]. Split each word into letters. To change words, slide the current letters out of sight in one direction, then slide the next word's letters in from the opposite side; a small delay between letters, when the settings include one, sends the change across the word like a wave. Hold each word long enough to read, then morph to the next and repeat the list. Words of similar length look cleanest. Screen readers should hear each new word once, not its letters. If the visitor has reduced motion turned on, swap the words without movement. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Slide direction: **Up** · Down · Left · Right
-- Delay between letters: **None** · Short · Long
-- Speed: Slow · **Normal** · Fast
-- Time on each word: Short · **Medium** · Long
-- Your words, one per line: text box, starts with the lines "OCEAN", "RIVER", "STORM", "LIGHT" and "SOUND"
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Slide direction: Up, Delay between letters: None, Speed: Normal, Time on each word: Medium, Your words, one per line: "OCEAN RIVER STORM LIGHT SOUND".
+- Slide direction: **Up** · Down · Left · Right. Up and down look like a slot machine; left and right slide sideways.
+- Delay between letters: **None** · Short · Long. The gap between one letter moving and the next: none, short (30ms) or long (60ms); none moves every letter together, a delay makes a wave.
+- Speed: Slow · **Normal** · Fast. How long each letter takes to slide: slow is 650ms, normal 400ms and fast 250ms.
+- Time on each word: Short · **Medium** · Long. How long each word stays: short is 900ms, medium 1500ms and long 2400ms; it must be long enough to read.
+- Your words, one per line: text box, starts with the lines "OCEAN", "RIVER", "STORM", "LIGHT" and "SOUND". The words that take turns, shown in capitals.
## Text Gradient Animation
@@ -206,17 +178,13 @@ Colors flow through the letters while the text stays still. Best for headlines.
Add a flowing color gradient to [your headline or logo text]. Fill the letters with a gradient instead of a flat color: paint the gradient as the text's background, show it only inside the letter shapes, and make the text color itself see-through. Then keep moving the gradient behind the letters, or turn it like a color wheel, so color flows through the word while the letters stay still. End the gradient with the color it starts with so the loop has no seam. Give the text a solid fallback color for browsers that cannot clip a background to text. If the visitor has reduced motion turned on, keep the gradient still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Gradient: **Flowing** · Spinning · Diagonal · Two colors
-- Speed: Slow · **Normal** · Fast
-- First color: Pink · White · **Blue** · Purple · Green · Orange (the page shows it only for some choices of another setting, and copies it only then)
-- Second color: Pink · White · Blue · **Purple** · Green · Orange (the page shows it only for some choices of another setting, and copies it only then)
-- Your text: text field, starts as "Flow"
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Gradient: Flowing, Speed: Normal, Your text: "Flow".
+- Gradient: **Flowing** · Spinning · Diagonal · Two colors. Flowing slides the colors sideways, Spinning turns them like a color wheel, Diagonal slides slanted bands, Two colors flows between two colors of your choice.
+- Speed: Slow · **Normal** · Fast. How long one full pass takes: slow is 6.4s, normal 4s and fast 2.4s; slower feels calm, faster feels lively.
+- First color: Pink · White · **Blue** · Purple · Green · Orange (the page shows it only for some choices of another setting, and copies it only then). With Two colors, the color the gradient starts and ends with.
+- Second color: Pink · White · Blue · **Purple** · Green · Orange (the page shows it only for some choices of another setting, and copies it only then). With Two colors, the color in the middle.
+- Your text: text field, starts as "Flow". The text the colors flow through.
## Outline to Fill
@@ -231,19 +199,15 @@ Hollow letters fill with color, as a wipe or a fade. Best for big headlines.
Add an outline-to-fill effect to [your headline or logo word]. The text should start hollow, with only the outline of each letter showing, then fill with color. The fill can wipe in from one side, like paint, or fade in everywhere at once, like ink soaking through. Draw the outline and the filled text as two layers in exactly the same place so the letters never shift. Use large, heavy letters so there is enough inside each one to fill. The text must stay readable by screen readers. If the visitor has reduced motion turned on, show the filled text straight away. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Fill direction: **Bottom up** · Top down · Left to right · Right to left · From the middle
-- Speed: Slow · **Normal** · Fast
-- Outline thickness: Thin · **Medium** · Thick
-- Feel: Smooth · **Gentle** · Even
-- Outline color: **Pink** · White · Blue · Purple · Green · Orange
-- Fill color: **Pink** · White · Blue · Purple · Green · Orange
-- Your text: text field, starts as "OUTLINE"
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Fill direction: Bottom up, Speed: Normal, Outline thickness: Medium, Feel: Gentle, Outline color: Pink, Fill color: Pink, Your text: "OUTLINE".
+- Fill direction: **Bottom up** · Top down · Left to right · Right to left · From the middle. Where the wipe starts: the bottom, the top, the left, the right or the middle; bottom up reads like filling a container, left to right like writing. The fade has no direction.
+- Speed: Slow · **Normal** · Fast. How long the fill takes: slow is 1500ms, normal 900ms and fast 550ms.
+- Outline thickness: Thin · **Medium** · Thick. How wide the outline is: thin is 1px, medium 2px and thick 4px; thin looks precise, thick looks bold.
+- Feel: Smooth · **Gentle** · Even. Gentle eases in and out; Smooth slows to a stop; Even keeps one steady pace.
+- Outline color: **Pink** · White · Blue · Purple · Green · Orange. The color of the letters' outline.
+- Fill color: **Pink** · White · Blue · Purple · Green · Orange. The color that fills the letters.
+- Your text: text field, starts as "OUTLINE". The word that fills, up to 10 letters, shown in capitals.
## Enter/Exit Typography
@@ -258,15 +222,11 @@ Each phrase comes in, stays long enough to read, then leaves. Best for slogans.
Add an enter-and-exit text sequence to [the short phrases you want to show]. Show one phrase at a time in the same place: each phrase comes in, holds still long enough to be read, then leaves before the next one arrives. Give each phrase its own way in and out, such as sliding, growing, blurring or wiping, and let each exit lead into the next entrance so the sequence feels connected. Leave the last phrase on screen when the sequence ends. Screen readers should hear each phrase as it appears. If the visitor has reduced motion turned on, swap the phrases without movement. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Entrance speed: Slow · **Normal** · Fast
-- Time on each phrase: Short · **Medium** · Long
-- Exit speed: Slow · **Normal** · Fast
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Entrance speed: Normal, Time on each phrase: Medium, Exit speed: Normal.
+- Entrance speed: Slow · **Normal** · Fast. How long each phrase takes to arrive: slow is 800ms, normal 500ms and fast 300ms; fast feels energetic, slow feels deliberate.
+- Time on each phrase: Short · **Medium** · Long. How long each phrase holds still: short is 1200ms, medium 2000ms and long 3200ms; it must be longer than it takes to read the phrase.
+- Exit speed: Slow · **Normal** · Fast. How long each phrase takes to leave: slow is 650ms, normal 400ms and fast 250ms; exits are usually shorter than entrances.
## Rotate Word Carousel
@@ -281,18 +241,14 @@ One word in a sentence keeps swapping for the next. Best for hero headlines.
Add a rotating word to [your headline, with the word that should change]. Keep the rest of the sentence still and swap only that one word: the current word slides out of sight and the next one slides in from the opposite side, clipped by an invisible box so it seems to come from behind the text. Hold each word long enough to read, then move on, repeating the list forever. Words of similar length keep the sentence from jumping. Screen readers should hear each new word once. If the visitor has reduced motion turned on, swap the words without sliding. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Slide direction: **Up** · Down · Left · Right
-- Speed: Slow · **Normal** · Fast
-- Time on each word: Short · **Medium** · Long
-- Different color per word: **on** · off
-- Your sentence: text field, starts as "We craft for"
-- Your words, one per line: text box, starts with the lines "Designers", "Developers", "Humans", "Teams" and "Startups"
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Slide direction: Up, Speed: Normal, Time on each word: Medium, Different color per word: on, Your sentence: "We craft for", Your words, one per line: "Designers Developers Humans Teams Start…".
+- Slide direction: **Up** · Down · Left · Right. Up and down move the word like a slot machine; left and right slide it sideways.
+- Speed: Slow · **Normal** · Fast. How long each slide takes: slow is 650ms, normal 400ms and fast 250ms.
+- Time on each word: Short · **Medium** · Long. How long each word stays: short is 1200ms, medium 2000ms and long 3200ms; 1.5 to 3 seconds is the readable range.
+- Different color per word: **on** · off. A new color for each word draws attention to the change; one color is calmer.
+- Your sentence: text field, starts as "We craft for". The part of the headline that stays still.
+- Your words, one per line: text box, starts with the lines "Designers", "Developers", "Humans", "Teams" and "Startups". The words that take turns.
## Glitch Text
@@ -307,17 +263,13 @@ Text tears into red and cyan strips like a broken signal. Best for bold titles.
Add a glitch effect to [your headline or short word]. Place two copies of the text behind it, one tinted red and one tinted cyan, shifted to either side, and show only thin horizontal strips of each copy, changing which strips show so the colors seem to tear away from the letters like a broken video signal. Every so often, nudge the whole word sideways for a moment and reshuffle the strips so the pattern never repeats. Keep it below a few flickers per second and avoid full-screen flashes. If it only glitches on hover, a tap should start and stop it on touch screens. If the visitor has reduced motion turned on, keep the word still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Color split: Small · **Medium** · Large
-- Speed: Slow · **Normal** · Fast
-- Glitch strength: Mild · **Medium** · Strong
-- Glitches only on hover: on · **off**
-- Your text: text field, starts as "GLITCH"
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Color split: Medium, Speed: Normal, Glitch strength: Medium, Glitches only on hover: off, Your text: "GLITCH".
+- Color split: Small · **Medium** · Large. How far the red and cyan copies sit from the word: small is 2px, medium 4px and large 8px.
+- Speed: Slow · **Normal** · Fast. How long the strips take to run through their pattern: slow is 3.8s, normal 2.4s and fast 1.4s; shorter looks more frantic.
+- Glitch strength: Mild · **Medium** · Strong. How hard the word shakes and how often the strips reshuffle: mild, medium or strong.
+- Glitches only on hover: on · **off**. Holds the word still until you point at it; on touch screens a tap starts and stops it.
+- Your text: text field, starts as "GLITCH". The word that glitches, up to 12 letters, shown in capitals.
## Text on a Path
@@ -332,16 +284,12 @@ Text travels along a wave, an arc or a circle. Best for badges and seals.
Add text that travels along a curve to [your short phrase]. Define the curve once and attach the text to it so every letter sits on the line, then keep moving the point where the text starts so the letters travel along the curve like a ticker bent into shape. Repeat the phrase, with a separator such as a dot, until it covers the whole curve, and wrap around by exactly one copy so the loop has no jump. Keep the curve gentle enough that letters do not crowd on sharp bends. If the visitor has reduced motion turned on, show the text still on the curve. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Path shape: **Wave** · Arc · Circle
-- Speed: Slow · **Normal** · Fast
-- Shows the path: **on** · off
-- Your text: text field, starts as "FOLLOW THE CURVE ·"
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Path shape: Wave, Speed: Normal, Shows the path: on, Your text: "FOLLOW THE CURVE ·".
+- Path shape: **Wave** · Arc · Circle. The curve the text follows: a wave, an arc or a full circle.
+- Speed: Slow · **Normal** · Fast. How far the text moves every sixtieth of a second: slow is 0.25%, normal 0.4% and fast 0.65% of the path (15%, 24% and 39% a second).
+- Shows the path: **on** · off. Draws the curve as a dashed line under the text.
+- Your text: text field, starts as "FOLLOW THE CURVE ·". The phrase that travels; end it with a separator so the repeats read on.
## Wavy Text
@@ -356,16 +304,12 @@ A wave rolls through the word, letter by letter. Best for playful titles.
Add a wavy text effect to [your word or short title]. Split the text into letters and make every letter bob up and down with the same smooth motion, but start each letter a moment after the one before it, so the high point of the wave rolls from the first letter to the last and around again. Keep the letters on one line, and move them only up and down, never changing their size or spacing. Screen readers should read the word once, not letter by letter. If the visitor has reduced motion turned on, keep the letters still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Wave height: Low · **Medium** · High
-- Speed: Slow · **Normal** · Fast
-- Delay between letters: Short · **Medium** · Long
-- Your text: text field, starts as "Wavy"
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Wave height: Medium, Speed: Normal, Delay between letters: Medium, Your text: "Wavy".
+- Wave height: Low · **Medium** · High. How far each letter travels: low is 8px, medium 16px and high 28px; larger makes a taller wave.
+- Speed: Slow · **Normal** · Fast. How long one rise and fall takes: slow is 2.6s, normal 1.6s and fast 1s.
+- Delay between letters: Short · **Medium** · Long. The gap between neighboring letters: short is 30ms, medium 60ms and long 120ms; longer delays stretch the wave.
+- Your text: text field, starts as "Wavy". The word that waves, up to 14 letters.
## Highlighter Sweep
@@ -380,15 +324,11 @@ A marker sweeps in behind the key words, one after another. Best for key points.
Add a highlighter sweep to [the key words in your paragraph or quote]. Behind each key phrase, a band of marker color grows from left to right, as if drawn with a highlighter pen, and the phrases are marked one after another in reading order. Draw the band behind the text, never over it, and grow it by scaling it from its left edge, so the words never move or reflow. When a phrase wraps onto a second line, sweep each line in turn, as one continuous stroke. Keep the words dark enough to read on the marker color. If the visitor has reduced motion turned on, fade the highlights in instead of sweeping them. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Marker color: **Yellow** · Pink · Green · Blue · Orange
-- Speed: Slow · **Normal** · Fast
-- How much it covers: **Whole words** · Lower half
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Marker color: Yellow, Speed: Normal, How much it covers: Whole words.
+- Marker color: **Yellow** · Pink · Green · Blue · Orange. The color of the bands: yellow, pink, green, blue or orange, all light enough for the dark words to stay easy to read.
+- Speed: Slow · **Normal** · Fast. 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** · Lower half. Whole words covers the letters from just under their tops; Lower half covers only the bottom of the letters, like a thick underline.
## Split-Flap Board
@@ -403,15 +343,11 @@ Tiles flip through the letters to spell a word, like an airport board. Best for
Add a split-flap board to [your headline or short word]. Show each letter on its own tile, split across the middle like an old airport departures board. To change a tile, flip it through the alphabet one letter at a time until it reaches its letter: the top half of the old letter falls forward over the hinge, turning in 3D and darkening as it turns, and the bottom half of the next letter swings down into place. Start the tiles a moment apart from left to right, so they settle one by one. Turn the halves with transforms only, and let screen readers hear the final word once. If the visitor has reduced motion turned on, fade the letters in instead. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Word: text field, starts as "BOARDING"
-- Flip speed: Slow · **Normal** · Fast
-- Tile color: **Black** · Blue · Red · Green · Cream
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Word: "BOARDING", Flip speed: Normal, Tile color: Black.
+- Word: text field, starts as "BOARDING". The word on the board: up to 10 letters from A to Z, and a space leaves a blank tile.
+- Flip speed: Slow · **Normal** · Fast. How long one flip takes: slow is 150ms, normal 85ms and fast 45ms; each tile starts 40ms after the one on its left.
+- Tile color: **Black** · Blue · Red · Green · Cream. The color of the tiles: black, blue, red or green with light letters, or cream with dark letters.
## Neon Flicker
@@ -426,18 +362,14 @@ Glowing letters sputter now and then, like a worn neon sign. Best for night them
Add a neon sign effect to [your sign word or short title]. Draw the letters as bright tubes with a soft colored glow, a faint wash of the same color on the wall behind, and a dim, unlit copy of the letters underneath. Now and then, make the light stutter: drop it to almost nothing and back a few times, at uneven moments so it never looks like a loop. When the settings include it, let one letter buzz and go dark on its own. Flicker the lit layers by changing their opacity alone, in sharp steps; draw the glow once and never animate it. Keep it below three flashes a second. If the visitor has reduced motion turned on, keep the glow steady. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Color: **Pink** · Blue · Green · Amber · Purple
-- How often it flickers: Calm · **Normal** · Busy
-- Broken letter: **on** · off
-- Glow size: Small · **Medium** · Large
-- Frame around the word: **on** · off
-- Your text: text field, starts as "OPEN"
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Color: Pink, How often it flickers: Normal, Broken letter: on, Glow size: Medium, Frame around the word: on, Your text: "OPEN".
+- Color: **Pink** · Blue · Green · Amber · Purple. The color of the tubes, their glow and the wash on the wall.
+- How often it flickers: Calm · **Normal** · Busy. Calm: two short bursts in a 9 second cycle. Normal: four bursts in 7 seconds. Busy: seven bursts in 6 seconds, one of them a longer drop out.
+- Broken letter: **on** · off. One letter a little past the middle of the word buzzes and drops out on its own cycle.
+- Glow size: Small · **Medium** · Large. How far the light spreads: small, medium or large sets of glow layers.
+- Frame around the word: **on** · off. Adds a rounded tube border that glows and flickers with the letters.
+- Your text: text field, starts as "OPEN". The word on the sign, up to 10 letters, with spaces at its ends dropped; it shrinks to fit the stage, and an emptied field goes back to OPEN.
## Handwriting Draw
@@ -452,17 +384,13 @@ A word writes itself stroke by stroke, as if by a pen. Best for greetings and si
Add a handwriting animation to [your word or signature, drawn as single SVG lines]. Write it with pen lines instead of filled letters, split into strokes in the order a person writes them: the joined letters first, then the dots on the i's and the crosses on the t's. Hide each stroke behind a dash as long as itself and slide the dash away, one stroke after another, at one steady pen speed, so longer strokes take longer, with a short pause where the pen lifts. When the settings include it, let a small pen ride on the tip of the line. Screen readers should get the word as text. If the visitor has reduced motion turned on, fade the finished word in instead. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Word: **hello** · thanks · hi there
-- Pen speed: Slow · **Normal** · Fast
-- Ink color: **Blue** · Black · Red · Green
-- Pen size: Fine · **Medium** · Bold
-- Shows the pen: **on** · off
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Word: hello, Pen speed: Normal, Ink color: Blue, Pen size: Medium, Shows the pen: on.
+- Word: **hello** · thanks · hi there. Which word is written: hello is one stroke, thanks is two (the word, then the cross on the t) and hi there is four (hi, the dot, there, the cross).
+- Pen speed: Slow · **Normal** · Fast. How far the pen travels in a second: slow is 200 units, normal 400 and fast 800, where a small letter is 28 units tall; a word takes about 1 to 5 seconds.
+- Ink color: **Blue** · Black · Red · Green. The color of the ink, and of the pen.
+- Pen size: Fine · **Medium** · Bold. How wide the line is: fine is 1.1 units, medium 1.8 and bold 2.8.
+- Shows the pen: **on** · off. A small pen rides on the tip of the line and lifts between strokes.
## Text Particles
@@ -477,14 +405,10 @@ A word of dots scatters from your pointer and springs back. Best for intros.
Add a text particle effect to [the word or short title you want to animate]. Sample the word's pixels from a hidden canvas on an even grid, placing a dot wherever a letter covers it. Push the dots near the pointer away, so they glow as they fly, and tie each to its home with a spring, so it flies back with a slight wobble once the pointer moves on. Run one frame loop that moves by elapsed time, stop it once every dot is home, and draw fewer dots on phones. On touch screens, a dragged finger pushes the dots the same way. With reduced motion turned on, keep the dots still and only light up those near the pointer. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Dot size: Small · **Medium** · Large
-- How far they scatter: Short · **Medium** · Far
-- Colors: **Sunset** · Cool · Rainbow · White
-- How fast they come back: Slow · **Normal** · Fast
-- Your text: text field, starts as "HELLO"
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Dot size: Medium, How far they scatter: Medium, Colors: Sunset, How fast they come back: Normal, Your text: "HELLO".
+- Dot size: Small · **Medium** · Large. How far apart the dots sit: small is 3 px, medium 4.2 and large 6, scaled with the word between 0.75 and 1.25 times; each dot is narrower than that step, so neighbors never touch. The dots are counted at the small size: past 2,000 on a phone or 6,000 on a larger screen, every size is spread out by the same factor, so the three stay apart.
+- How far they scatter: Short · **Medium** · Far. The pointer's reach: short is 0.28 of the font size, medium 0.42 and far 0.65, counting the font as at least 120 px; a still pointer opens a gap whose radius is about 0.7 of the reach.
+- Colors: **Sunset** · Cool · Rainbow · White. The colors across the word, in 32 steps: Sunset runs from pink to gold, Cool from teal to purple, Rainbow through seven colors and White from white to pale gray; the glow behind the word matches.
+- How fast they come back: Slow · **Normal** · Fast. The spring and the share of its speed a dot keeps each step: slow is 0.022 and 0.87, normal 0.045 and 0.82, fast 0.09 and 0.76. A dot pushed 100 px away is home in about 1.4, 1 or 0.8 seconds, after swinging about a sixth of the way past it.
+- Your text: text field, starts as "HELLO". The word, up to 10 letters, drawn as large as fits 86% of the stage's width and 42% of its height; an emptied field goes back to HELLO.
diff --git a/skills/animation-handbook/references/06-3d-advanced.md b/skills/animation-handbook/references/06-3d-advanced.md
index bf4445e9..0fc9f480 100644
--- a/skills/animation-handbook/references/06-3d-advanced.md
+++ b/skills/animation-handbook/references/06-3d-advanced.md
@@ -1,6 +1,6 @@
# 06 · 3D & Advanced
-WebGL, shaders, particles, 3D transforms, simulations, and other heavier effects. 26 animations from Animation Handbook, in the home page's order. Each entry gives the live demo, how it runs, what it is good for and what to avoid it on, the prompt from its page word for word, and its settings.
+WebGL, shaders, particles, 3D transforms, simulations, and other heavier effects. 26 animations from Animation Handbook, in the home page's order. Each entry gives the live demo, how it runs, what it is good for and what to avoid it on, the prompt from its page word for word, and its settings with what each does and the demo's values.
## Contents
@@ -44,19 +44,15 @@ A lit 3D shape spins, or turns to face your pointer. Best for product views.
Add a spinning 3D object to [the product or shape you want to show]. Draw it with WebGL: store the shape as triangles and light every point with a soft base light, a direct light and a shiny highlight, so it reads as solid. Turn it around its own axis so every side comes into view, or let it turn to face the pointer, which a tap or a sideways drag should also do on touch screens. Change its size by moving the camera closer or further, not by changing the lens. If the visitor has reduced motion turned on, show the object still. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Shape: **Cube** · Sphere · Ring · Pyramid
-- Movement: **Spins** · Follows the pointer
-- Speed: Slow · **Normal** · Fast
-- Tumbles as it spins: **on** · off
-- Distance: Close · **Medium** · Far
-- Color: Pink · White · **Blue** · Purple · Green · Orange
-- Edges only: on · **off**
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Shape: Cube, Movement: Spins, Speed: Normal, Tumbles as it spins: on, Distance: Medium, Color: Blue, Edges only: off.
+- Shape: **Cube** · Sphere · Ring · Pyramid. The object that is drawn: a cube, a sphere, a ring or a four-sided pyramid.
+- Movement: **Spins** · Follows the pointer. Spins turns it by itself; Follows the pointer turns it to face your pointer or finger.
+- Speed: Slow · **Normal** · Fast. How fast it spins: slow is about 17°, normal 27° and fast 45° a second, on any screen.
+- Tumbles as it spins: **on** · off. Also rolls it forward, at a speed that rises and falls, so the top and bottom come into view.
+- Distance: Close · **Medium** · Far. How far away the camera is: close looks bigger, far looks smaller; the lens stays the same.
+- Color: Pink · White · **Blue** · Purple · Green · Orange. The object's color; the lighting adds the shading and the highlight.
+- Edges only: on · **off**. Draws the edges of the triangles the shape is made of, instead of its lit surface.
## Scroll-Driven 3D Rotation
@@ -71,14 +67,10 @@ Scrolling turns a 3D cube from pose to pose. Best for product tours.
Add a scroll-driven 3D rotation to [the product or object you want to show]. Pin the object in view while the visitor scrolls through a tall section, and turn the scroll position, from the top of the section to its end, into a series of poses: turned to one side, tilted forward, larger, then turned round to show its back. Blend smoothly between neighboring poses so scrolling back plays it in reverse, and when the settings include it, let the object glide to catch up instead of jumping with the scroll. If the visitor has reduced motion turned on, follow the scroll exactly, with no gliding. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Turn amount: Less · **Normal** · More
-- Smooth follow: **on** · off
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Turn amount: Normal, Smooth follow: on.
+- Turn amount: Less · **Normal** · More. How far every pose turns the cube: less is 0.6, normal 1 and more 1.6 times the planned angles; at normal the last pose shows the cube's back.
+- Smooth follow: **on** · off. The cube closes a tenth of the gap to its pose for every sixtieth of a second, so it glides after the scroll and catches up in the same time on every screen; off, it follows the scroll exactly.
## Parallax 3D Tilt
@@ -93,18 +85,14 @@ A card tilts toward your pointer, and a light slides over it. Best for cards.
Add a 3D tilt to [the card you want to bring to life]. As the pointer moves over the card, rotate the card slightly around its horizontal and vertical axes according to where the pointer is, and give its container a 3D perspective so the tilt has depth. When the settings include it, move a soft light across the card with the pointer, as if it catches the light. On touch screens, dragging a finger across the card should tilt it the same way. When the pointer leaves, let the card settle back flat. If the visitor has reduced motion turned on, keep the card flat. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Tilt amount: Small · **Medium** · Large
-- 3D depth: Subtle · **Medium** · Strong
-- Shine: **on** · off
-- Return speed: Slow · **Normal** · Fast
-- Tilts away from the pointer: on · **off**
-- Grows a little: **on** · off
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Tilt amount: Medium, 3D depth: Medium, Shine: on, Return speed: Normal, Tilts away from the pointer: off, Grows a little: on.
+- Tilt amount: Small · **Medium** · Large. How far the card leans at its edges: small is 4°, medium 7.5° and large 12.5°; much more starts to feel unsteady.
+- 3D depth: Subtle · **Medium** · Strong. How close the viewer seems: subtle is 1500px, medium 1000px and strong 500px; closer makes the lean more dramatic.
+- Shine: **on** · off. A soft light follows the pointer across the card, like light catching a real card.
+- Return speed: Slow · **Normal** · Fast. How long the card takes to settle flat when the pointer leaves: slow is 650ms, normal 400ms and fast 250ms.
+- Tilts away from the pointer: on · **off**. Leans the card away from the pointer instead, as if you were pressing on it.
+- Grows a little: **on** · off. Scales the card up by 4% while it tilts, which reads as lifting it toward you.
## Canvas Particle Effect
@@ -119,18 +107,14 @@ Dots drift, link up when close, and dodge your pointer. Best for tech sites.
Add a particle background to [the section you want it behind]. Draw small dots on a canvas, give each its own direction, and bounce them off the edges. When the settings include lines, join any two dots that come close with a thin line that fades as they move apart, so a network keeps forming and breaking. Dots near the pointer, or a finger on touch screens, can be pushed away or pulled in. Checking every pair of dots gets slow quickly, so draw far fewer dots on phones and tablets, and stroke the lines in a few batches rather than one at a time. If the visitor has reduced motion turned on, show the dots still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Pointer effect: **Push** · Pull · None
-- Number of particles: Few · **Medium** · Many
-- Link distance: None · Short · **Medium** · Long
-- Speed: Slow · **Normal** · Fast
-- Color: Pink · White · **Blue** · Purple · Green · Orange
-- Trails: on · **off**
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Pointer effect: Push, Number of particles: Medium, Link distance: Medium, Speed: Normal, Color: Blue, Trails: off.
+- Pointer effect: **Push** · Pull · None. What the pointer or a finger does to dots within 120px: pushes them away, pulls them in, or nothing.
+- Number of particles: Few · **Medium** · Many. Few is 250, medium 500 and many 800 dots on computers; tablets draw 60, 90 and 120, and phones 30, 45 and 60, which keeps them smooth.
+- Link distance: None · Short · **Medium** · Long. How close two dots must be to join with a line: short is 70px, medium 100px and long 150px; none draws no lines.
+- Speed: Slow · **Normal** · Fast. How fast the dots drift: slow is 0.5, normal 0.8 and fast 1.3 (the fastest dots' pixels for every sixtieth of a second, on any screen); slow feels calm, fast looks busy.
+- Color: Pink · White · **Blue** · Purple · Green · Orange. The color of the dots and lines.
+- Trails: on · **off**. Each dot leaves a fading streak, because the canvas is only partly cleared between frames.
## Fluid / Liquid Simulation
@@ -145,19 +129,15 @@ Blobs drift and melt into each other like liquid. Best for hero backgrounds.
Add liquid blobs to [the section you want them in]. In a WebGL fragment shader, work out for every pixel its distance to each of a few moving circles, and blend those distances with a smooth minimum so circles that come close melt into one shape with soft necks between them, like drops of mercury. Move the circles on looping paths so they keep merging and separating; one can follow the pointer or a finger. Every pixel is checked against every circle, so draw fewer pixels on phones. If the visitor has reduced motion turned on, show the blobs still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Melting: A little · **Medium** · A lot
-- Number of blobs: Few · **Medium** · Many
-- Speed: Slow · **Normal** · Fast
-- Blob size: Small · **Medium** · Large
-- Color: Pink · White · **Blue** · Purple · Green · Orange
-- Glow: **on** · off
-- One blob follows the pointer: **on** · off
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Melting: Medium, Number of blobs: Medium, Speed: Normal, Blob size: Medium, Color: Blue, Glow: on, One blob follows the pointer: on.
+- Melting: A little · **Medium** · A lot. How far apart two blobs start to melt together: a little is 0.03, medium 0.08 and a lot 0.15 of the stage height; a lot gives thick, soft necks.
+- Number of blobs: Few · **Medium** · Many. Few is 3, medium 5 and many 8 blobs; each one adds work for every pixel.
+- Speed: Slow · **Normal** · Fast. How fast the blobs move on their paths: slow is 0.5, normal 0.8 and fast 1.3.
+- Blob size: Small · **Medium** · Large. Each blob's radius: small is 9%, medium 14% and large 20% of the stage height.
+- Color: Pink · White · **Blue** · Purple · Green · Orange. The color of the liquid.
+- Glow: **on** · off. Adds a soft halo that fades out around the liquid.
+- One blob follows the pointer: **on** · off. One blob leaves its path and sits under the pointer or a finger.
## Glassmorphism Animated
@@ -172,18 +152,14 @@ Frosted glass cards blur the colors behind them. Best for cards and panels.
Add frosted glass to [the cards or panels you want to style]. Give each card a see-through tinted background, blur whatever sits behind it, and add a thin light edge. Put colorful shapes that drift slowly behind the cards, with a faint pattern of dots over them, because glass over plain color looks gray and shows no frost. Put a see-through dark layer inside each card under its text so the words stay readable. A card can also breathe, its blur growing and fading, or slowly change its tint. Blurring costs a lot, so keep the glass to small cards and blur the shapes less on phones. If the visitor has reduced motion turned on, keep everything still. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Frost: Off · Light · **Medium** · Heavy
-- Tint strength: Faint · **Medium** · Strong
-- Speed: Slow · **Normal** · Fast
-- Tint color: Pink · White · **Blue** · Purple · Green · Orange
-- Breathing frost: **on** · off
-- Shifting tint: **on** · off
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Frost: Medium, Tint strength: Medium, Speed: Normal, Tint color: Blue, Breathing frost: on, Shifting tint: on.
+- Frost: Off · Light · **Medium** · Heavy. How strongly the glass blurs what is behind it: light is 6px, medium 12px and heavy 20px; off shows the cards with no blur, to compare.
+- Tint strength: Faint · **Medium** · Strong. How much color the glass adds: faint is 6%, medium 12% and strong 25%.
+- Speed: Slow · **Normal** · Fast. How long the colors behind take to drift through one path: slow is 13s, normal 8s and fast 5s.
+- Tint color: Pink · White · **Blue** · Purple · Green · Orange. The color of the glass.
+- Breathing frost: **on** · off. The middle card's blur grows from 8px to 20px and back every 4 seconds.
+- Shifting tint: **on** · off. The right card's tint moves through blue, green, purple and orange every 8 seconds.
## WebGL Shader Animation
@@ -198,15 +174,11 @@ Moving color patterns computed for every pixel. Best for bold backgrounds.
Add a moving shader pattern to [the background or section you want it in]. Cover the area with one WebGL surface and write a fragment shader that works out the color of every pixel from its position and the time, so the whole pattern moves as the time runs on: flowing plasma, rippling waves, cells or a kaleidoscope. When the settings include it, let the pointer, or a finger on touch screens, bend the pattern near it. Draw fewer pixels on phones, and show a clear message where WebGL is not available. If the visitor has reduced motion turned on, show one still frame. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Pattern: **Plasma** · Waves · Cells · Kaleidoscope
-- Speed: Slow · **Normal** · Fast
-- Reacts to the pointer: on · **off**
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Pattern: Plasma, Speed: Normal, Reacts to the pointer: off.
+- Pattern: **Plasma** · Waves · Cells · Kaleidoscope. 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: Slow · **Normal** · Fast. How fast time runs in the pattern: slow is 0.6, normal 1 and fast 1.6 times.
+- Reacts to the pointer: on · **off**. Each pattern bends around the pointer or a finger in its own way; in Kaleidoscope the pointer sets the number of slices.
## Noise-Based Motion
@@ -221,18 +193,14 @@ Smooth noise makes dots sway and a blob ripple. Best for calm backgrounds.
Add noise-based motion to [the background or shape you want to bring to life]. Use smooth noise, a random value that changes gradually from place to place, instead of plain random numbers, which jump. For a field of dots, turn the noise at each dot into a direction and nudge the dot that way, then move through the noise over time so the whole field sways like grass in the wind. For a blob, push each point of its outline in or out by the noise so the edge ripples. Space the dots by distance, not by count, so phones draw fewer. If the visitor has reduced motion turned on, keep everything still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Shape: **Field of dots** · Blob
-- Pattern size: Large · **Medium** · Small
-- Speed: Slow · **Normal** · Fast
-- Wobble: Small · **Medium** · Large
-- Space between dots: Wide · **Medium** · Tight
-- Color: Pink · White · **Blue** · Purple · Green · Orange
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Shape: Field of dots, Pattern size: Medium, Speed: Normal, Wobble: Medium, Space between dots: Medium, Color: Blue.
+- Shape: **Field of dots** · Blob. A field of dots that sway, or one blob whose outline ripples.
+- Pattern size: Large · **Medium** · Small. How big the noise's patterns are: large moves big areas together, small looks busy and fine.
+- Speed: Slow · **Normal** · Fast. How fast the noise moves along: slow is 0.3, normal 0.5 and fast 0.8. Every sixtieth of a second the noise moves on by 0.01 times this, so the speed is the same on every screen.
+- Wobble: Small · **Medium** · Large. How far each dot, or the blob's edge, moves: small is 6px, medium 12px and large 20px.
+- Space between dots: Wide · **Medium** · Tight. The distance between dots in the field: wide is 64px, medium 48px and tight 32px; smaller stages draw fewer dots.
+- Color: Pink · White · **Blue** · Purple · Green · Orange. The color of the dots or the blob.
## SVG Path Animation
@@ -247,19 +215,15 @@ A line drawing draws itself, stroke by stroke. Best for icons and logos.
Add a self-drawing line to [your icon, logo or signature, drawn as SVG lines]. Measure the length of each line, hide it behind a dash exactly as long as the line, then slide the dash away so the line appears from one end to the other, as if drawn by hand. Draw several lines one after another, each starting a little after the one before. When the settings include it, fill the shapes once the lines are done. The finished drawing should be there for screen readers from the start. If the visitor has reduced motion turned on, show the drawing complete. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Drawing: **Icon** · Signature · Logo
-- Speed: Slow · **Normal** · Fast
-- Line thickness: Thin · **Medium** · Thick
-- Feel: **Smooth** · Gentle · Even
-- Line color: Pink · White · **Blue** · Purple · Green · Orange
-- Starts from the other end: on · **off**
-- Fills in at the end: on · **off**
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Drawing: Icon, Speed: Normal, Line thickness: Medium, Feel: Smooth, Line color: Blue, Starts from the other end: off, Fills in at the end: off.
+- Drawing: **Icon** · Signature · Logo. What is drawn: a house with a star, a flowing signature, or a circle logo.
+- Speed: Slow · **Normal** · Fast. How long each line takes to draw: slow is 2400ms, normal 1500ms and fast 900ms; each next line starts after 30% of that.
+- Line thickness: Thin · **Medium** · Thick. Thin is 1px, medium 2px and thick 4px; thin looks precise, thick looks bold.
+- Feel: **Smooth** · Gentle · Even. Smooth slows at the end, like a hand finishing a stroke; Gentle eases in and out; Even keeps one pace.
+- Line color: Pink · White · **Blue** · Purple · Green · Orange. The color of the lines, and of the fill.
+- Starts from the other end: on · **off**. Draws each line from its end back to its start.
+- Fills in at the end: on · **off**. Fills the shapes with a light tint of the line color once the lines are drawn.
## Chromatic Aberration
@@ -274,17 +238,13 @@ A word splits into red, green and blue fringes. Best for bold titles.
Add a chromatic aberration effect to [your headline or short word]. Stack three copies of the text in pure red, green and blue, blend them so that where they overlap they add up to white, and shift the red and blue copies in opposite directions so colored fringes appear at the letters' edges, like a cheap camera lens. The split can breathe in and out, or jump now and then like a glitch. It only works on a dark background. Screen readers should read the text once, not three times. If the visitor has reduced motion turned on, keep the copies still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Movement: **Pulse** · Glitch · None
-- Color split: Small · **Medium** · Large
-- Direction: Sideways · **Slanted** · Up and down
-- Soft color edges: on · **off**
-- Your text: text field, starts as "PRISM"
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Movement: Pulse, Color split: Medium, Direction: Slanted, Soft color edges: off, Your text: "PRISM".
+- Movement: **Pulse** · Glitch · None. Pulse widens and narrows the split every 2 seconds; Glitch jumps it briefly every 4 seconds; None keeps it still.
+- Color split: Small · **Medium** · Large. 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: Sideways · **Slanted** · Up and down. Sideways splits the colors left and right; Slanted splits them at 30°; Up and down splits them vertically.
+- Soft color edges: on · **off**. Blurs the red and blue copies by 2px, which looks more like a lens than a digital shift.
+- Your text: text field, starts as "PRISM". The word that splits.
## 2.5D / Pseudo-3D
@@ -299,14 +259,10 @@ Flat layers slide by different amounts, faking depth. Best for hero scenes.
Add a 2.5D parallax scene to [the illustration or hero you want to give depth]. Split the picture into flat layers, from a far sky to the near ground, and when the pointer moves, shift every layer the opposite way by an amount that grows with how near it is: the sky barely moves and the ground moves the most, so the flat picture seems deep. Make each layer a little wider than the frame so no edge shows. On touch screens, dragging a finger should move the scene the same way. If the visitor has reduced motion turned on, keep the layers still. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Camera movement: Small · **Medium** · Large
-- Layer labels: on · **off**
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Camera movement: Medium, Layer labels: off.
+- Camera movement: Small · **Medium** · Large. How far the nearest layer travels as the pointer crosses the scene from one side to the other: small is 20px, medium 40px and large 70px (half that each way from the middle); the farthest layer moves 5% of that.
+- Layer labels: on · **off**. Labels each layer with the share of the camera movement it follows, from 5% for the sky to 100% for the ground.
## Ray Marching / SDF Scene
@@ -321,18 +277,14 @@ A 3D scene drawn only from formulas, circled by a camera. Best for art pages.
Add a ray-marched 3D scene to [the section you want it in]. Draw the whole scene in a fragment shader, with no 3D models: describe each shape as a formula that gives the distance to its surface, then for every pixel step a ray forward by that distance until it touches a surface, and light that point. Formulas let shapes melt together, be carved out of each other or repeat without end, while a camera circles them. Every pixel does a lot of work, so draw fewer pixels and take fewer steps on phones. If the visitor has reduced motion turned on, show one still frame. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Scene: **Blend** · Cut-out · Endless
-- Camera speed: Slow · **Normal** · Fast
-- Soft shadows: on · **off**
-- Corner shading: **on** · off
-- Detail: Low · **Medium** · High
-- Step count view: on · **off**
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Scene: Blend, Camera speed: Normal, Soft shadows: off, Corner shading: on, Detail: Medium, Step count view: off.
+- Scene: **Blend** · Cut-out · Endless. Blend melts a sphere, a box and a ring together; Cut-out carves a box out of a sphere, with a small ball inside; Endless repeats a carved box across the floor without end.
+- Camera speed: Slow · **Normal** · Fast. How fast the camera circles the shapes: once in about 18 seconds at slow, 10 at normal and 6 at fast.
+- Soft shadows: on · **off**. Casts a second ray toward the light from every surface point, for soft shadows; the most costly option.
+- Corner shading: **on** · off. Darkens creases and corners where surfaces meet, by testing a few points just above each surface.
+- Detail: Low · **Medium** · High. The most steps a ray may take: low is 24, medium 48 and high 96; phones take two thirds as many.
+- Step count view: on · **off**. Colors each pixel by how many steps its ray took: edges and near misses take the most.
## GPGPU Particle System
@@ -347,17 +299,13 @@ Tens of thousands of particles flow on the graphics chip. Best for hero effects.
Add a GPU particle system to [the section you want it in]. Keep every particle's position and speed in a floating-point texture, one pixel per particle, and move them all at once in a shader that reads one texture and writes the other, swapping them after each pass, one pass per 60th of a second so it runs at the same speed on every screen. Then draw each particle as a tiny point, following a flowing field, a swirl, a pull to the middle or an orbit. That keeps tens of thousands of particles smooth. Start with far fewer on phones, and show a clear message where WebGL 2 is missing. If the visitor has reduced motion turned on, show one still frame. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Movement: **Flow** · Swirl · Attract · Orbit
-- Number of particles: 16,000 · **65,000** · 100,000 (phones start with 16,000)
-- Speed: Slow · **Normal** · Fast
-- Color: **One color** · By speed · Shifting
-- Trails: on · **off**
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Movement: Flow, Number of particles: 65,000, Speed: Normal, Color: One color, Trails: off.
+- Movement: **Flow** · Swirl · Attract · Orbit. Flow follows a shifting field of currents; Swirl circles the middle; Attract pulls everything toward the middle; Orbit sweeps the particles round in rings.
+- Number of particles: 16,000 · **65,000** · 100,000 (phones start with 16,000). 16,000, 65,000 or 100,000 particles, one pixel each of a texture 128, 256 or 320 pixels square; phones start with 16,000.
+- Speed: Slow · **Normal** · Fast. How hard the rule pushes for every sixtieth of a second: slow is 0.35, normal 0.6 and fast 1.
+- Color: **One color** · By speed · Shifting. One blue, a color from each particle's speed, or colors that slowly shift.
+- Trails: on · **off**. Fades the last picture instead of clearing it, so each particle leaves a streak.
## Image Distortion on Hover
@@ -372,17 +320,13 @@ The picture ripples and bends around your pointer. Best for portfolio images.
Add a hover distortion to [the image you want to react]. Draw the image with a WebGL shader and, in a circle around the pointer, read each pixel from a slightly shifted spot, so the picture seems to ripple, bulge, swirl like liquid or break into squares there while the image itself never changes. The bending fades out smoothly after the pointer leaves. On touch screens, dragging a finger across the image should do the same. If the visitor has reduced motion turned on, keep the image still. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Effect: **Ripple** · Push · Liquid · Pixels
-- Strength: Gentle · **Medium** · Strong
-- Size: Small · **Medium** · Large
-- Fade-out speed: Slow · **Normal** · Fast
-- Moving ripples: **on** · off
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Effect: Ripple, Strength: Medium, Size: Medium, Fade-out speed: Normal, Moving ripples: on.
+- Effect: **Ripple** · Push · Liquid · Pixels. Ripple sends rings out from the pointer; Push bulges the picture outward; Liquid swirls it; Pixels breaks it into squares.
+- Strength: Gentle · **Medium** · Strong. How far the picture bends: gentle is 4, medium 8 and strong 14; stronger looks more dramatic but harder to read.
+- Size: Small · **Medium** · Large. How wide an area bends: small is 15%, medium 25% and large 40% of the picture's height.
+- Fade-out speed: Slow · **Normal** · Fast. How fast the bending fades after the pointer leaves: each second it loses about three fifths of its strength at slow, about four fifths at normal and nine tenths at fast.
+- Moving ripples: **on** · off. With Ripple, the rings keep moving outward while the pointer rests; off, they stand still.
## Cloth / Soft-Body Simulation
@@ -397,18 +341,14 @@ A cloth sways in the wind, and you can drag it around. Best for playful pages.
Add a cloth simulation to [the flag, banner or fabric you want to show]. Model the cloth as a grid of points joined to their neighbors by links of fixed length. In fixed 1/60 s steps, as many as the time since the last frame needs, move every point by its own momentum plus gravity and wind, then pull linked points back toward their proper distance a few times over, so the cloth moves at the same speed on every screen. Pin some points so the cloth hangs, and let the visitor grab and drag the nearest point with the pointer or a finger. Use a coarser grid on phones. If the visitor has reduced motion turned on, show the cloth hanging still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Hangs from: **Two corners** · Top edge · One corner · Nothing
-- Wind: Light · **Medium** · Strong
-- Stiffness: Stretchy · **Medium** · Stiff
-- Gravity: Light · **Normal** · Heavy
-- Detail: Low · **Medium** · High (phones start with Low)
-- Shows the points: on · **off**
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Hangs from: Two corners, Wind: Medium, Stiffness: Medium, Gravity: Normal, Detail: Medium, Shows the points: off.
+- Hangs from: **Two corners** · Top edge · One corner · Nothing. Pins the top two corners, the whole top edge, one corner, or nothing, in which case the cloth falls to the floor.
+- Wind: Light · **Medium** · Strong. How hard the wind blows; it rises and falls on its own: light is 0.2, medium 0.5 and strong 1.2.
+- Stiffness: Stretchy · **Medium** · Stiff. How many times each step, sixty a second, the links are pulled back to length: stretchy is 2, medium 4 and stiff 8.
+- Gravity: Light · **Normal** · Heavy. How heavy the cloth is: light is 0.06, normal 0.12 and heavy 0.2.
+- Detail: Low · **Medium** · High (phones start with Low). How many points the cloth has: low is 16 × 12, medium 24 × 18 and high 40 × 30; phones start at low.
+- Shows the points: on · **off**. Marks every point of the grid, with the pinned ones in red.
## Volumetric Smoke / 3D Noise
@@ -423,18 +363,14 @@ Soft smoke curls upward, drawn as a real 3D cloud. Best for moody backgrounds.
Add volumetric smoke to [the section you want it in]. In a fragment shader, send a ray through a 3D cloud of smooth noise for every pixel and add up how much smoke it passes through, shading each step by how much smoke lies between it and the light, so the plume looks soft, deep and lit from one side. Move the noise upward over time so the smoke rises and curls, and let it drift sideways when the settings include wind. It is costly, so draw fewer pixels and take fewer steps on phones. If the visitor has reduced motion turned on, show the smoke still. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Thickness: Thin · **Medium** · Thick
-- Speed: Slow · **Normal** · Fast
-- Detail: Low · **Medium** · High
-- Smoke color: **Gray blue** · White · Purple · Orange
-- Wind: **on** · off
-- Fine grain: **on** · off
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Thickness: Medium, Speed: Normal, Detail: Medium, Smoke color: Gray blue, Wind: on, Fine grain: on.
+- Thickness: Thin · **Medium** · Thick. How dense the smoke is: thin is 0.4, medium 0.7 and thick 1.2; thin looks wispy, thick hides what is behind.
+- Speed: Slow · **Normal** · Fast. How fast the smoke rises: slow is 0.35, normal 0.6 and fast 1.
+- Detail: Low · **Medium** · High. 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** · White · Purple · Orange. The color of the lit smoke; the shadowed parts are darker shades of it.
+- Wind: **on** · off. The whole plume drifts slowly to one side.
+- Fine grain: **on** · off. Starts each ray at a slightly random point, which turns the stripes that few steps leave into fine grain.
## Morphing Blob
@@ -449,15 +385,11 @@ Blobs melt together, and one drop chases your pointer. Best for hero sections.
Add a gooey blob to [the section you want it in]. Draw several plain circles that drift on looping paths, and run them through a filter that blurs them and then sharpens the blurred edge again, so circles that come close melt into one liquid shape and pull apart again. One drop follows the pointer, or a finger on touch screens, and merges with the rest when it comes near. Keep the blurred area small on phones. If the visitor has reduced motion turned on, show the blob still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Gooeyness: Low · **Medium** · High
-- Number of blobs: Few · **Medium** · Many
-- Speed: Slow · **Normal** · Fast
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Gooeyness: Medium, Number of blobs: Medium, Speed: Normal.
+- Gooeyness: Low · **Medium** · High. How much the circles are blurred before the edge is sharpened again: low is 6, medium 10 and high 16; higher melts circles from farther apart.
+- Number of blobs: Few · **Medium** · Many. Few is 4, medium 6 and many 9 circles, counting the drop that follows the pointer.
+- Speed: Slow · **Normal** · Fast. How fast the circles drift: slow is 0.6, normal 1 and fast 1.6 times.
## 3D Flip Card
@@ -472,17 +404,13 @@ A card turns over in 3D to show its back. Best for profile and product cards.
Add a 3D flip to [the card you want to turn over]. Place the front and back faces in the same spot, turn the back face around so it faces away, and hide whichever face points away from the viewer. Clicking, tapping or pressing Enter turns the card over in 3D to show its back, and again to show its front. Give the card's container a 3D perspective so the turn has depth. When the settings include it, pointing at the card can flip it too, and the card can lean toward a hovering pointer. If the visitor has reduced motion turned on, swap the faces with a quick fade instead of turning. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Flip direction: **Sideways** · Up and over
-- Speed: Slow · **Normal** · Fast
-- 3D depth: Subtle · **Medium** · Strong
-- Flips on hover: on · **off**
-- Tilt toward the pointer: Off · **Gentle** · Strong
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Flip direction: Sideways, Speed: Normal, 3D depth: Medium, Flips on hover: off, Tilt toward the pointer: Gentle.
+- Flip direction: **Sideways** · Up and over. Sideways turns the card like a page; up and over turns it like a flap.
+- Speed: Slow · **Normal** · Fast. How long one turn takes: slow is 1000ms, normal 650ms and fast 400ms; 600 to 900ms feels physical.
+- 3D depth: Subtle · **Medium** · Strong. How close the viewer seems: subtle is 2000px, medium 1200px and strong 600px; closer exaggerates the turn.
+- Flips on hover: on · **off**. Pointing at the card turns it over and leaving turns it back; a tap still turns it on touch screens.
+- Tilt toward the pointer: Off · **Gentle** · Strong. While idle, the card leans toward a hovering pointer, up to 5° (gentle) or 9° (strong) at the stage's edges; off keeps it flat.
## 3D Carousel
@@ -497,15 +425,11 @@ Cards stand in a ring that spins in 3D as you drag it. Best for image galleries.
Add a 3D carousel to [the cards or pictures you want to show]. Stand the cards in a ring: turn each one by an equal share of a full circle, push it out from the middle by the same distance, and give the container a 3D perspective. Dragging sideways turns the whole ring with the pointer or finger; on release it keeps a little speed, then settles with the nearest card facing front. Previous and next buttons and the arrow keys turn it one card at a time. Change only the ring's rotation so it stays smooth. When the settings include it, the ring turns slowly by itself. If the visitor has reduced motion turned on, jump from card to card without turning. Match the settings listed below.
-**Settings** (the defaults in bold):
+**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 cards: 6 · **8** · 12
-- Seen from above: **on** · off
-- Spins by itself: on · **off**
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Number of cards: 8, Seen from above: on, Spins by itself: off.
+- Number of cards: 6 · **8** · 12. How many cards stand in the ring: 6, 8 or 12. More cards make a wider ring, so each card is drawn smaller to fit the box.
+- Seen from above: **on** · off. Tilts the ring back 14 degrees, so the cards behind show above the front ones; off shows the ring straight on.
+- Spins by itself: on · **off**. The ring turns 12 degrees a second, waits while you drag and starts again a moment after it settles; under reduced motion it steps one card every three seconds instead.
## Depth-Map Photo
@@ -520,14 +444,10 @@ A flat photo turns 3D as you point: near parts shift more. Best for hero images.
Add a depth effect to [the photo you want to bring to life]. Make a grayscale depth map the same size as the photo, white for near parts and black for far ones, and blur it slightly. Draw the photo with a WebGL shader that reads each pixel from a spot shifted by the pointer's position times that pixel's depth, so near parts move more than far ones and the flat photo looks three-dimensional. Zoom in a little so the edges never show, and let the view glide toward the pointer and back to the middle when it leaves. On touch screens, dragging a finger should do the same. If the visitor has reduced motion turned on, keep the photo still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Depth strength: Subtle · **Medium** · Strong
-- Shows the depth map: on · **off**
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Depth strength: Medium, Shows the depth map: off.
+- Depth strength: Subtle · **Medium** · Strong. How far the nearest part slides against the farthest when the pointer reaches the edge of the picture: subtle is 2%, medium 3.5% and strong 5% of the picture's width; up and down move about a third as far, which keeps the stretched strips small.
+- Shows the depth map: on · **off**. Draws the gray depth map in place of the picture, moving the same way: white is near and black is far.
## Flocking
@@ -542,17 +462,13 @@ Birds swirl and turn together as one flock. Best for calm backgrounds.
Add a flock of birds to [the section you want it behind]. Draw each bird as a small arrowhead on a canvas, pointing the way it flies. Each bird sees only the birds near it and follows three rules: keep a little room from the closest ones, turn the way its neighbors fly, and drift toward their middle, so the flock swirls and turns as one. Turn birds back before they reach the edges, and move them by the time since the last frame so the speed is the same on every screen. Use fewer birds on phones. When the settings include it, birds swerve away from the pointer or a finger. If the visitor has reduced motion turned on, show the flock still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Flock size: Small · **Medium** · Large
-- How close they fly: Loose · **Normal** · Tight
-- Flees the pointer: **on** · off
-- Speed: Slow · **Normal** · Fast
-- Shows one bird's view: on · **off**
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Flock size: Medium, How close they fly: Normal, Flees the pointer: on, Speed: Normal, Shows one bird's view: off.
+- Flock size: Small · **Medium** · Large. How many birds fly: small is 70, medium 150 and large 280; phones fly 35, 70 and 130.
+- How close they fly: Loose · **Normal** · Tight. The room each bird keeps around it and how hard it follows its neighbors: loose keeps 32px and follows gently, normal keeps 22px, tight keeps 15px and follows hard.
+- Flees the pointer: **on** · off. Birds within 90px of the pointer or a finger steer straight away from it.
+- Speed: Slow · **Normal** · Fast. The top speed, in pixels per 60th of a second: slow is 1.3, normal 2 and fast 3; no bird flies slower than 55% of it.
+- Shows one bird's view: on · **off**. Rings one bird with the 50px radius it looks within and the dashed room it keeps, and links it to every neighbor it follows.
## ASCII / Halftone
@@ -567,17 +483,13 @@ A moving picture is redrawn with letters or dots. Best for retro and tech looks.
Add an ASCII and halftone effect to [the picture or video you want to restyle]. Each frame, draw the picture onto a small hidden canvas with one pixel for every cell of a grid, and read back each pixel's brightness. On the visible canvas, draw a character in every cell, choosing characters with more ink for brighter cells, or draw a dot whose size grows with the brightness, like a printed photo. Color the marks with the picture's own colors or with one color. Copy the characters from a ready-made sheet instead of drawing each character separately every frame, so it stays smooth, and use bigger cells on phones. If the visitor has reduced motion turned on, show one still frame. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Drawn with: **Letters** · Dots
-- Cell size: Small · **Medium** · Large
-- Colors: **One color** · Full color
-- Shows the original picture: on · **off**
-- Light paper: on · **off**
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Drawn with: Letters, Cell size: Medium, Colors: One color, Shows the original picture: off, Light paper: off.
+- Drawn with: **Letters** · Dots. Letters gives each cell one of ten characters, from a space to a hash sign, by its brightness; dots gives it one of twelve dot sizes, from none to one that fills the cell.
+- Cell size: Small · **Medium** · Large. The height of a cell: small is 8px, medium 11px and large 16px, and phones use 10, 14 and 20px; letter cells are 0.7 as wide as they are tall, dot cells are square.
+- Colors: **One color** · Full color. One color paints every mark mint green, or near-black on paper; full color gives each mark the color of its spot in the picture.
+- Shows the original picture: on · **off**. Draws the moving picture at 40% under the marks, so you can see what each mark stands for.
+- Light paper: on · **off**. A light page with dark marks: each cell's darkness, not its brightness, picks the mark, as in a printed photo.
## 2D Physics
@@ -592,16 +504,12 @@ Balls drop where you click, bounce and pile up. Best for playful intros.
Add a box of bouncing balls to [the hero or empty area you want to liven up]. A click or tap drops a ball there; it falls, bounces off the walls and each other, and comes to rest in a pile. Dragging a ball with the pointer or a finger picks it up, and letting go throws it at the speed of the drag. Run the physics in fixed steps, as many as the time since the last frame needs, so it behaves the same on every screen, and stop drawing once everything is still. Fade out the oldest ball when there are too many. If the visitor has reduced motion turned on, show each new ball already resting where it would land. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Gravity: Moon · **Earth** · Heavy
-- Bounciness: Low · **Medium** · High
-- Ball sizes: **All the same** · Mixed
-- Shows the speed: on · **off**
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Gravity: Earth, Bounciness: Medium, Ball sizes: All the same, Shows the speed: off.
+- Gravity: Moon · **Earth** · Heavy. How hard the balls are pulled down. Earth adds the box's height divided by 1,000 to a ball's downward speed every 60th of a second, so a ball falls the whole box in about three quarters of a second; the Moon is a fifth of that and Heavy twice as much.
+- Bounciness: Low · **Medium** · High. The share of its closing speed a ball keeps after a hit: low is 0.2, medium 0.5 and high 0.8; a hit slower than 1 pixel per 60th of a second does not bounce.
+- Ball sizes: **All the same** · Mixed. One radius for every ball (5.5% of the box's shorter side, between 12 and 22 pixels), or a mix from 0.6 to 1.4 times it, heavier by area.
+- Shows the speed: on · **off**. An arrow on each moving ball, 6 pixels long for every pixel it moves in a 60th of a second, at most three radii.
## Liquid Glass
@@ -616,17 +524,13 @@ Drag a glass panel and the picture behind it bends at the edges. Best for cards.
Add a liquid glass panel to [the card or menu you want to float over a picture]. The panel shows what is behind it bent and magnified near its rounded edges, like thick curved glass, with a soft highlight along the rim. Bend it with an SVG displacement filter applied to what is behind the panel, which Chromium browsers support; other browsers get blurred, tinted glass with the same highlight. Dragging with the pointer or a finger moves it, and so do the arrow keys; it stretches a little as it moves and wobbles back when it stops. Use transforms only, so it stays smooth. If the visitor has reduced motion turned on, let it jump instead of gliding, with no stretch or wobble. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- How much it bends: Subtle · **Medium** · Strong
-- Frost: **Clear** · Light · Frosted
-- Tint: Pink · **White** · Blue · Purple · Green · Orange
-- Shape: **Card** · Pill · Circle
-- Shows the bend map: on · **off**
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: How much it bends: Medium, Frost: Clear, Tint: White, Shape: Card, Shows the bend map: off.
+- How much it bends: Subtle · **Medium** · Strong. The deepest shift, at the very edge, as a share of the rim's width: subtle 25%, medium 42% and strong 60%. Past half the rim folds into a thin mirrored band, as the edge of thick glass does.
+- Frost: **Clear** · Light · Frosted. How much the backdrop is blurred: clear none, light 1.5 and frosted 4 pixels where the glass bends; 3, 8 and 16 pixels for the frosted glass of other browsers.
+- Tint: Pink · **White** · Blue · Purple · Green · Orange. The color the glass adds, mixed in at 9% for white and 20% for the other colors.
+- Shape: **Card** · Pill · Circle. Card: 1.6 times as wide as tall, corners a third of its height; pill: 2.7 times as wide as tall with round ends; circle: a round lens. The card is 30% of the stage's width, from 150 to 280 pixels.
+- Shows the bend map: on · **off**. Lays the displacement map over the glass: red is the sideways shift, green the shift up or down, gray none.
## Holographic Card
@@ -641,16 +545,12 @@ A card tilts as you point, and its rainbow foil shimmers. Best for collectibles.
Add a holographic foil to [the card you want to make shine]. Build the card from stacked layers: its picture, a rainbow sheet blended over it to light up the colors beneath, a spot of glare when the settings include one, and on top the text on solid panels so it stays readable. As the pointer moves over the card, tilt the card toward it in 3D, slide the foil with the tilt and keep any glare under the pointer. Ease each change, and move layers only by position and transparency so it stays smooth. On touch screens, dragging a finger does the same. If the visitor has reduced motion turned on, keep the card flat and the foil still, and only brighten it. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Foil pattern: **Smooth** · Glitter · Lines
-- How far it tilts: Gentle · **Medium** · Strong
-- Glare: Off · **Soft** · Bright
-- Shows the layers: on · **off**
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Foil pattern: Smooth, How far it tilts: Medium, Glare: Soft, Shows the layers: off.
+- Foil pattern: **Smooth** · Glitter · Lines. Smooth shows the rainbow as soft bands; Glitter lets it through scattered dots and Lines through fine diagonal lines, like the sparkle and etched foils of real cards.
+- How far it tilts: Gentle · **Medium** · Strong. How far the card leans at its edges: gentle is 6°, medium 12° and strong 20°; much more and the text on the card gets hard to read mid-tilt.
+- Glare: Off · **Soft** · Bright. The spot of light under the pointer: off, soft (a little over half strength) or bright; a copy at a quarter of that strength lights the text panels.
+- Shows the layers: on · **off**. Turns the card to one side and spreads its four layers apart, so the picture, the foil, the glare and the text panels show one above the other.
## Infinite Zoom
@@ -665,13 +565,9 @@ The view keeps zooming into pictures inside pictures. Best for page intros.
Add an infinite zoom to [the section you want it in]. Give each picture, such as [a painting, a screen or a photo], a frame in its middle, the same shape as the view, that holds a smaller copy of the next picture, so the pictures nest inside each other. Move the view steadily into or out of the middle, growing or shrinking every picture by the same factor each second so the speed feels even. Each time a picture exactly fills the view, draw it as the outermost one, so the loop never jumps. Draw only the pictures big enough to see, and keep them sharp at full size. If the visitor has reduced motion turned on, show one still frame. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Speed: Slow · **Normal** · Fast
-- Number of scenes: 1 · 3 · **5**
-- Direction: **In** · Out
-- Shows the scene edges: on · **off**
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Speed: Normal, Number of scenes: 5, Direction: In, Shows the scene edges: off.
+- Speed: Slow · **Normal** · Fast. How long each picture takes to grow from its window to the whole box, 2.5 times its size: slow is 7.5 seconds, normal 4.5 and fast 2.5.
+- Number of scenes: 1 · 3 · **5**. How many different pictures take turns: one picture holds a copy of itself; three are the gallery, the drive-in and the living room; five add the desk and the photo on a table.
+- Direction: **In** · Out. In dives into each picture's window; out pulls back, so each picture shrinks into the window of the one around it.
+- Shows the scene edges: on · **off**. Outlines the edge of every picture with a dashed line and numbers the ones big enough to read by their place in the chain, so you can see each one grow to the edges of the box and take over.
diff --git a/skills/animation-handbook/references/07-ambient-background.md b/skills/animation-handbook/references/07-ambient-background.md
index 09f3356c..73fc6af6 100644
--- a/skills/animation-handbook/references/07-ambient-background.md
+++ b/skills/animation-handbook/references/07-ambient-background.md
@@ -1,6 +1,6 @@
# 07 · Ambient & Background
-Passive, looping effects that hold visual interest without demanding attention — gradients, particles, grain, and glows. 23 animations from Animation Handbook, in the home page's order. Each entry gives the live demo, how it runs, what it is good for and what to avoid it on, the prompt from its page word for word, and its settings.
+Passive, looping effects that hold visual interest without demanding attention — gradients, particles, grain, and glows. 23 animations from Animation Handbook, in the home page's order. Each entry gives the live demo, how it runs, what it is good for and what to avoid it on, the prompt from its page word for word, and its settings with what each does and the demo's values.
## Contents
@@ -41,16 +41,12 @@ Colors slowly drift across a soft gradient background. Best for hero sections.
Add an animated gradient background to [the section you want behind your content]. Paint a soft gradient much larger than the section and slowly slide it back and forth, or turn all its colors around the color wheel, so the colors keep shifting behind the content. End the gradient on the color it starts with, so the loop never shows a seam. A long, slow cycle feels calm; a fast one pulls attention away from the content. If the visitor has reduced motion turned on, show the gradient still. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Gradient: **Sliding** · Color wheel · Bright bands
-- Speed: Slow · **Normal** · Fast
-- Colors: **Cool** · Sunset · Ocean · Gray
-- Muted colors: on · **off**
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Gradient: Sliding, Speed: Normal, Colors: Cool, Muted colors: off.
+- Gradient: **Sliding** · Color wheel · Bright bands. Sliding moves a large, soft gradient back and forth; Color wheel turns every color around the color wheel; Bright bands slides brighter colors between dark ends, one and a half times as slowly.
+- Speed: Slow · **Normal** · Fast. How long one cycle takes: slow is 32s, normal 20s and fast 12s; under 8s it becomes distracting.
+- Colors: **Cool** · Sunset · Ocean · Gray. The colors the gradient moves through: cool blues and purples, sunset oranges, ocean blues and greens, or grays.
+- Muted colors: on · **off**. Takes most of the color out (30% saturation) for a quieter background.
## Mesh Gradient Animation
@@ -65,17 +61,13 @@ Blurred blobs of color drift and melt together. Best for landing pages.
Add a mesh gradient background to [the section you want behind your content]. Place a few large circles of color behind the content and blur them, so their edges soften and the colors run into one another. Let each circle drift and grow or shrink slowly on its own path, so the colors keep blending in new ways, and clip them to the section so they never spill out. Blur is costly on phones, so blur less on small screens. If the visitor has reduced motion turned on, keep the circles still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Blur: Light · **Medium** · Heavy
-- Speed: Slow · **Normal** · Fast
-- Colors: **Cool** · Warm · Sunset · Synthwave · Earth
-- Number of blobs: 3 · **4** · 5
-- Blend: **Plain** · Lighter · Deeper
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Blur: Medium, Speed: Normal, Colors: Cool, Number of blobs: 4, Blend: Plain.
+- Blur: Light · **Medium** · Heavy. How much the blobs are blurred: light is 50px, medium 80px and heavy 130px; below about 80px the circles show, above it they become a wash. Phones use half.
+- Speed: Slow · **Normal** · Fast. How long a blob takes to drift one way: slow is 64s, normal 40s and fast 24s, and each blob takes 0.8 to 1.2 times that.
+- Colors: **Cool** · Warm · Sunset · Synthwave · Earth. The blob colors: cool, warm, sunset, synthwave or earth tones.
+- Number of blobs: 3 · **4** · 5. Three, four or five blobs; more make a richer mix.
+- Blend: **Plain** · Lighter · Deeper. How overlapping blobs mix: plain stacks them (normal blending), lighter brightens the overlap (screen), deeper darkens it and deepens the colors (overlay).
## Aurora / Northern Lights
@@ -90,17 +82,13 @@ Blurred bands of light sway like the northern lights. Best for dark backgrounds.
Add an aurora background to [the dark section you want it behind]. Stack a few tall, wide bands of color that fade to transparent at the top and bottom, blur them softly, and let each one sway sideways and lean a little on its own slow cycle, so they drift apart and together like curtains of light. Make the bands wider than the section and clip them, so their ends never show. Blur less on phones to keep it smooth. If the visitor has reduced motion turned on, keep the bands still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Number of bands: **2** · 3 · 4 · 5
-- Speed: Slow · **Normal** · Fast
-- Colors: **Green** · Purple · Red
-- Brightness: Dim · **Medium** · Bright
-- Stars in the sky: on · **off**
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Number of bands: 2, Speed: Normal, Colors: Green, Brightness: Medium, Stars in the sky: off.
+- Number of bands: **2** · 3 · 4 · 5. How many bands of light: two look clear, five make a richer, layered sky.
+- Speed: Slow · **Normal** · Fast. How long each band takes to sway through its cycle: slow is 48s, normal 30s and fast 18s.
+- Colors: **Green** · Purple · Red. Which colors come first: green and blue (the most common aurora), purple and pink, or red and pink (rare); more bands add the other colors.
+- Brightness: Dim · **Medium** · Bright. How strongly the bands glow: dim is 50%, medium 75% and bright 100%.
+- Stars in the sky: on · **off**. Adds 120 twinkling stars behind the bands.
## Grain / Film Noise Overlay
@@ -115,18 +103,14 @@ Fine grain flickers over the page, like old film. Best for editorial sites.
Add a film grain overlay to [the section or page you want to texture]. Cover it with a see-through layer of random light and dark dots, and draw a new set of dots again and again so the grain flickers like old film; grain works best when it is felt more than seen. Blend the layer into the picture beneath it instead of laying gray on top, and let clicks pass through it. Redraw less often on phones, where drawing every dot is the costly part. If the visitor has reduced motion turned on, show the grain still. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Strength: Faint · **Light** · Strong
-- Grain size: Fine · **Medium** · Coarse
-- How often it changes: Every frame · **Like film** · Choppy · Slow
-- Blend: **Film** · Lighter · Softer
-- Colored grain: on · **off**
-- Grain source: **Random dots** · Noise filter
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Strength: Light, Grain size: Medium, How often it changes: Like film, Blend: Film, Colored grain: off, Grain source: Random dots.
+- Strength: Faint · **Light** · Strong. How visible the grain is: faint is 4%, light 8% and strong 16%; 5–10% is felt more than seen, above 20% it looks like a damaged screen.
+- Grain size: Fine · **Medium** · Coarse. The size of each dot: fine is 1px, medium 2px and coarse 3px; coarse looks like old film stock.
+- How often it changes: Every frame · **Like film** · Choppy · Slow. New grain every frame (60 times a second), like film (24), choppy (12) or slow (4); phones change it at most 24 times a second.
+- Blend: **Film** · Lighter · Softer. How the grain mixes with the picture: film darkens dark areas and lightens light ones, like real grain (overlay blending); lighter only lightens (screen); softer is a gentler film (soft light).
+- Colored grain: on · **off**. Randomly colored dots instead of gray ones.
+- Grain source: **Random dots** · Noise filter. Dots drawn by a script, or the browser's own noise filter; grain size and colored grain apply to the dots only.
## Scanline Effect
@@ -141,19 +125,15 @@ Dark lines and a sweeping beam imitate an old TV screen. Best for retro sites.
Add a scanline effect to [the screen, panel or section you want to look like an old monitor]. Lay thin, dark horizontal lines over the content with a repeating stripe pattern, in a layer that clicks pass through, so it looks like the rows of an old tube screen. When the settings include them, sweep a soft band of light slowly down the screen again and again, darken the corners like curved glass, and give the text a soft glow. Make sure the text stays readable through the lines. If the visitor has reduced motion turned on, keep the beam still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Line spacing: Tight · **Medium** · Wide
-- Line darkness: Light · **Medium** · Dark
-- Moving beam: **on** · off
-- Beam speed: Slow · **Normal** · Fast
-- Beam brightness: Faint · **Medium** · Bright
-- Dark corners: on · **off**
-- Glowing text: on · **off**
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Line spacing: Medium, Line darkness: Medium, Moving beam: on, Beam speed: Normal, Beam brightness: Medium, Dark corners: off, Glowing text: off.
+- Line spacing: Tight · **Medium** · Wide. The distance between lines: tight is 2px, medium 4px and wide 8px; 4px looks like a standard old screen.
+- Line darkness: Light · **Medium** · Dark. How dark the lines are: light is 8%, medium 15% and dark 30%; darker looks more retro but lowers contrast.
+- Moving beam: **on** · off. A soft band of light sweeps down the screen, again and again.
+- Beam speed: Slow · **Normal** · Fast. How long the beam takes to cross the screen: slow is 6.4s, normal 4s and fast 2.4s.
+- Beam brightness: Faint · **Medium** · Bright. How bright the beam is: faint is 6%, medium 12% and bright 24%; it should be felt more than seen.
+- Dark corners: on · **off**. A soft vignette darkens the corners, like the curved glass of an old screen.
+- Glowing text: on · **off**. A soft glow around the letters, like light spreading on an old screen.
## Light Leak
@@ -168,18 +148,14 @@ Warm light washes in from a corner at random times. Best for photo sites.
Add a light leak effect to [the photo, video or section you want it over]. Place a soft glow of light, classically warm amber, spilling in from one corner or down the middle, in a see-through layer that clicks pass through, and fade it in and out every so often, like stray light reaching the film in an old camera. Make the gaps between leaks random and vary each leak's strength a little, because evenly timed leaks look fake. Keep each leak soft, so it never looks like a flash. If the visitor has reduced motion turned on, keep the glow still and faint. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Comes from: **Top left** · Top right · Bottom left · Bottom right · Down the middle
-- Time between leaks: Short · **Medium** · Long
-- Speed: Slow · **Normal** · Fast
-- Brightness: Dim · **Medium** · Bright
-- Color: **Amber** · Gold · Rose · Magenta · Cyan
-- Floating light spots: on · **off**
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Comes from: Top left, Time between leaks: Medium, Speed: Normal, Brightness: Medium, Color: Amber, Floating light spots: off.
+- Comes from: **Top left** · Top right · Bottom left · Bottom right · Down the middle. The corner the glow spills in from, or a band of light down the middle.
+- Time between leaks: Short · **Medium** · Long. The random dark gap between one leak and the next: short is 0.5–1.5s, medium 1–3s and long 3–8s.
+- Speed: Slow · **Normal** · Fast. How long each leak takes to fade in, and again to fade out: slow is 2s, normal 1.2s and fast 0.7s.
+- Brightness: Dim · **Medium** · Bright. How strong the glow gets: dim is 30%, medium 55% and bright 80%; each leak peaks a little below this, at random.
+- Color: **Amber** · Gold · Rose · Magenta · Cyan. Amber is the classic leak; gold, rose and magenta are warm too, and cyan looks like a cooler film stock.
+- Floating light spots: on · **off**. Soft spots of light drift up and fade after each leak.
## Starfield / Space Particles
@@ -194,18 +170,14 @@ Stars stream toward you out of the dark. Best for space themes.
Add a starfield background to [the dark section you want it behind]. Draw many small stars on a canvas and move them out from the center, or sideways past the viewer, so it feels like flying through space. Tie each star's size, brightness and speed to its distance from the center: small, dim and slow near the middle, bigger, brighter and faster toward the edge, which is what creates the depth. A slow speed keeps it calm. Draw fewer stars on phones. If the visitor has reduced motion turned on, show the stars still. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Direction: **Outward** · Sideways
-- Speed: Slow · **Normal** · Fast
-- Number of stars: Few · **Medium** · Many
-- Star color: **White** · Warm white · Many colors
-- Twinkling: **on** · off
-- Nebula haze: on · **off**
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Direction: Outward, Speed: Normal, Number of stars: Medium, Star color: White, Twinkling: on, Nebula haze: off.
+- Direction: **Outward** · Sideways. Outward streams the stars from the center; sideways drifts them past, the nearer ones faster.
+- Speed: Slow · **Normal** · Fast. How fast the stars move: slow is 0.25, normal 0.4 and fast 0.65, about the pixels a star covers in a 60th of a second out at the edge (16, 25 and 41 pixels a second), and about a third of that near the center; keep it slow for a calm background.
+- Number of stars: Few · **Medium** · Many. Few is 150, medium 300 and many 600; phones show at most 300.
+- Star color: **White** · Warm white · Many colors. White, a warm white, or a different pale color for each star.
+- Twinkling: **on** · off. Each star gently brightens and dims on its own rhythm.
+- Nebula haze: on · **off**. A faint purple and blue haze behind the stars adds depth.
## Breathing / Pulsing Glow
@@ -220,18 +192,14 @@ A soft glow slowly grows and shrinks, like calm breathing. Best for idle states.
Add a breathing glow behind [the icon or element that should look alive but at rest]. Place a soft, round, blurred glow of color behind it, and make it slowly grow and brighten, then shrink and dim, over and over, easing gently at both ends like a calm breath. Four to six seconds a breath feels relaxed; much faster feels anxious. When the settings include it, let the element itself swell very slightly with the glow. If the visitor has reduced motion turned on, keep the glow still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Speed: Slow · **Normal** · Fast
-- How much it grows: A little · **Medium** · A lot
-- Glow color: Pink · **Blue** · Purple · Green · Orange
-- Glow size: Small · **Medium** · Large
-- Second glow: on · **off**
-- Icon and title breathe too: **on** · off
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Speed: Normal, How much it grows: Medium, Glow color: Blue, Glow size: Medium, Second glow: off, Icon and title breathe too: on.
+- Speed: Slow · **Normal** · Fast. How long one breath takes: slow is 8s, normal 5s and fast 3s; 4 to 6 seconds feels relaxed, 2 seconds anxious.
+- How much it grows: A little · **Medium** · A lot. 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: Pink · **Blue** · Purple · Green · Orange. The color of the glow: pink, blue, purple, green or orange (white would hide the white title at the breath's peak).
+- Glow size: Small · **Medium** · Large. The glow's size before it grows: small is 180px, medium 260px and large 340px.
+- Second glow: on · **off**. A larger, fainter glow behind the first breathes the other way over a longer cycle, so the two never line up.
+- Icon and title breathe too: **on** · off. The icon and the title under it swell by 2% with each breath, too little to notice consciously.
## Ambient Ripple Effect
@@ -246,20 +214,16 @@ Rings spread from a few spots, like drops on a still pond. Best for hero areas.
Add an ambient ripple background to [the section or status you want to feel alive]. Pick a few spots and let each one send out a ring every so often that grows from nothing and gets fainter as it spreads until it disappears, so several rings overlap like drops on a still pond. It runs by itself, never on clicks. When the settings ask for uneven timing, vary the gaps slightly, because perfectly regular rings feel like a clock. If the visitor has reduced motion turned on, show a few still rings. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Speed: Slow · **Normal** · Fast
-- Time between ripples: Short · **Medium** · Long
-- Ripple size: Small · **Medium** · Large
-- Number of sources: 1 · **3** · 5
-- Ring thickness: Thin · **Medium** · Thick
-- Ring color: Pink · White · **Blue** · Purple · Green · Orange
-- Uneven timing: **on** · off
-- Sources drift: on · **off**
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Speed: Normal, Time between ripples: Medium, Ripple size: Medium, Number of sources: 3, Ring thickness: Medium, Ring color: Blue, Uneven timing: on, Sources drift: off.
+- Speed: Slow · **Normal** · Fast. How long each ring takes to spread and fade: slow is 4s, normal 2.5s and fast 1.5s.
+- Time between ripples: Short · **Medium** · Long. How often each spot sends out a ring: short is every 1.8s, medium 3s and long 5s.
+- Ripple size: Small · **Medium** · Large. How far each ring spreads: small is 100px, medium 160px and large 250px; big rings look calmer with a slow speed.
+- Number of sources: 1 · **3** · 5. One spot feels focused; three spread across the stage; five feel like rain on water.
+- Ring thickness: Thin · **Medium** · Thick. The width of each ring: thin is 1px, medium 1.5px and thick 3px.
+- Ring color: Pink · White · **Blue** · Purple · Green · Orange. The color of the rings.
+- Uneven timing: **on** · off. Each gap is up to 40% longer or shorter, at random, so the rings never tick like a clock.
+- Sources drift: on · **off**. The spots slowly wander around the stage.
## Floating Elements
@@ -274,20 +238,16 @@ Small shapes drift slowly, each on its own path. Best for hero backgrounds.
Add floating shapes to [the section you want a gentle moving background behind]. Scatter a handful of small, see-through circles, squares or rings, and move each one slowly around its own starting point on a smooth, looping path, giving every shape its own speed, distance and starting point so no two ever move in step. Keep them behind the content and let clicks pass through. When the settings include it, shapes slide away from the pointer, or from a finger on touch screens. If the visitor has reduced motion turned on, keep the shapes still. Match the settings listed below.
-**Settings** (the defaults in bold):
+**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 shapes: Few · **Medium** · Many
-- Speed: Slow · **Normal** · Fast
-- How far they drift: Short · **Medium** · Long
-- Shapes: Circles · Squares · Rings · **Mixed**
-- Colors: **Cool** · Warm · Gray · Neon
-- Shapes turn: **on** · off
-- Fades in and out: **on** · off
-- Shapes avoid the pointer: on · **off**
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Number of shapes: Medium, Speed: Normal, How far they drift: Medium, Shapes: Mixed, Colors: Cool, Shapes turn: on, Fades in and out: on, Shapes avoid the pointer: off.
+- Number of shapes: Few · **Medium** · Many. Few is 5, medium 8 and many 14; 5 to 12 feels calm, more gets busy.
+- Speed: Slow · **Normal** · Fast. How fast the shapes drift: slow is 0.3, normal 0.5 and fast 0.8.
+- How far they drift: Short · **Medium** · Long. How far each shape wanders from its place: short is up to 30px, medium 50px and long 90px.
+- Shapes: Circles · Squares · Rings · **Mixed**. Circles, squares, rings or a mix.
+- Colors: **Cool** · Warm · Gray · Neon. Cool blues and purples, warm oranges and reds, grays, or bright neon.
+- Shapes turn: **on** · off. Each shape slowly spins at its own rate as it drifts.
+- Fades in and out: **on** · off. Each shape slowly brightens and dims, adding depth.
+- Shapes avoid the pointer: on · **off**. Shapes within 120px of the pointer, or of a finger, slide aside.
## Grid / Dot Pattern Parallax
@@ -302,18 +262,14 @@ A dot grid shifts gently against your pointer for depth. Best for tech sites.
Add a dot grid parallax background to [the section you want a subtle sense of depth behind]. Tile a faint grid of dots or lines behind the content, a little larger than the section, and shift it slightly in the opposite direction to the pointer, so it seems to sit deeper than the content. Keep the shift to a few percent of the pointer's movement, so it is felt more than seen. On touch screens, let it follow a dragging finger the same way, and when nothing is over it, let it drift slowly by itself. If the visitor has reduced motion turned on, keep the grid still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Pattern: **Dots** · Lines · Dots and lines
-- Strength: Subtle · **Medium** · Strong
-- Spacing: Tight · **Medium** · Wide
-- Pattern color: Pink · White · **Blue** · Purple · Green · Orange
-- Second layer: on · **off**
-- Light under the pointer: **on** · off
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Pattern: Dots, Strength: Medium, Spacing: Medium, Pattern color: Blue, Second layer: off, Light under the pointer: on.
+- Pattern: **Dots** · Lines · Dots and lines. A grid of dots, of lines, or both.
+- Strength: Subtle · **Medium** · Strong. How far the grid shifts: subtle is 3% of the pointer's movement, medium 5% and strong 10%; under 10% it is felt more than seen.
+- Spacing: Tight · **Medium** · Wide. The distance between dots or lines: tight is 20px, medium 28px and wide 44px.
+- Pattern color: Pink · White · **Blue** · Purple · Green · Orange. The color of the dots and lines, shown at 25% so they stay faint.
+- Second layer: on · **off**. A sparser layer of larger dots shifts half as far, adding real depth between the two.
+- Light under the pointer: **on** · off. A faint round glow follows the pointer.
## Abstract Geometric Motion
@@ -328,17 +284,13 @@ Shapes turn, spread and flow in a calm, endless pattern. Best for music players.
Add an abstract geometric animation to [the section or screen you want a calm moving background in]. Draw simple shapes on a canvas and keep them moving in an endless loop: polygons slowly turning around the center, rings spreading out and fading, slanted bars sliding across, or wavy lines with color flowing along them. Drive everything from one steadily growing time value, so the loop never restarts or jumps. Colors from one family keep it calm. If the visitor has reduced motion turned on, show one still frame. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Pattern: **Polygons** · Rings · Bars · Lines
-- Speed: Slow · **Normal** · Fast
-- Number of shapes: Few · **Medium** · Many
-- Colors: **Cool** · Warm · Neon · Gray
-- Thicker lines: on · **off**
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Pattern: Polygons, Speed: Normal, Number of shapes: Medium, Colors: Cool, Thicker lines: off.
+- Pattern: **Polygons** · Rings · Bars · Lines. Turning polygons, rings spreading from the center, sliding bars, or wavy lines with flowing color.
+- Speed: Slow · **Normal** · Fast. How fast everything moves: slow is 0.35, normal 0.6 and fast 1; keep it below 1 behind content.
+- Number of shapes: Few · **Medium** · Many. How many polygons, bars or lines: few is 3, medium 6 and many 10 (the Lines pattern draws twice as many); on Rings it sets how many colors the rings use.
+- Colors: **Cool** · Warm · Neon · Gray. Cool blues, warm ambers, bright neon or grays.
+- Thicker lines: on · **off**. Draws the lines 1.5px wide instead of 0.8px, so the shapes stand out more.
## Particle Constellation
@@ -353,17 +305,13 @@ Drifting dots link up with lines whenever they come close. Best for tech sites.
Add a particle constellation background to [the section you want it behind]. Scatter dots on a canvas, let each drift slowly in its own direction and bounce off the edges, and on every frame join any two dots that are close with a thin line that fades as they move apart, so a network keeps forming and breaking. When the settings include it, let the dots drift toward the pointer, or toward a finger on touch screens. Checking every pair of dots gets slow fast, so use fewer dots on phones. If the visitor has reduced motion turned on, show one still frame. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Number of dots: Few · **Medium** · Many
-- Link distance: Short · **Medium** · Long
-- Speed: Slow · **Normal** · Fast
-- Color: **Cyan** · Violet · Mint · Gray
-- Dots follow the pointer: **on** · off
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Number of dots: Medium, Link distance: Medium, Speed: Normal, Color: Cyan, Dots follow the pointer: on.
+- Number of dots: Few · **Medium** · Many. Few is 50, medium 90 and many 140; phones show at most 60, because every pair of dots is checked each frame.
+- Link distance: Short · **Medium** · Long. How close two dots must be to be linked: short is 90px, medium 130px and long 180px; too long and everything links to everything.
+- Speed: Slow · **Normal** · Fast. How fast the dots drift: slow is 0.35, normal 0.6 and fast 1; faster looks agitated.
+- Color: **Cyan** · Violet · Mint · Gray. The color of the dots and lines: cyan, violet, mint or gray.
+- Dots follow the pointer: **on** · off. Dots near the pointer, or a finger, drift toward it and gather there.
## Flow Field
@@ -378,17 +326,13 @@ Particles ride invisible currents, leaving fading trails. Best for art pages.
Add a flow field background to [the section you want it behind]. Fill a canvas with many particles and give every point a direction that changes smoothly from spot to spot (smooth random noise does this). Each frame, move each particle a small step along the direction under it, scaled by the time since the last frame so it runs at the same speed on every screen. Instead of clearing the canvas, cover it with a see-through dark layer once for every 60th of a second that passes, so each particle leaves a fading trail. Let the directions change slowly over time, and use fewer particles on phones. If the visitor has reduced motion turned on, show one still frame of trails. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- Swirl size: Small · **Medium** · Large
-- Trail length: Short · **Medium** · Long
-- Speed: Slow · **Normal** · Fast
-- Number of particles: Few · **Medium** · Many
-- Color: **Mint** · Ember · Ice · Rainbow
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Swirl size: Medium, Trail length: Medium, Speed: Normal, Number of particles: Medium, Color: Mint.
+- Swirl size: Small · **Medium** · Large. How large the currents are: the direction turns over about 20px (small), 34px (medium) or 60px (large); larger looks calm, smaller turbulent.
+- Trail length: Short · **Medium** · Long. How long trails linger: short fades 12% every 60th of a second, medium 6% and long 4%; below about 4% trails can leave faint marks that never fade.
+- Speed: Slow · **Normal** · Fast. How far each particle moves in a 60th of a second: slow is 0.6px, normal 1px and fast 1.6px (36, 60 and 96px a second).
+- Number of particles: Few · **Medium** · Many. Few is 400, medium 900 and many 1,500; phones show at most 500.
+- Color: **Mint** · Ember · Ice · Rainbow. Mint, ember or ice, or rainbow, where the color changes across the stage and over time.
## Synthwave Grid
@@ -403,15 +347,11 @@ A glowing grid rolls toward you under a striped sun. Best for music and games.
Add a synthwave grid to [the section you want a retro scene in]. Draw a purple sky with a striped, glowing sun on the horizon and, below it, a glowing grid floor in perspective: lines that meet at one point on the horizon, crossed by lines that bunch up near the horizon and spread out toward the viewer. Move the cross lines steadily toward the viewer and wrap them around, fading each one in at the horizon, so the floor rolls forward forever with no visible jump. If the visitor has reduced motion turned on, show the scene still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Speed: Slow · **Normal** · Fast
-- Number of lines: Few · **Medium** · Many
-- Grid color: **Pink** · Cyan · Purple · Orange
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Speed: Normal, Number of lines: Medium, Grid color: Pink.
+- Speed: Slow · **Normal** · Fast. How fast the floor rolls toward the viewer: slow is 0.6, normal 1 and fast 1.6.
+- Number of lines: Few · **Medium** · Many. How many lines the floor has: few is 10 across and 15 toward the horizon, medium 16 and 23, many 24 and 35; more lines make a finer grid.
+- Grid color: **Pink** · Cyan · Purple · Orange. The color of the glowing lines: pink, cyan, purple or orange.
## Matrix Rain
@@ -426,17 +366,13 @@ Columns of glowing characters rain down a dark screen. Best for tech themes.
Add a matrix rain background to [the section you want it behind]. Split a dark canvas into columns and, at a steady pace, draw a bright character at the head of each column and move it down one row, sending each column back to the top at random once it passes the bottom. Instead of clearing the canvas, cover it with a see-through black layer before each step, so older characters fade into a trail behind each bright leader. Space the columns wider on phones. If the visitor has reduced motion turned on, show one still frame. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Speed: Slow · **Normal** · Fast
-- Characters: **Japanese** · Binary · Hexadecimal
-- Trail length: Short · **Medium** · Long
-- Character size: Small · **Medium** · Large
-- Glowing leaders: **on** · off
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Speed: Normal, Characters: Japanese, Trail length: Medium, Character size: Medium, Glowing leaders: on.
+- Speed: Slow · **Normal** · Fast. How often the rain moves down a row: slow is about 18 times a second, normal 28 and fast about 46.
+- Characters: **Japanese** · Binary · Hexadecimal. Japanese katakana (the film's look), binary 0 and 1, or hexadecimal 0 to F.
+- Trail length: Short · **Medium** · Long. How long characters linger: short fades 12% a step, medium 7% and long 4%.
+- Character size: Small · **Medium** · Large. Small is 12px, medium 16px and large 22px; larger characters make fewer columns.
+- Glowing leaders: **on** · off. A soft glow around each column's leading character.
## Plasma Field
@@ -451,16 +387,12 @@ Smooth waves of color flow endlessly, made from math. Best for creative sites.
Add a plasma background to [the section you want it behind]. For every point, add up a few waves based on its position and on time (across, down, diagonally and outward from the center) and use the sum to pick a color from a smooth palette, so the whole field flows like liquid color. To keep it fast, draw the field into a small image and scale it up smoothly to fill the section, using a smaller image on phones. If the visitor has reduced motion turned on, show one still frame. Match the settings listed below.
-**Settings** (the defaults in bold):
+**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
-- Pattern size: Small · **Medium** · Large
-- Colors: **Neon** · Sunset · Ocean · Rose
-- Detail: Low · **Medium** · High
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Speed: Normal, Pattern size: Medium, Colors: Neon, Detail: Medium.
+- Speed: Slow · **Normal** · Fast. How fast the field flows: slow is 0.6 times the base speed, normal 1 and fast 1.6.
+- Pattern size: Small · **Medium** · Large. How big the color shapes are: small packs more waves into the field, large makes broad, soft blobs.
+- Colors: **Neon** · Sunset · Ocean · Rose. The palette: neon, sunset, ocean or rose.
+- Detail: Low · **Medium** · High. How wide the small picture is before it is scaled up: low is 96 pixels, medium 140 and high 200; phones use at most 140.
## Wave Layers
@@ -475,16 +407,12 @@ Layers of waves drift sideways, each at its own speed. Best for hero sections.
Add layered waves to [the bottom of the section you want them in]. Stack a few strips of water, each one twice as wide as the section with the same wave shape repeated along its top edge: far strips sit higher, paler and with smaller waves, near strips lower, darker and with bigger ones. Slide every strip sideways by half its width, over and over, so the repeated shape hides the restart, and give near strips a quicker pace than far ones so the water feels deep. Move the strips only by shifting them, which keeps it smooth on phones. If the visitor has reduced motion turned on, keep the waves still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Speed: Slow · **Normal** · Fast
-- Colors: **Ocean** · Sunset · Night
-- Wave height: Low · **Medium** · High
-- Number of layers: 2 · 3 · **4**
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Speed: Normal, Colors: Ocean, Wave height: Medium, Number of layers: 4.
+- Speed: Slow · **Normal** · Fast. The base cycle: slow is 40 seconds, normal 24 and fast 14; the layers take 1.7, 1.35, 1.1 and 0.9 times that, far to near, to slide one stage width.
+- Colors: **Ocean** · Sunset · Night. Ocean blues, Sunset pinks and purples under an orange glow, or Night indigo; far layers are the palest, near ones the darkest.
+- Wave height: Low · **Medium** · High. How tall the nearest waves are: low is 6%, medium 11% and high 17% of the stage's height; the farther layers get a half to four fifths of that.
+- Number of layers: 2 · 3 · **4**. Two, three or four layers; with fewer, the far layers go first and the near waves always stay.
## Snow / Rain
@@ -499,16 +427,12 @@ Snow drifts down, or rain falls in streaks, over a dark town. Best for seasonal
Add falling snow or rain to [the dark section you want it over]. Lay a see-through canvas over the section and draw small particles on it, moving each one down on every frame by the time that has passed, and start it again at the top once it leaves the bottom. Snowflakes fall slowly and sway from side to side; raindrops fall fast and are drawn as short streaks that lean with the wind. When depth is on, make near particles bigger, brighter and faster than far ones. Draw fewer particles on phones. If the visitor has reduced motion turned on, show one still frame. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Weather: **Snow** · Rain
-- Amount: Light · **Medium** · Heavy
-- Wind: None · **Gentle** · Strong
-- Depth: **on** · off
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Weather: Snow, Amount: Medium, Wind: Gentle, Depth: on.
+- Weather: **Snow** · Rain. Snow drifts down slowly and sways; rain falls more than ten times as fast, drawn as streaks.
+- Amount: Light · **Medium** · Heavy. How many particles per 100,000 square pixels: light, medium and heavy are 28, 62 and 125 flakes, or 35, 80 and 170 drops; phones draw 80% of that.
+- Wind: None · **Gentle** · Strong. None, gentle or strong: the wind carries snow sideways and tilts the rain, near particles more than far ones.
+- Depth: **on** · off. Three layers in which near flakes and drops are bigger, brighter and faster than far ones; off, every particle is the size and speed of the middle layer.
## Fireworks
@@ -523,16 +447,12 @@ Rockets rise and burst into glowing sparks that fall and fade. Best for celebrat
Add fireworks to [the dark section you want them over]. On a see-through canvas laid over the section, launch a rocket from the bottom every so often; it slows as it climbs and, at the top of its climb, bursts into many sparks that fly out in all directions. Slow the sparks a little on every frame, pull them gently down and fade them out, so each burst blooms, droops and dies away. For trails, cover the canvas with a faint see-through layer instead of clearing it, the same number of times per second on every screen. Use fewer sparks on phones. If the visitor has reduced motion turned on, show a still picture of the bursts. Match the settings listed below.
-**Settings** (the defaults in bold):
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-- How often: Rarely · **Sometimes** · Often
-- Colors: **Many colors** · Gold · Blue
-- Trails: None · Short · **Long**
-- Burst shape: **Round** · Ring · Willow
-
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: How often: Sometimes, Colors: Many colors, Trails: Long, Burst shape: Round.
+- How often: Rarely · **Sometimes** · Often. The time between launches, on average: rarely about 2.2 seconds, sometimes 1.2 and often half a second.
+- Colors: **Many colors** · Gold · Blue. Each burst picks one color: from eight hues, from three golds, or from blues and violets.
+- Trails: None · Short · **Long**. How much of the picture each 60th of a second's cover takes away: none 100%, short 30% and long 13%.
+- Burst shape: **Round** · Ring · Willow. A ball of sparks, a ring of sparks that all fly at nearly the same speed, or a willow whose sparks droop like branches.
## Topographic Lines
@@ -547,17 +467,13 @@ Lines like those on a hiking map slowly bend and drift. Best for outdoor brands.
Add a topographic lines background to [the section you want it behind]. Build a smooth, hilly height map from layered noise and draw its contour lines on a canvas: sample the height on a grid, and in each grid square join the points where the height crosses each level, so every line follows one height, as on a hiking map. Make every fifth line bolder when the settings include it. Shift the noise slowly by elapsed time so the hills swell, shrink and drift, and redraw each frame. Sample a coarser grid on phones. If the visitor has reduced motion turned on, show the lines still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Line spacing: Tight · **Medium** · Wide
-- Speed: Slow · **Normal** · Fast
-- Color: **Sand** · Mint · Sky blue · White
-- Hill size: Small · **Medium** · Large
-- Bold every fifth line: **on** · off
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Copied from the site with the defaults, the prompt ends with this line:
-
-Settings from the demo: Line spacing: Medium, Speed: Normal, Color: Sand, Hill size: Medium, Bold every fifth line: on.
+- Line spacing: Tight · **Medium** · Wide. How much the height changes between two lines: tight puts about 1.7 times as many lines on the same ground, wide about 0.6 times.
+- Speed: Slow · **Normal** · Fast. How fast the hills swell and drift: slow is half the normal pace and fast twice it; at normal the broad hills slide about 7px a second.
+- Color: **Sand** · Mint · Sky blue · White. Sand, mint, sky blue or white lines on a dark ground.
+- Hill size: Small · **Medium** · Large. How wide one hill is: about 130px (small), 220px (medium) or 360px (large).
+- Bold every fifth line: **on** · off. Every fifth line is drawn thicker and brighter, like the index contours of a printed map.
## Light Rays
@@ -572,17 +488,13 @@ Soft beams of light fall from above and slowly sweep across. Best for hero intro
Add soft light rays to [the dark section you want them in]. From one point just above the top edge, draw a fan of long, narrow beams on a canvas, made soft by gradients rather than blur filters: clear at the edges, brightest near the source and fading out farther away. Let each beam sway and brighten and dim on its own slow cycle, paced by elapsed time, so the light seems to sweep across the scene, and add overlapping beams together. When the settings include dust, float tiny specks that glint only where a beam crosses them, with fewer specks on phones. Keep the content above the light. If the visitor has reduced motion turned on, show the rays still. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Light color: **Warm** · Cool
-- Speed: Slow · **Normal** · Fast
-- Floating dust: **on** · off
-- Number of rays: Few · **Some** · Many
-- Light comes from: **Top left** · Top · Top right
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Light color: Warm, Speed: Normal, Floating dust: on, Number of rays: Some, Light comes from: Top left.
+- Light color: **Warm** · Cool. Warm late sunshine over a brown-black room, or cool moonlight over a blue-black one.
+- Speed: Slow · **Normal** · Fast. How fast the beams sway and the dust drifts: slow is half the normal pace and fast twice it; at normal a beam sways back and forth every 12 to 22 seconds.
+- Floating dust: **on** · off. Specks of dust drift slowly upward and glint where a beam crosses them; phones show 40, other screens 80.
+- Number of rays: Few · **Some** · Many. Few is 5 beams, some 8 and many 12; more beams overlap into a fuller, brighter light.
+- Light comes from: **Top left** · Top · Top right. Where the beams start: just above the top left corner, the middle of the top edge or the top right corner.
## Game of Life
@@ -597,15 +509,11 @@ Cells live and die by their neighbors, and patterns grow. Best for tech sites.
Add a Game of Life background to [the section you want it behind]. Split a canvas into a grid of square cells, each alive or dead, and at a steady pace work out the next generation from each cell's eight neighbors: a dead cell with exactly three live neighbors is born, a live cell with two or three stays alive, and every other cell dies. Time the generations by elapsed time, not by frames, and when the settings include trails, let dying cells fade out. Let the visitor click, drag or touch to draw cells, and start again when the world settles. Keep the cells from getting too small on phones. If the visitor has reduced motion turned on, show one still frame. Match the settings listed below.
-**Settings** (the defaults in bold):
-
-- Speed: Slow · **Normal** · Fast
-- Cell size: Small · **Medium** · Large
-- Start pattern: **Random** · Glider gun · Acorn
-- Color: **Mint** · Amber · Sky blue · Pink
-- Fading trails: **on** · off
-- Grid lines: on · **off**
-
-Copied from the site with the defaults, the prompt ends with this line:
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-Settings from the demo: Speed: Normal, Cell size: Medium, Start pattern: Random, Color: Mint, Fading trails: on, Grid lines: off.
+- Speed: Slow · **Normal** · Fast. How many generations pass each second: slow is 4, normal 10 and fast 20.
+- Cell size: Small · **Medium** · Large. Small cells are 6px, medium 9px and large 14px; phones draw small cells 8px wide, so the world has fewer cells to work out and draw.
+- Start pattern: **Random** · Glider gun · Acorn. Random fills about 30% of the cells; the glider gun (Gosper's) fires a glider every 30 generations; the acorn is seven cells that grow for over 5,000 generations on an open grid.
+- Color: **Mint** · Amber · Sky blue · Pink. Mint, amber, sky blue or pink cells.
+- Fading trails: **on** · off. A cell that dies fades out over about half a second instead of vanishing at once.
+- Grid lines: on · **off**. Faint lines show the squares the cells live in.
diff --git a/skills/animation-handbook/references/catalog.md b/skills/animation-handbook/references/catalog.md
index 489d445b..bf0874f0 100644
--- a/skills/animation-handbook/references/catalog.md
+++ b/skills/animation-handbook/references/catalog.md
@@ -1,6 +1,6 @@
# Catalog
-All 166 animations of Animation Handbook, in the home page's order and grouped by category. Each line gives the name (linked to its live demo), what it does and what it is best for, its places (the parts of a page it suits, the main one first), and the file that holds its full entry with the prompt and the settings.
+All 166 animations of Animation Handbook, in the home page's order and grouped by category. Each line gives the name linked to its live demo, what it does and what it is best for, and its places (the parts of a page it suits, the main one first). The category folder in the address names the file that holds its full entry, with the prompt and the settings.
Contents: [01 · Scroll-Based](#01--scroll-based) · [02 · Entrance & Exit](#02--entrance--exit) · [03 · Page Transitions](#03--page-transitions) · [04 · Micro-Interactions](#04--micro-interactions) · [05 · Text & Typography](#05--text--typography) · [06 · 3D & Advanced](#06--3d--advanced) · [07 · Ambient & Background](#07--ambient--background) · [By place](#by-place)
@@ -8,202 +8,202 @@ Contents: [01 · Scroll-Based](#01--scroll-based) · [02 · Entrance & Exit](#02
Animations driven by scroll position — parallax, sticky, scrub, snap, and storytelling. 27 animations, in [01-scroll-based.md](01-scroll-based.md).
-- [Parallax Depth-of-Field](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/parallax-depth-of-field/): Layers move at their own speed as the focus shifts. Best for cinematic intros. Places: Scrolling, Images & cards. Entry in [01-scroll-based.md](01-scroll-based.md#parallax-depth-of-field).
-- [Parallax Scrolling](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/parallax-scrolling/): Far layers move slower than near ones as you scroll. Best for hero scenes. Places: Scrolling, Images & cards. Entry in [01-scroll-based.md](01-scroll-based.md#parallax-scrolling).
-- [Reverse-Scrolling Columns](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/reverse-scrolling-columns/): Side columns run the opposite way to the middle one. Best for portfolios. Places: Scrolling, Images & cards. Entry in [01-scroll-based.md](01-scroll-based.md#reverse-scrolling-columns).
-- [Cover Card to Fixed Header](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/cover-card-to-fixed-header/): A tall cover shrinks into a slim header as you scroll. Best for articles. Places: Scrolling, Menus & forms. Entry in [01-scroll-based.md](01-scroll-based.md#cover-card-to-fixed-header).
-- [Fly-in Fly-out Contact List](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/fly-in-fly-out-contact-list/): Rows fade and slide as they near the top or bottom edge. Best for long lists. Places: Scrolling. Entry in [01-scroll-based.md](01-scroll-based.md#fly-in-fly-out-contact-list).
-- [Stacking Cards](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/stacking-cards/): Cards stick at the top and pile into a deck. Best for step-by-step stories. Places: Scrolling, Images & cards. Entry in [01-scroll-based.md](01-scroll-based.md#stacking-cards).
-- [Scroll-Triggered Animation](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-trigger/): Animations start, follow and pin at set scroll points. Best for landing pages. Places: Scrolling. Entry in [01-scroll-based.md](01-scroll-based.md#scroll-triggered-animation).
-- [Scrub Animation](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scrub-animation/): Scroll plays it forward and back, like dragging a video. Best for product tours. Places: Scrolling. Entry in [01-scroll-based.md](01-scroll-based.md#scrub-animation).
-- [Pin Animation](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/pin-animation/): One part stays put while its text changes on scroll. Best for feature lists. Places: Scrolling. Entry in [01-scroll-based.md](01-scroll-based.md#pin-animation).
-- [Snap Scrolling](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/snap-scrolling/): The box settles on one whole section at a time. Best for slides and galleries. Places: Scrolling, Images & cards. Entry in [01-scroll-based.md](01-scroll-based.md#snap-scrolling).
-- [Scrollytelling](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scrollytelling/): A picture beside the story changes as you read down. Best for data stories. Places: Scrolling. Entry in [01-scroll-based.md](01-scroll-based.md#scrollytelling).
-- [Reveal on Scroll](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/reveal-on-scroll/): Cards appear as they cross a line in the box. Best for long landing pages. Places: Scrolling, Images & cards. Entry in [01-scroll-based.md](01-scroll-based.md#reveal-on-scroll).
-- [Stagger Reveal](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/stagger-reveal/): Items in a group appear one after another as it scrolls in. Best for card grids. Places: Scrolling, Images & cards. Entry in [01-scroll-based.md](01-scroll-based.md#stagger-reveal).
-- [Horizontal Scroll](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/horizontal-scroll/): Scroll down and a row of panels slides sideways. Best for portfolios. Places: Scrolling, Images & cards. Entry in [01-scroll-based.md](01-scroll-based.md#horizontal-scroll).
-- [Sticky Section](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/sticky-section/): A section holds still while its content changes. Best for feature tours. Places: Scrolling. Entry in [01-scroll-based.md](01-scroll-based.md#sticky-section).
-- [Counter Animation](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/counter-animation/): Numbers count up when they scroll into view. Best for stats. Places: Scrolling, Text. Entry in [01-scroll-based.md](01-scroll-based.md#counter-animation).
-- [Progress Bar](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/progress-bar/): A bar fills as you read down the page. Best for long articles. Places: Scrolling, Loading & messages. Entry in [01-scroll-based.md](01-scroll-based.md#progress-bar).
-- [Section Wipe](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/section-wipe/): Each section slides up over the one before. Best for full-screen stories. Places: Scrolling. Entry in [01-scroll-based.md](01-scroll-based.md#section-wipe).
-- [Zoom Into Image](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/zoom-into-image/): A small window opens up to fill the box as you scroll. Best for hero images. Places: Scrolling, Images & cards. Entry in [01-scroll-based.md](01-scroll-based.md#zoom-into-image).
-- [Scroll Image Sequence](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-image-sequence/): Scrolling plays a series of pictures like a flip-book. Best for products. Places: Scrolling, Images & cards. Entry in [01-scroll-based.md](01-scroll-based.md#scroll-image-sequence).
-- [Smooth (Inertia) Scroll](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/smooth-scroll/): Scrolling glides to a stop instead of jumping. Best for portfolio sites. Places: Scrolling. Entry in [01-scroll-based.md](01-scroll-based.md#smooth-inertia-scroll).
-- [Text Fill on Scroll](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/text-fill-on-scroll/): Words light up one by one as you scroll. Best for key statements. Places: Scrolling, Text. Entry in [01-scroll-based.md](01-scroll-based.md#text-fill-on-scroll).
-- [Scroll Velocity Skew](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-velocity-skew/): Rows lean when you scroll fast and straighten when you stop. Best for galleries. Places: Scrolling, Images & cards. Entry in [01-scroll-based.md](01-scroll-based.md#scroll-velocity-skew).
-- [SVG Line Draw on Scroll](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/svg-line-draw/): A line draws itself along a route as you scroll. Best for timelines. Places: Scrolling. Entry in [01-scroll-based.md](01-scroll-based.md#svg-line-draw-on-scroll).
-- [Scrollspy Navigation](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scrollspy-nav/): A menu highlights the section you are reading. Best for long docs. Places: Scrolling, Menus & forms. Entry in [01-scroll-based.md](01-scroll-based.md#scrollspy-navigation).
-- [Scroll-Driven Background Color](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-background-color/): The background color changes as you scroll through sections. Best for stories. Places: Scrolling, Backgrounds. Entry in [01-scroll-based.md](01-scroll-based.md#scroll-driven-background-color).
-- [Hide-on-Scroll Header](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/hide-on-scroll-header/): Scrolling down hides the top bar; scrolling up shows it. Best for mobile pages. Places: Menus & forms, Scrolling. Entry in [01-scroll-based.md](01-scroll-based.md#hide-on-scroll-header).
+- [Parallax Depth-of-Field](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/parallax-depth-of-field/): Layers move at their own speed as the focus shifts. Best for cinematic intros. Places: Scrolling, Images & cards.
+- [Parallax Scrolling](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/parallax-scrolling/): Far layers move slower than near ones as you scroll. Best for hero scenes. Places: Scrolling, Images & cards.
+- [Reverse-Scrolling Columns](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/reverse-scrolling-columns/): Side columns run the opposite way to the middle one. Best for portfolios. Places: Scrolling, Images & cards.
+- [Cover Card to Fixed Header](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/cover-card-to-fixed-header/): A tall cover shrinks into a slim header as you scroll. Best for articles. Places: Scrolling, Menus & forms.
+- [Fly-in Fly-out Contact List](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/fly-in-fly-out-contact-list/): Rows fade and slide as they near the top or bottom edge. Best for long lists. Places: Scrolling.
+- [Stacking Cards](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/stacking-cards/): Cards stick at the top and pile into a deck. Best for step-by-step stories. Places: Scrolling, Images & cards.
+- [Scroll-Triggered Animation](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-trigger/): Animations start, follow and pin at set scroll points. Best for landing pages. Places: Scrolling.
+- [Scrub Animation](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scrub-animation/): Scroll plays it forward and back, like dragging a video. Best for product tours. Places: Scrolling.
+- [Pin Animation](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/pin-animation/): One part stays put while its text changes on scroll. Best for feature lists. Places: Scrolling.
+- [Snap Scrolling](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/snap-scrolling/): The box settles on one whole section at a time. Best for slides and galleries. Places: Scrolling, Images & cards.
+- [Scrollytelling](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scrollytelling/): A picture beside the story changes as you read down. Best for data stories. Places: Scrolling.
+- [Reveal on Scroll](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/reveal-on-scroll/): Cards appear as they cross a line in the box. Best for long landing pages. Places: Scrolling, Images & cards.
+- [Stagger Reveal](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/stagger-reveal/): Items in a group appear one after another as it scrolls in. Best for card grids. Places: Scrolling, Images & cards.
+- [Horizontal Scroll](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/horizontal-scroll/): Scroll down and a row of panels slides sideways. Best for portfolios. Places: Scrolling, Images & cards.
+- [Sticky Section](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/sticky-section/): A section holds still while its content changes. Best for feature tours. Places: Scrolling.
+- [Counter Animation](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/counter-animation/): Numbers count up when they scroll into view. Best for stats. Places: Scrolling, Text.
+- [Progress Bar](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/progress-bar/): A bar fills as you read down the page. Best for long articles. Places: Scrolling, Loading & messages.
+- [Section Wipe](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/section-wipe/): Each section slides up over the one before. Best for full-screen stories. Places: Scrolling.
+- [Zoom Into Image](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/zoom-into-image/): A small window opens up to fill the box as you scroll. Best for hero images. Places: Scrolling, Images & cards.
+- [Scroll Image Sequence](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-image-sequence/): Scrolling plays a series of pictures like a flip-book. Best for products. Places: Scrolling, Images & cards.
+- [Smooth (Inertia) Scroll](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/smooth-scroll/): Scrolling glides to a stop instead of jumping. Best for portfolio sites. Places: Scrolling.
+- [Text Fill on Scroll](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/text-fill-on-scroll/): Words light up one by one as you scroll. Best for key statements. Places: Scrolling, Text.
+- [Scroll Velocity Skew](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-velocity-skew/): Rows lean when you scroll fast and straighten when you stop. Best for galleries. Places: Scrolling, Images & cards.
+- [SVG Line Draw on Scroll](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/svg-line-draw/): A line draws itself along a route as you scroll. Best for timelines. Places: Scrolling.
+- [Scrollspy Navigation](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scrollspy-nav/): A menu highlights the section you are reading. Best for long docs. Places: Scrolling, Menus & forms.
+- [Scroll-Driven Background Color](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-background-color/): The background color changes as you scroll through sections. Best for stories. Places: Scrolling, Backgrounds.
+- [Hide-on-Scroll Header](https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/hide-on-scroll-header/): Scrolling down hides the top bar; scrolling up shows it. Best for mobile pages. Places: Menus & forms, Scrolling.
## 02 · Entrance & Exit
Element-level animations for arriving and departing — fades, slides, reveals, flips, and text staggers. 14 animations, in [02-entrance-and-exit.md](02-entrance-and-exit.md).
-- [Fade In / Fade Out](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/fade-in-out/): Fades in to appear and fades out to leave. Best for pop-ups and tooltips. Places: Page intros. Entry in [02-entrance-and-exit.md](02-entrance-and-exit.md#fade-in--fade-out).
-- [Slide In](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/slide-in/): Travels into place from one edge. Best for side panels and notifications. Places: Page intros, Menus & forms, Loading & messages. Entry in [02-entrance-and-exit.md](02-entrance-and-exit.md#slide-in).
-- [Slide Up Reveal](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/slide-up-reveal/): Text rises into view from behind an invisible edge. Best for headlines. Places: Page intros, Text. Entry in [02-entrance-and-exit.md](02-entrance-and-exit.md#slide-up-reveal).
-- [Scale In / Zoom In](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/scale-in/): Grows from smaller to full size. Best for pop-ups and menus. Places: Page intros, Menus & forms. Entry in [02-entrance-and-exit.md](02-entrance-and-exit.md#scale-in--zoom-in).
-- [Clip-Path Reveal](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/clip-path-reveal/): A growing shape uncovers it while it stays still. Best for images and banners. Places: Page intros, Images & cards. Entry in [02-entrance-and-exit.md](02-entrance-and-exit.md#clip-path-reveal).
-- [Curtain Reveal](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/curtain-reveal/): A colored panel covers it, then slides away. Best for intros and logos. Places: Page intros. Entry in [02-entrance-and-exit.md](02-entrance-and-exit.md#curtain-reveal).
-- [Split Text Reveal](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/split-text-reveal/): Text breaks into pieces that appear one after another. Best for headlines. Places: Page intros, Text. Entry in [02-entrance-and-exit.md](02-entrance-and-exit.md#split-text-reveal).
-- [Letter-by-Letter Stagger](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/letter-by-letter-stagger/): A phrase appears letter by letter or typewriter-style. Best for short headlines. Places: Page intros, Text. Entry in [02-entrance-and-exit.md](02-entrance-and-exit.md#letter-by-letter-stagger).
-- [Word-by-Word Reveal](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/word-by-word-reveal/): Words appear one after another at a reading pace. Best for quotes and intros. Places: Page intros, Text. Entry in [02-entrance-and-exit.md](02-entrance-and-exit.md#word-by-word-reveal).
-- [Blur In](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/blur-in/): Comes into focus from a blur, like a camera. Best for featured cards and photos. Places: Page intros, Images & cards. Entry in [02-entrance-and-exit.md](02-entrance-and-exit.md#blur-in).
-- [Flip In](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/flip-in/): Swings into view in 3D, like a card turning over. Best for cards and tiles. Places: Page intros, Images & cards. Entry in [02-entrance-and-exit.md](02-entrance-and-exit.md#flip-in).
-- [Bounce In](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/bounce-in/): Lands with a springy bounce. Best for badges and success messages. Places: Page intros, Loading & messages. Entry in [02-entrance-and-exit.md](02-entrance-and-exit.md#bounce-in).
-- [Rotate In](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/rotate-in/): Spins into place while it grows. Best for icons, stars and badges. Places: Page intros. Entry in [02-entrance-and-exit.md](02-entrance-and-exit.md#rotate-in).
-- [Shatter Effect](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/shatter-effect/): Breaks into pieces that fly apart and fade. Best for galleries and bold exits. Places: Images & cards, Page changes. Entry in [02-entrance-and-exit.md](02-entrance-and-exit.md#shatter-effect).
+- [Fade In / Fade Out](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/fade-in-out/): Fades in to appear and fades out to leave. Best for pop-ups and tooltips. Places: Page intros.
+- [Slide In](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/slide-in/): Travels into place from one edge. Best for side panels and notifications. Places: Page intros, Menus & forms, Loading & messages.
+- [Slide Up Reveal](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/slide-up-reveal/): Text rises into view from behind an invisible edge. Best for headlines. Places: Page intros, Text.
+- [Scale In / Zoom In](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/scale-in/): Grows from smaller to full size. Best for pop-ups and menus. Places: Page intros, Menus & forms.
+- [Clip-Path Reveal](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/clip-path-reveal/): A growing shape uncovers it while it stays still. Best for images and banners. Places: Page intros, Images & cards.
+- [Curtain Reveal](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/curtain-reveal/): A colored panel covers it, then slides away. Best for intros and logos. Places: Page intros.
+- [Split Text Reveal](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/split-text-reveal/): Text breaks into pieces that appear one after another. Best for headlines. Places: Page intros, Text.
+- [Letter-by-Letter Stagger](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/letter-by-letter-stagger/): A phrase appears letter by letter or typewriter-style. Best for short headlines. Places: Page intros, Text.
+- [Word-by-Word Reveal](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/word-by-word-reveal/): Words appear one after another at a reading pace. Best for quotes and intros. Places: Page intros, Text.
+- [Blur In](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/blur-in/): Comes into focus from a blur, like a camera. Best for featured cards and photos. Places: Page intros, Images & cards.
+- [Flip In](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/flip-in/): Swings into view in 3D, like a card turning over. Best for cards and tiles. Places: Page intros, Images & cards.
+- [Bounce In](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/bounce-in/): Lands with a springy bounce. Best for badges and success messages. Places: Page intros, Loading & messages.
+- [Rotate In](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/rotate-in/): Spins into place while it grows. Best for icons, stars and badges. Places: Page intros.
+- [Shatter Effect](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/shatter-effect/): Breaks into pieces that fly apart and fade. Best for galleries and bold exits. Places: Images & cards, Page changes.
## 03 · Page Transitions
Full-page transitions between routes or views — crossfades, slides, portals, morphs, and the View Transitions API. 16 animations, in [03-page-transitions.md](03-page-transitions.md).
-- [View Transitions API](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/view-transitions-api/): The browser animates the change between two pages for you. Best for web apps. Places: Page changes. Entry in [03-page-transitions.md](03-page-transitions.md#view-transitions-api).
-- [Shared Element Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/shared-element-transition/): A picture grows from the list into the next page's header. Best for galleries. Places: Page changes, Images & cards. Entry in [03-page-transitions.md](03-page-transitions.md#shared-element-transition).
-- [Morph Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/morph-transition/): The logo changes shape to match each page you visit. Best for brand marks. Places: Page changes. Entry in [03-page-transitions.md](03-page-transitions.md#morph-transition).
-- [Crossfade Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/crossfade/): The old page fades out as the new one fades in. Best for calm page changes. Places: Page changes. Entry in [03-page-transitions.md](03-page-transitions.md#crossfade-transition).
-- [Slide Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/slide-transition/): Pages slide across, and going back slides the other way. Best for step flows. Places: Page changes. Entry in [03-page-transitions.md](03-page-transitions.md#slide-transition).
-- [Zoom Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/zoom-transition/): The pages zoom as they swap, as if moving in depth. Best for opening details. Places: Page changes. Entry in [03-page-transitions.md](03-page-transitions.md#zoom-transition).
-- [Flash / Light Leak Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/flash-transition/): A burst of light hides the moment the page changes. Best for bold, lively sites. Places: Page changes. Entry in [03-page-transitions.md](03-page-transitions.md#flash--light-leak-transition).
-- [Blur Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/blur-transition/): The old page blurs away and the new one comes into focus. Best for photo sites. Places: Page changes, Images & cards. Entry in [03-page-transitions.md](03-page-transitions.md#blur-transition).
-- [Elastic Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/elastic-transition/): The new page slides in, goes too far and springs back. Best for playful apps. Places: Page changes. Entry in [03-page-transitions.md](03-page-transitions.md#elastic-transition).
-- [Portal / Tunnel Zoom](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/portal-zoom/): The next page opens out of a circle you click. Best for big reveals. Places: Page changes. Entry in [03-page-transitions.md](03-page-transitions.md#portal--tunnel-zoom).
-- [Dissolve Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/dissolve/): The page breaks into tiles that give way to the next. Best for photo galleries. Places: Page changes, Images & cards. Entry in [03-page-transitions.md](03-page-transitions.md#dissolve-transition).
-- [FLIP Technique](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/flip-technique/): Cards glide to their new places when the layout changes. Best for sorting lists. Places: Page changes, Images & cards. Entry in [03-page-transitions.md](03-page-transitions.md#flip-technique).
-- [Circle Reveal](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/circle-reveal/): Pages grow from any spot you click and shrink back into it. Best for app navigation. Places: Page changes. Entry in [03-page-transitions.md](03-page-transitions.md#circle-reveal).
-- [Overlay Wipe](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/overlay-wipe/): A colored panel sweeps over the page as it changes. Best for portfolio sites. Places: Page changes. Entry in [03-page-transitions.md](03-page-transitions.md#overlay-wipe).
-- [Page Curl](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/page-curl/): The page peels back from its corner like paper. Best for digital magazines. Places: Page changes, Images & cards. Entry in [03-page-transitions.md](03-page-transitions.md#page-curl).
-- [Cube Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/cube-transition/): The pages sit on a cube that turns to show the next. Best for photo stories. Places: Page changes, Images & cards. Entry in [03-page-transitions.md](03-page-transitions.md#cube-transition).
+- [View Transitions API](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/view-transitions-api/): The browser animates the change between two pages for you. Best for web apps. Places: Page changes.
+- [Shared Element Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/shared-element-transition/): A picture grows from the list into the next page's header. Best for galleries. Places: Page changes, Images & cards.
+- [Morph Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/morph-transition/): The logo changes shape to match each page you visit. Best for brand marks. Places: Page changes.
+- [Crossfade Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/crossfade/): The old page fades out as the new one fades in. Best for calm page changes. Places: Page changes.
+- [Slide Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/slide-transition/): Pages slide across, and going back slides the other way. Best for step flows. Places: Page changes.
+- [Zoom Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/zoom-transition/): The pages zoom as they swap, as if moving in depth. Best for opening details. Places: Page changes.
+- [Flash / Light Leak Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/flash-transition/): A burst of light hides the moment the page changes. Best for bold, lively sites. Places: Page changes.
+- [Blur Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/blur-transition/): The old page blurs away and the new one comes into focus. Best for photo sites. Places: Page changes, Images & cards.
+- [Elastic Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/elastic-transition/): The new page slides in, goes too far and springs back. Best for playful apps. Places: Page changes.
+- [Portal / Tunnel Zoom](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/portal-zoom/): The next page opens out of a circle you click. Best for big reveals. Places: Page changes.
+- [Dissolve Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/dissolve/): The page breaks into tiles that give way to the next. Best for photo galleries. Places: Page changes, Images & cards.
+- [FLIP Technique](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/flip-technique/): Cards glide to their new places when the layout changes. Best for sorting lists. Places: Page changes, Images & cards.
+- [Circle Reveal](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/circle-reveal/): Pages grow from any spot you click and shrink back into it. Best for app navigation. Places: Page changes.
+- [Overlay Wipe](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/overlay-wipe/): A colored panel sweeps over the page as it changes. Best for portfolio sites. Places: Page changes.
+- [Page Curl](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/page-curl/): The page peels back from its corner like paper. Best for digital magazines. Places: Page changes, Images & cards.
+- [Cube Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/cube-transition/): The pages sit on a cube that turns to show the next. Best for photo stories. Places: Page changes, Images & cards.
## 04 · Micro-Interactions
Short, user-triggered animations — hover, click, focus, loading states, and UI feedback patterns. 41 animations, in [04-micro-interactions.md](04-micro-interactions.md).
-- [Hover State Animation](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/hover-state/): Six ways a card can react when you point at it. Best for buttons and cards. Places: Buttons, Images & cards. Entry in [04-micro-interactions.md](04-micro-interactions.md#hover-state-animation).
-- [Click / Tap Ripple](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/click-ripple/): A ripple spreads out from the spot you press. Best for buttons and list items. Places: Buttons. Entry in [04-micro-interactions.md](04-micro-interactions.md#click--tap-ripple).
-- [Focus Ring Animation](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/focus-ring/): A ring closes in around the item the Tab key reaches. Best for forms and menus. Places: Menus & forms. Entry in [04-micro-interactions.md](04-micro-interactions.md#focus-ring-animation).
-- [Button Press Scale](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/button-press-scale/): Shrinks as you press it and springs back as you let go. Best for main buttons. Places: Buttons. Entry in [04-micro-interactions.md](04-micro-interactions.md#button-press-scale).
-- [Magnetic Button](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/magnetic-button/): Leans toward the pointer, then springs home. Best for one main button. Places: Buttons. Entry in [04-micro-interactions.md](04-micro-interactions.md#magnetic-button).
-- [Toggle / Switch Slide](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/toggle-switch/): The knob slides across as the switch turns on or off. Best for settings. Places: Buttons, Menus & forms. Entry in [04-micro-interactions.md](04-micro-interactions.md#toggle--switch-slide).
-- [Heart / Like Burst](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/heart-burst/): The heart pops and fills as small hearts burst out. Best for like buttons. Places: Buttons, Loading & messages. Entry in [04-micro-interactions.md](04-micro-interactions.md#heart--like-burst).
-- [Success Confetti](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/success-confetti/): Confetti bursts from the button when a task is done. Best for big moments. Places: Buttons, Loading & messages. Entry in [04-micro-interactions.md](04-micro-interactions.md#success-confetti).
-- [Skeleton Loader](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/skeleton-loader/): Gray shapes hold the place of content while it loads. Best for feeds and cards. Places: Loading & messages, Images & cards. Entry in [04-micro-interactions.md](04-micro-interactions.md#skeleton-loader).
-- [Shimmer Effect](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/shimmer-effect/): A band of light sweeps over gray placeholders. Best for loading screens. Places: Loading & messages. Entry in [04-micro-interactions.md](04-micro-interactions.md#shimmer-effect).
-- [Loading Spinner](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/loading-spinner/): Six small shapes loop to show that something is loading. Best for short waits. Places: Loading & messages. Entry in [04-micro-interactions.md](04-micro-interactions.md#loading-spinner).
-- [Progress Animation](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/progress-animation/): A bar, a ring and steps fill up to show progress. Best for uploads. Places: Loading & messages. Entry in [04-micro-interactions.md](04-micro-interactions.md#progress-animation).
-- [Checkmark Draw](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/checkmark-draw/): A tick draws itself in a circle once a task succeeds. Best for forms. Places: Loading & messages, Menus & forms. Entry in [04-micro-interactions.md](04-micro-interactions.md#checkmark-draw).
-- [Form Field Morph](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/form-field-morph/): The label moves up out of the way as you type. Best for sign-up forms. Places: Menus & forms. Entry in [04-micro-interactions.md](04-micro-interactions.md#form-field-morph).
-- [Notification Badge Pulse](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/badge-pulse/): A badge on an icon pulses to catch the eye. Best for unread messages. Places: Loading & messages, Buttons. Entry in [04-micro-interactions.md](04-micro-interactions.md#notification-badge-pulse).
-- [Tooltip Reveal](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/tooltip-reveal/): A small label fades in after a short pause. Best for icon buttons. Places: Buttons. Entry in [04-micro-interactions.md](04-micro-interactions.md#tooltip-reveal).
-- [Drawer / Panel Slide](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/drawer-slide/): A side panel slides in over a dimmed page. Best for mobile menus. Places: Menus & forms. Entry in [04-micro-interactions.md](04-micro-interactions.md#drawer--panel-slide).
-- [Modal Expand](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/modal-expand/): A window grows out of the button you pressed. Best for detail views. Places: Images & cards, Buttons. Entry in [04-micro-interactions.md](04-micro-interactions.md#modal-expand).
-- [Accordion Open/Close](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/accordion/): Each question opens smoothly to show its answer. Best for FAQ pages. Places: Menus & forms. Entry in [04-micro-interactions.md](04-micro-interactions.md#accordion-openclose).
-- [Cursor Follower](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/cursor-follower/): A dot trails your pointer and flips the colors under it. Best for portfolios. Places: Backgrounds. Entry in [04-micro-interactions.md](04-micro-interactions.md#cursor-follower).
-- [Error Shake](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/error-shake/): A field shakes side to side when the input is wrong. Best for sign-in forms. Places: Menus & forms, Loading & messages. Entry in [04-micro-interactions.md](04-micro-interactions.md#error-shake).
-- [Swipe to Dismiss](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/swipe-to-dismiss/): A card dragged sideways flies off and the list closes up. Best for inboxes. Places: Images & cards. Entry in [04-micro-interactions.md](04-micro-interactions.md#swipe-to-dismiss).
-- [Hamburger Menu Toggle](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/hamburger-menu-toggle/): Three lines turn into an X as the menu opens. Best for mobile menus. Places: Menus & forms, Buttons. Entry in [04-micro-interactions.md](04-micro-interactions.md#hamburger-menu-toggle).
-- [Theme Toggle Morph](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/theme-toggle-morph/): A sun turns into a moon as the colors switch to dark. Best for theme buttons. Places: Buttons. Entry in [04-micro-interactions.md](04-micro-interactions.md#theme-toggle-morph).
-- [Copy to Clipboard](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/copy-to-clipboard/): Copy turns into a tick and Copied, then changes back. Best for codes and links. Places: Buttons, Loading & messages. Entry in [04-micro-interactions.md](04-micro-interactions.md#copy-to-clipboard).
-- [Star Rating](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/star-rating/): Stars fill up to your pointer and pop when you choose. Best for reviews. Places: Menus & forms, Buttons. Entry in [04-micro-interactions.md](04-micro-interactions.md#star-rating).
-- [Toast Notification](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/toast-notification/): Short messages slide into a corner, then leave on their own. Best for updates. Places: Loading & messages. Entry in [04-micro-interactions.md](04-micro-interactions.md#toast-notification).
-- [Segmented Control](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/segmented-control/): A highlight slides to the option you pick. Best for switching views. Places: Menus & forms, Buttons. Entry in [04-micro-interactions.md](04-micro-interactions.md#segmented-control).
-- [Pull to Refresh](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/pull-to-refresh/): Pulling a list down shows a spinner, then new items. Best for feeds. Places: Loading & messages. Entry in [04-micro-interactions.md](04-micro-interactions.md#pull-to-refresh).
-- [Animated Gradient Border](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/gradient-border/): A band of colors runs around the edge of a card or button. Best for featured offers. Places: Buttons, Images & cards. Entry in [04-micro-interactions.md](04-micro-interactions.md#animated-gradient-border).
-- [Spotlight Hover Glow](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/spotlight-hover/): A soft glow follows the pointer and lights card edges. Best for feature grids. Places: Images & cards, Buttons. Entry in [04-micro-interactions.md](04-micro-interactions.md#spotlight-hover-glow).
-- [Add-to-Cart Fly](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/add-to-cart-fly/): The product flies into the cart, which bumps and counts up. Best for shops. Places: Buttons. Entry in [04-micro-interactions.md](04-micro-interactions.md#add-to-cart-fly).
-- [Drag to Reorder](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/drag-to-reorder/): Drag an item and the others slide aside to make room. Best for to-do lists. Places: Menus & forms. Entry in [04-micro-interactions.md](04-micro-interactions.md#drag-to-reorder).
-- [Rolling Numbers](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/rolling-numbers/): Each digit rolls to its new value, like a mileage counter. Best for prices. Places: Text, Loading & messages. Entry in [04-micro-interactions.md](04-micro-interactions.md#rolling-numbers).
-- [Typing Indicator](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/typing-indicator/): Three dots in a chat bubble move in turn while someone types. Best for chat apps. Places: Loading & messages. Entry in [04-micro-interactions.md](04-micro-interactions.md#typing-indicator).
-- [Hold to Confirm](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/hold-to-confirm/): A button fills up while you hold it and acts only once it is full. Best for delete buttons. Places: Buttons. Entry in [04-micro-interactions.md](04-micro-interactions.md#hold-to-confirm).
-- [Expanding Search](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/expanding-search/): A search icon opens into a field, then closes when done. Best for toolbars. Places: Menus & forms, Buttons. Entry in [04-micro-interactions.md](04-micro-interactions.md#expanding-search).
-- [Button Loading States](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/button-loading-states/): The button becomes a spinner, then a tick or a cross. Best for Save buttons. Places: Buttons, Loading & messages. Entry in [04-micro-interactions.md](04-micro-interactions.md#button-loading-states).
-- [Image Trail](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/image-trail/): Pictures pop up in a trail behind your pointer, then fade. Best for portfolios. Places: Images & cards, Page intros. Entry in [04-micro-interactions.md](04-micro-interactions.md#image-trail).
-- [Gooey Menu](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/gooey-menu/): Small buttons ooze out of a round button like liquid. Best for quick actions. Places: Menus & forms, Buttons. Entry in [04-micro-interactions.md](04-micro-interactions.md#gooey-menu).
-- [Dynamic Island](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/dynamic-island/): A black pill grows into a notification, then shrinks back. Best for live updates. Places: Loading & messages, Menus & forms. Entry in [04-micro-interactions.md](04-micro-interactions.md#dynamic-island).
+- [Hover State Animation](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/hover-state/): Six ways a card can react when you point at it. Best for buttons and cards. Places: Buttons, Images & cards.
+- [Click / Tap Ripple](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/click-ripple/): A ripple spreads out from the spot you press. Best for buttons and list items. Places: Buttons.
+- [Focus Ring Animation](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/focus-ring/): A ring closes in around the item the Tab key reaches. Best for forms and menus. Places: Menus & forms.
+- [Button Press Scale](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/button-press-scale/): Shrinks as you press it and springs back as you let go. Best for main buttons. Places: Buttons.
+- [Magnetic Button](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/magnetic-button/): Leans toward the pointer, then springs home. Best for one main button. Places: Buttons.
+- [Toggle / Switch Slide](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/toggle-switch/): The knob slides across as the switch turns on or off. Best for settings. Places: Buttons, Menus & forms.
+- [Heart / Like Burst](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/heart-burst/): The heart pops and fills as small hearts burst out. Best for like buttons. Places: Buttons, Loading & messages.
+- [Success Confetti](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/success-confetti/): Confetti bursts from the button when a task is done. Best for big moments. Places: Buttons, Loading & messages.
+- [Skeleton Loader](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/skeleton-loader/): Gray shapes hold the place of content while it loads. Best for feeds and cards. Places: Loading & messages, Images & cards.
+- [Shimmer Effect](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/shimmer-effect/): A band of light sweeps over gray placeholders. Best for loading screens. Places: Loading & messages.
+- [Loading Spinner](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/loading-spinner/): Six small shapes loop to show that something is loading. Best for short waits. Places: Loading & messages.
+- [Progress Animation](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/progress-animation/): A bar, a ring and steps fill up to show progress. Best for uploads. Places: Loading & messages.
+- [Checkmark Draw](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/checkmark-draw/): A tick draws itself in a circle once a task succeeds. Best for forms. Places: Loading & messages, Menus & forms.
+- [Form Field Morph](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/form-field-morph/): The label moves up out of the way as you type. Best for sign-up forms. Places: Menus & forms.
+- [Notification Badge Pulse](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/badge-pulse/): A badge on an icon pulses to catch the eye. Best for unread messages. Places: Loading & messages, Buttons.
+- [Tooltip Reveal](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/tooltip-reveal/): A small label fades in after a short pause. Best for icon buttons. Places: Buttons.
+- [Drawer / Panel Slide](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/drawer-slide/): A side panel slides in over a dimmed page. Best for mobile menus. Places: Menus & forms.
+- [Modal Expand](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/modal-expand/): A window grows out of the button you pressed. Best for detail views. Places: Images & cards, Buttons.
+- [Accordion Open/Close](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/accordion/): Each question opens smoothly to show its answer. Best for FAQ pages. Places: Menus & forms.
+- [Cursor Follower](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/cursor-follower/): A dot trails your pointer and flips the colors under it. Best for portfolios. Places: Backgrounds.
+- [Error Shake](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/error-shake/): A field shakes side to side when the input is wrong. Best for sign-in forms. Places: Menus & forms, Loading & messages.
+- [Swipe to Dismiss](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/swipe-to-dismiss/): A card dragged sideways flies off and the list closes up. Best for inboxes. Places: Images & cards.
+- [Hamburger Menu Toggle](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/hamburger-menu-toggle/): Three lines turn into an X as the menu opens. Best for mobile menus. Places: Menus & forms, Buttons.
+- [Theme Toggle Morph](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/theme-toggle-morph/): A sun turns into a moon as the colors switch to dark. Best for theme buttons. Places: Buttons.
+- [Copy to Clipboard](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/copy-to-clipboard/): Copy turns into a tick and Copied, then changes back. Best for codes and links. Places: Buttons, Loading & messages.
+- [Star Rating](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/star-rating/): Stars fill up to your pointer and pop when you choose. Best for reviews. Places: Menus & forms, Buttons.
+- [Toast Notification](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/toast-notification/): Short messages slide into a corner, then leave on their own. Best for updates. Places: Loading & messages.
+- [Segmented Control](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/segmented-control/): A highlight slides to the option you pick. Best for switching views. Places: Menus & forms, Buttons.
+- [Pull to Refresh](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/pull-to-refresh/): Pulling a list down shows a spinner, then new items. Best for feeds. Places: Loading & messages.
+- [Animated Gradient Border](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/gradient-border/): A band of colors runs around the edge of a card or button. Best for featured offers. Places: Buttons, Images & cards.
+- [Spotlight Hover Glow](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/spotlight-hover/): A soft glow follows the pointer and lights card edges. Best for feature grids. Places: Images & cards, Buttons.
+- [Add-to-Cart Fly](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/add-to-cart-fly/): The product flies into the cart, which bumps and counts up. Best for shops. Places: Buttons.
+- [Drag to Reorder](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/drag-to-reorder/): Drag an item and the others slide aside to make room. Best for to-do lists. Places: Menus & forms.
+- [Rolling Numbers](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/rolling-numbers/): Each digit rolls to its new value, like a mileage counter. Best for prices. Places: Text, Loading & messages.
+- [Typing Indicator](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/typing-indicator/): Three dots in a chat bubble move in turn while someone types. Best for chat apps. Places: Loading & messages.
+- [Hold to Confirm](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/hold-to-confirm/): A button fills up while you hold it and acts only once it is full. Best for delete buttons. Places: Buttons.
+- [Expanding Search](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/expanding-search/): A search icon opens into a field, then closes when done. Best for toolbars. Places: Menus & forms, Buttons.
+- [Button Loading States](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/button-loading-states/): The button becomes a spinner, then a tick or a cross. Best for Save buttons. Places: Buttons, Loading & messages.
+- [Image Trail](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/image-trail/): Pictures pop up in a trail behind your pointer, then fade. Best for portfolios. Places: Images & cards, Page intros.
+- [Gooey Menu](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/gooey-menu/): Small buttons ooze out of a round button like liquid. Best for quick actions. Places: Menus & forms, Buttons.
+- [Dynamic Island](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/dynamic-island/): A black pill grows into a notification, then shrinks back. Best for live updates. Places: Loading & messages, Menus & forms.
## 05 · Text & Typography
Animations specifically for type — kinetic motion, character-level effects, gradient flows, and word transformations. 19 animations, in [05-text-typography.md](05-text-typography.md).
-- [Kinetic Typography](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/kinetic-typography/): Words arrive and leave one by one, each moving its own way. Best for intros. Places: Text, Page intros. Entry in [05-text-typography.md](05-text-typography.md#kinetic-typography).
-- [Typewriter Effect](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/typewriter-effect/): Text types itself out behind a blinking cursor. Best for short taglines. Places: Text, Page intros. Entry in [05-text-typography.md](05-text-typography.md#typewriter-effect).
-- [Scramble / Glitch Text](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/scramble-text/): Random symbols lock into the real text, left to right. Best for tech headlines. Places: Text. Entry in [05-text-typography.md](05-text-typography.md#scramble--glitch-text).
-- [Variable Font Morph](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/variable-font-morph/): A word smoothly turns bold, then light, and leans over. Best for headlines. Places: Text. Entry in [05-text-typography.md](05-text-typography.md#variable-font-morph).
-- [Text Clip-Path Reveal](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/text-clip-path-reveal/): Each line of a headline is uncovered in turn. Best for big headlines. Places: Text, Page intros. Entry in [05-text-typography.md](05-text-typography.md#text-clip-path-reveal).
-- [Marquee / Ticker](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/marquee-ticker/): Text scrolls sideways in an endless loop, with no seam. Best for news tickers. Places: Text. Entry in [05-text-typography.md](05-text-typography.md#marquee--ticker).
-- [Text Morphing](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/text-morphing/): One word changes into the next, letter by letter. Best for short labels. Places: Text. Entry in [05-text-typography.md](05-text-typography.md#text-morphing).
-- [Text Gradient Animation](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/text-gradient-animation/): Colors flow through the letters while the text stays still. Best for headlines. Places: Text. Entry in [05-text-typography.md](05-text-typography.md#text-gradient-animation).
-- [Outline to Fill](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/outline-to-fill/): Hollow letters fill with color, as a wipe or a fade. Best for big headlines. Places: Text. Entry in [05-text-typography.md](05-text-typography.md#outline-to-fill).
-- [Enter/Exit Typography](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/enter-exit-typography/): Each phrase comes in, stays long enough to read, then leaves. Best for slogans. Places: Text, Page intros. Entry in [05-text-typography.md](05-text-typography.md#enterexit-typography).
-- [Rotate Word Carousel](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/rotate-word-carousel/): One word in a sentence keeps swapping for the next. Best for hero headlines. Places: Text. Entry in [05-text-typography.md](05-text-typography.md#rotate-word-carousel).
-- [Glitch Text](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/glitch-text/): Text tears into red and cyan strips like a broken signal. Best for bold titles. Places: Text. Entry in [05-text-typography.md](05-text-typography.md#glitch-text).
-- [Text on a Path](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/text-on-path/): Text travels along a wave, an arc or a circle. Best for badges and seals. Places: Text. Entry in [05-text-typography.md](05-text-typography.md#text-on-a-path).
-- [Wavy Text](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/wavy-text/): A wave rolls through the word, letter by letter. Best for playful titles. Places: Text. Entry in [05-text-typography.md](05-text-typography.md#wavy-text).
-- [Highlighter Sweep](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/highlighter-sweep/): A marker sweeps in behind the key words, one after another. Best for key points. Places: Text. Entry in [05-text-typography.md](05-text-typography.md#highlighter-sweep).
-- [Split-Flap Board](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/split-flap-board/): Tiles flip through the letters to spell a word, like an airport board. Best for hero titles. Places: Text, Page intros. Entry in [05-text-typography.md](05-text-typography.md#split-flap-board).
-- [Neon Flicker](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/neon-flicker/): Glowing letters sputter now and then, like a worn neon sign. Best for night themes. Places: Text, Backgrounds. Entry in [05-text-typography.md](05-text-typography.md#neon-flicker).
-- [Handwriting Draw](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/handwriting-draw/): A word writes itself stroke by stroke, as if by a pen. Best for greetings and signatures. Places: Text, Page intros. Entry in [05-text-typography.md](05-text-typography.md#handwriting-draw).
-- [Text Particles](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/text-particles/): A word of dots scatters from your pointer and springs back. Best for intros. Places: Text, Page intros. Entry in [05-text-typography.md](05-text-typography.md#text-particles).
+- [Kinetic Typography](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/kinetic-typography/): Words arrive and leave one by one, each moving its own way. Best for intros. Places: Text, Page intros.
+- [Typewriter Effect](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/typewriter-effect/): Text types itself out behind a blinking cursor. Best for short taglines. Places: Text, Page intros.
+- [Scramble / Glitch Text](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/scramble-text/): Random symbols lock into the real text, left to right. Best for tech headlines. Places: Text.
+- [Variable Font Morph](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/variable-font-morph/): A word smoothly turns bold, then light, and leans over. Best for headlines. Places: Text.
+- [Text Clip-Path Reveal](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/text-clip-path-reveal/): Each line of a headline is uncovered in turn. Best for big headlines. Places: Text, Page intros.
+- [Marquee / Ticker](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/marquee-ticker/): Text scrolls sideways in an endless loop, with no seam. Best for news tickers. Places: Text.
+- [Text Morphing](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/text-morphing/): One word changes into the next, letter by letter. Best for short labels. Places: Text.
+- [Text Gradient Animation](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/text-gradient-animation/): Colors flow through the letters while the text stays still. Best for headlines. Places: Text.
+- [Outline to Fill](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/outline-to-fill/): Hollow letters fill with color, as a wipe or a fade. Best for big headlines. Places: Text.
+- [Enter/Exit Typography](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/enter-exit-typography/): Each phrase comes in, stays long enough to read, then leaves. Best for slogans. Places: Text, Page intros.
+- [Rotate Word Carousel](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/rotate-word-carousel/): One word in a sentence keeps swapping for the next. Best for hero headlines. Places: Text.
+- [Glitch Text](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/glitch-text/): Text tears into red and cyan strips like a broken signal. Best for bold titles. Places: Text.
+- [Text on a Path](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/text-on-path/): Text travels along a wave, an arc or a circle. Best for badges and seals. Places: Text.
+- [Wavy Text](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/wavy-text/): A wave rolls through the word, letter by letter. Best for playful titles. Places: Text.
+- [Highlighter Sweep](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/highlighter-sweep/): A marker sweeps in behind the key words, one after another. Best for key points. Places: Text.
+- [Split-Flap Board](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/split-flap-board/): Tiles flip through the letters to spell a word, like an airport board. Best for hero titles. Places: Text, Page intros.
+- [Neon Flicker](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/neon-flicker/): Glowing letters sputter now and then, like a worn neon sign. Best for night themes. Places: Text, Backgrounds.
+- [Handwriting Draw](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/handwriting-draw/): A word writes itself stroke by stroke, as if by a pen. Best for greetings and signatures. Places: Text, Page intros.
+- [Text Particles](https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/text-particles/): A word of dots scatters from your pointer and springs back. Best for intros. Places: Text, Page intros.
## 06 · 3D & Advanced
WebGL, shaders, particles, 3D transforms, simulations, and other heavier effects. 26 animations, in [06-3d-advanced.md](06-3d-advanced.md).
-- [3D Model Orbit](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/3d-model-orbit/): A lit 3D shape spins, or turns to face your pointer. Best for product views. Places: Images & cards. Entry in [06-3d-advanced.md](06-3d-advanced.md#3d-model-orbit).
-- [Scroll-Driven 3D Rotation](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/scroll-driven-3d-rotation/): Scrolling turns a 3D cube from pose to pose. Best for product tours. Places: Scrolling, Images & cards. Entry in [06-3d-advanced.md](06-3d-advanced.md#scroll-driven-3d-rotation).
-- [Parallax 3D Tilt](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/parallax-3d-tilt/): A card tilts toward your pointer, and a light slides over it. Best for cards. Places: Images & cards. Entry in [06-3d-advanced.md](06-3d-advanced.md#parallax-3d-tilt).
-- [Canvas Particle Effect](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/canvas-particle-effect/): Dots drift, link up when close, and dodge your pointer. Best for tech sites. Places: Backgrounds. Entry in [06-3d-advanced.md](06-3d-advanced.md#canvas-particle-effect).
-- [Fluid / Liquid Simulation](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/fluid-simulation/): Blobs drift and melt into each other like liquid. Best for hero backgrounds. Places: Backgrounds. Entry in [06-3d-advanced.md](06-3d-advanced.md#fluid--liquid-simulation).
-- [Glassmorphism Animated](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/glassmorphism-animated/): Frosted glass cards blur the colors behind them. Best for cards and panels. Places: Images & cards, Backgrounds. Entry in [06-3d-advanced.md](06-3d-advanced.md#glassmorphism-animated).
-- [WebGL Shader Animation](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/webgl-shader-animation/): Moving color patterns computed for every pixel. Best for bold backgrounds. Places: Backgrounds. Entry in [06-3d-advanced.md](06-3d-advanced.md#webgl-shader-animation).
-- [Noise-Based Motion](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/noise-based-motion/): Smooth noise makes dots sway and a blob ripple. Best for calm backgrounds. Places: Backgrounds. Entry in [06-3d-advanced.md](06-3d-advanced.md#noise-based-motion).
-- [SVG Path Animation](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/svg-path-animation/): A line drawing draws itself, stroke by stroke. Best for icons and logos. Places: Images & cards, Page intros. Entry in [06-3d-advanced.md](06-3d-advanced.md#svg-path-animation).
-- [Chromatic Aberration](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/chromatic-aberration/): A word splits into red, green and blue fringes. Best for bold titles. Places: Text. Entry in [06-3d-advanced.md](06-3d-advanced.md#chromatic-aberration).
-- [2.5D / Pseudo-3D](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/2-5d-pseudo-3d/): Flat layers slide by different amounts, faking depth. Best for hero scenes. Places: Images & cards. Entry in [06-3d-advanced.md](06-3d-advanced.md#25d--pseudo-3d).
-- [Ray Marching / SDF Scene](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/ray-marching-sdf/): A 3D scene drawn only from formulas, circled by a camera. Best for art pages. Places: Backgrounds. Entry in [06-3d-advanced.md](06-3d-advanced.md#ray-marching--sdf-scene).
-- [GPGPU Particle System](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/gpgpu-particle-system/): Tens of thousands of particles flow on the graphics chip. Best for hero effects. Places: Backgrounds. Entry in [06-3d-advanced.md](06-3d-advanced.md#gpgpu-particle-system).
-- [Image Distortion on Hover](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/image-distortion-hover/): The picture ripples and bends around your pointer. Best for portfolio images. Places: Images & cards. Entry in [06-3d-advanced.md](06-3d-advanced.md#image-distortion-on-hover).
-- [Cloth / Soft-Body Simulation](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/cloth-simulation/): A cloth sways in the wind, and you can drag it around. Best for playful pages. Places: Images & cards. Entry in [06-3d-advanced.md](06-3d-advanced.md#cloth--soft-body-simulation).
-- [Volumetric Smoke / 3D Noise](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/volumetric-smoke/): Soft smoke curls upward, drawn as a real 3D cloud. Best for moody backgrounds. Places: Backgrounds. Entry in [06-3d-advanced.md](06-3d-advanced.md#volumetric-smoke--3d-noise).
-- [Morphing Blob](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/morphing-blob/): Blobs melt together, and one drop chases your pointer. Best for hero sections. Places: Backgrounds. Entry in [06-3d-advanced.md](06-3d-advanced.md#morphing-blob).
-- [3D Flip Card](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/flip-card-3d/): A card turns over in 3D to show its back. Best for profile and product cards. Places: Images & cards. Entry in [06-3d-advanced.md](06-3d-advanced.md#3d-flip-card).
-- [3D Carousel](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/carousel-3d/): Cards stand in a ring that spins in 3D as you drag it. Best for image galleries. Places: Images & cards. Entry in [06-3d-advanced.md](06-3d-advanced.md#3d-carousel).
-- [Depth-Map Photo](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/depth-map-photo/): A flat photo turns 3D as you point: near parts shift more. Best for hero images. Places: Images & cards, Page intros. Entry in [06-3d-advanced.md](06-3d-advanced.md#depth-map-photo).
-- [Flocking](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/flocking/): Birds swirl and turn together as one flock. Best for calm backgrounds. Places: Backgrounds. Entry in [06-3d-advanced.md](06-3d-advanced.md#flocking).
-- [ASCII / Halftone](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/ascii-halftone/): A moving picture is redrawn with letters or dots. Best for retro and tech looks. Places: Images & cards, Backgrounds. Entry in [06-3d-advanced.md](06-3d-advanced.md#ascii--halftone).
-- [2D Physics](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/physics-2d/): Balls drop where you click, bounce and pile up. Best for playful intros. Places: Page intros, Backgrounds. Entry in [06-3d-advanced.md](06-3d-advanced.md#2d-physics).
-- [Liquid Glass](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/liquid-glass/): Drag a glass panel and the picture behind it bends at the edges. Best for cards. Places: Images & cards, Menus & forms. Entry in [06-3d-advanced.md](06-3d-advanced.md#liquid-glass).
-- [Holographic Card](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/holographic-card/): A card tilts as you point, and its rainbow foil shimmers. Best for collectibles. Places: Images & cards. Entry in [06-3d-advanced.md](06-3d-advanced.md#holographic-card).
-- [Infinite Zoom](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/infinite-zoom/): The view keeps zooming into pictures inside pictures. Best for page intros. Places: Page intros, Backgrounds. Entry in [06-3d-advanced.md](06-3d-advanced.md#infinite-zoom).
+- [3D Model Orbit](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/3d-model-orbit/): A lit 3D shape spins, or turns to face your pointer. Best for product views. Places: Images & cards.
+- [Scroll-Driven 3D Rotation](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/scroll-driven-3d-rotation/): Scrolling turns a 3D cube from pose to pose. Best for product tours. Places: Scrolling, Images & cards.
+- [Parallax 3D Tilt](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/parallax-3d-tilt/): A card tilts toward your pointer, and a light slides over it. Best for cards. Places: Images & cards.
+- [Canvas Particle Effect](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/canvas-particle-effect/): Dots drift, link up when close, and dodge your pointer. Best for tech sites. Places: Backgrounds.
+- [Fluid / Liquid Simulation](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/fluid-simulation/): Blobs drift and melt into each other like liquid. Best for hero backgrounds. Places: Backgrounds.
+- [Glassmorphism Animated](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/glassmorphism-animated/): Frosted glass cards blur the colors behind them. Best for cards and panels. Places: Images & cards, Backgrounds.
+- [WebGL Shader Animation](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/webgl-shader-animation/): Moving color patterns computed for every pixel. Best for bold backgrounds. Places: Backgrounds.
+- [Noise-Based Motion](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/noise-based-motion/): Smooth noise makes dots sway and a blob ripple. Best for calm backgrounds. Places: Backgrounds.
+- [SVG Path Animation](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/svg-path-animation/): A line drawing draws itself, stroke by stroke. Best for icons and logos. Places: Images & cards, Page intros.
+- [Chromatic Aberration](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/chromatic-aberration/): A word splits into red, green and blue fringes. Best for bold titles. Places: Text.
+- [2.5D / Pseudo-3D](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/2-5d-pseudo-3d/): Flat layers slide by different amounts, faking depth. Best for hero scenes. Places: Images & cards.
+- [Ray Marching / SDF Scene](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/ray-marching-sdf/): A 3D scene drawn only from formulas, circled by a camera. Best for art pages. Places: Backgrounds.
+- [GPGPU Particle System](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/gpgpu-particle-system/): Tens of thousands of particles flow on the graphics chip. Best for hero effects. Places: Backgrounds.
+- [Image Distortion on Hover](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/image-distortion-hover/): The picture ripples and bends around your pointer. Best for portfolio images. Places: Images & cards.
+- [Cloth / Soft-Body Simulation](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/cloth-simulation/): A cloth sways in the wind, and you can drag it around. Best for playful pages. Places: Images & cards.
+- [Volumetric Smoke / 3D Noise](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/volumetric-smoke/): Soft smoke curls upward, drawn as a real 3D cloud. Best for moody backgrounds. Places: Backgrounds.
+- [Morphing Blob](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/morphing-blob/): Blobs melt together, and one drop chases your pointer. Best for hero sections. Places: Backgrounds.
+- [3D Flip Card](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/flip-card-3d/): A card turns over in 3D to show its back. Best for profile and product cards. Places: Images & cards.
+- [3D Carousel](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/carousel-3d/): Cards stand in a ring that spins in 3D as you drag it. Best for image galleries. Places: Images & cards.
+- [Depth-Map Photo](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/depth-map-photo/): A flat photo turns 3D as you point: near parts shift more. Best for hero images. Places: Images & cards, Page intros.
+- [Flocking](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/flocking/): Birds swirl and turn together as one flock. Best for calm backgrounds. Places: Backgrounds.
+- [ASCII / Halftone](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/ascii-halftone/): A moving picture is redrawn with letters or dots. Best for retro and tech looks. Places: Images & cards, Backgrounds.
+- [2D Physics](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/physics-2d/): Balls drop where you click, bounce and pile up. Best for playful intros. Places: Page intros, Backgrounds.
+- [Liquid Glass](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/liquid-glass/): Drag a glass panel and the picture behind it bends at the edges. Best for cards. Places: Images & cards, Menus & forms.
+- [Holographic Card](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/holographic-card/): A card tilts as you point, and its rainbow foil shimmers. Best for collectibles. Places: Images & cards.
+- [Infinite Zoom](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/infinite-zoom/): The view keeps zooming into pictures inside pictures. Best for page intros. Places: Page intros, Backgrounds.
## 07 · Ambient & Background
Passive, looping effects that hold visual interest without demanding attention — gradients, particles, grain, and glows. 23 animations, in [07-ambient-background.md](07-ambient-background.md).
-- [Animated Gradient Background](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/animated-gradient-background/): Colors slowly drift across a soft gradient background. Best for hero sections. Places: Backgrounds. Entry in [07-ambient-background.md](07-ambient-background.md#animated-gradient-background).
-- [Mesh Gradient Animation](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/mesh-gradient/): Blurred blobs of color drift and melt together. Best for landing pages. Places: Backgrounds. Entry in [07-ambient-background.md](07-ambient-background.md#mesh-gradient-animation).
-- [Aurora / Northern Lights](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/aurora/): Blurred bands of light sway like the northern lights. Best for dark backgrounds. Places: Backgrounds. Entry in [07-ambient-background.md](07-ambient-background.md#aurora--northern-lights).
-- [Grain / Film Noise Overlay](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/grain-overlay/): Fine grain flickers over the page, like old film. Best for editorial sites. Places: Backgrounds, Images & cards. Entry in [07-ambient-background.md](07-ambient-background.md#grain--film-noise-overlay).
-- [Scanline Effect](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/scanline/): Dark lines and a sweeping beam imitate an old TV screen. Best for retro sites. Places: Backgrounds. Entry in [07-ambient-background.md](07-ambient-background.md#scanline-effect).
-- [Light Leak](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/light-leak/): Warm light washes in from a corner at random times. Best for photo sites. Places: Backgrounds, Images & cards. Entry in [07-ambient-background.md](07-ambient-background.md#light-leak).
-- [Starfield / Space Particles](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/starfield/): Stars stream toward you out of the dark. Best for space themes. Places: Backgrounds. Entry in [07-ambient-background.md](07-ambient-background.md#starfield--space-particles).
-- [Breathing / Pulsing Glow](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/breathing-glow/): A soft glow slowly grows and shrinks, like calm breathing. Best for idle states. Places: Backgrounds, Loading & messages. Entry in [07-ambient-background.md](07-ambient-background.md#breathing--pulsing-glow).
-- [Ambient Ripple Effect](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/ambient-ripple/): Rings spread from a few spots, like drops on a still pond. Best for hero areas. Places: Backgrounds. Entry in [07-ambient-background.md](07-ambient-background.md#ambient-ripple-effect).
-- [Floating Elements](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/floating-elements/): Small shapes drift slowly, each on its own path. Best for hero backgrounds. Places: Backgrounds. Entry in [07-ambient-background.md](07-ambient-background.md#floating-elements).
-- [Grid / Dot Pattern Parallax](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/grid-dot-pattern-parallax/): A dot grid shifts gently against your pointer for depth. Best for tech sites. Places: Backgrounds. Entry in [07-ambient-background.md](07-ambient-background.md#grid--dot-pattern-parallax).
-- [Abstract Geometric Motion](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/abstract-geometric-motion/): Shapes turn, spread and flow in a calm, endless pattern. Best for music players. Places: Backgrounds. Entry in [07-ambient-background.md](07-ambient-background.md#abstract-geometric-motion).
-- [Particle Constellation](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/particle-constellation/): Drifting dots link up with lines whenever they come close. Best for tech sites. Places: Backgrounds. Entry in [07-ambient-background.md](07-ambient-background.md#particle-constellation).
-- [Flow Field](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/flow-field/): Particles ride invisible currents, leaving fading trails. Best for art pages. Places: Backgrounds. Entry in [07-ambient-background.md](07-ambient-background.md#flow-field).
-- [Synthwave Grid](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/synthwave-grid/): A glowing grid rolls toward you under a striped sun. Best for music and games. Places: Backgrounds. Entry in [07-ambient-background.md](07-ambient-background.md#synthwave-grid).
-- [Matrix Rain](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/matrix-rain/): Columns of glowing characters rain down a dark screen. Best for tech themes. Places: Backgrounds. Entry in [07-ambient-background.md](07-ambient-background.md#matrix-rain).
-- [Plasma Field](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/plasma/): Smooth waves of color flow endlessly, made from math. Best for creative sites. Places: Backgrounds. Entry in [07-ambient-background.md](07-ambient-background.md#plasma-field).
-- [Wave Layers](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/wave-layers/): Layers of waves drift sideways, each at its own speed. Best for hero sections. Places: Backgrounds, Page intros. Entry in [07-ambient-background.md](07-ambient-background.md#wave-layers).
-- [Snow / Rain](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/snow-rain/): Snow drifts down, or rain falls in streaks, over a dark town. Best for seasonal pages. Places: Backgrounds. Entry in [07-ambient-background.md](07-ambient-background.md#snow--rain).
-- [Fireworks](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/fireworks/): Rockets rise and burst into glowing sparks that fall and fade. Best for celebrations. Places: Backgrounds, Page intros. Entry in [07-ambient-background.md](07-ambient-background.md#fireworks).
-- [Topographic Lines](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/topographic-lines/): Lines like those on a hiking map slowly bend and drift. Best for outdoor brands. Places: Backgrounds. Entry in [07-ambient-background.md](07-ambient-background.md#topographic-lines).
-- [Light Rays](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/light-rays/): Soft beams of light fall from above and slowly sweep across. Best for hero intros. Places: Backgrounds, Page intros. Entry in [07-ambient-background.md](07-ambient-background.md#light-rays).
-- [Game of Life](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/game-of-life/): Cells live and die by their neighbors, and patterns grow. Best for tech sites. Places: Backgrounds. Entry in [07-ambient-background.md](07-ambient-background.md#game-of-life).
+- [Animated Gradient Background](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/animated-gradient-background/): Colors slowly drift across a soft gradient background. Best for hero sections. Places: Backgrounds.
+- [Mesh Gradient Animation](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/mesh-gradient/): Blurred blobs of color drift and melt together. Best for landing pages. Places: Backgrounds.
+- [Aurora / Northern Lights](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/aurora/): Blurred bands of light sway like the northern lights. Best for dark backgrounds. Places: Backgrounds.
+- [Grain / Film Noise Overlay](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/grain-overlay/): Fine grain flickers over the page, like old film. Best for editorial sites. Places: Backgrounds, Images & cards.
+- [Scanline Effect](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/scanline/): Dark lines and a sweeping beam imitate an old TV screen. Best for retro sites. Places: Backgrounds.
+- [Light Leak](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/light-leak/): Warm light washes in from a corner at random times. Best for photo sites. Places: Backgrounds, Images & cards.
+- [Starfield / Space Particles](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/starfield/): Stars stream toward you out of the dark. Best for space themes. Places: Backgrounds.
+- [Breathing / Pulsing Glow](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/breathing-glow/): A soft glow slowly grows and shrinks, like calm breathing. Best for idle states. Places: Backgrounds, Loading & messages.
+- [Ambient Ripple Effect](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/ambient-ripple/): Rings spread from a few spots, like drops on a still pond. Best for hero areas. Places: Backgrounds.
+- [Floating Elements](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/floating-elements/): Small shapes drift slowly, each on its own path. Best for hero backgrounds. Places: Backgrounds.
+- [Grid / Dot Pattern Parallax](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/grid-dot-pattern-parallax/): A dot grid shifts gently against your pointer for depth. Best for tech sites. Places: Backgrounds.
+- [Abstract Geometric Motion](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/abstract-geometric-motion/): Shapes turn, spread and flow in a calm, endless pattern. Best for music players. Places: Backgrounds.
+- [Particle Constellation](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/particle-constellation/): Drifting dots link up with lines whenever they come close. Best for tech sites. Places: Backgrounds.
+- [Flow Field](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/flow-field/): Particles ride invisible currents, leaving fading trails. Best for art pages. Places: Backgrounds.
+- [Synthwave Grid](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/synthwave-grid/): A glowing grid rolls toward you under a striped sun. Best for music and games. Places: Backgrounds.
+- [Matrix Rain](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/matrix-rain/): Columns of glowing characters rain down a dark screen. Best for tech themes. Places: Backgrounds.
+- [Plasma Field](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/plasma/): Smooth waves of color flow endlessly, made from math. Best for creative sites. Places: Backgrounds.
+- [Wave Layers](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/wave-layers/): Layers of waves drift sideways, each at its own speed. Best for hero sections. Places: Backgrounds, Page intros.
+- [Snow / Rain](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/snow-rain/): Snow drifts down, or rain falls in streaks, over a dark town. Best for seasonal pages. Places: Backgrounds.
+- [Fireworks](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/fireworks/): Rockets rise and burst into glowing sparks that fall and fade. Best for celebrations. Places: Backgrounds, Page intros.
+- [Topographic Lines](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/topographic-lines/): Lines like those on a hiking map slowly bend and drift. Best for outdoor brands. Places: Backgrounds.
+- [Light Rays](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/light-rays/): Soft beams of light fall from above and slowly sweep across. Best for hero intros. Places: Backgrounds, Page intros.
+- [Game of Life](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/game-of-life/): Cells live and die by their neighbors, and patterns grow. Best for tech sites. Places: Backgrounds.
## By place
diff --git a/tests/skill.test.js b/tests/skill.test.js
index 646ae812..2d79c52b 100644
--- a/tests/skill.test.js
+++ b/tests/skill.test.js
@@ -1,5 +1,6 @@
-// Checks the AI skill (skills/animation-handbook/) and llms.txt, which tools/make-skill.mjs writes from the pages and the
-// home page's cards, and the Claude Code plugin marketplace that installs the skill (.claude-plugin/marketplace.json).
+// Checks the AI skill (skills/animation-handbook/) and llms.txt, which tools/make-skill.mjs writes from the pages, their
+// READMEs and the home page's cards, and the Claude Code plugin marketplace that installs the skill
+// (.claude-plugin/marketplace.json).
// Run from the repo root: node --test "tests/*.test.js"
const test = require('node:test');
const assert = require('node:assert/strict');
@@ -7,6 +8,7 @@ const fs = require('node:fs');
const path = require('node:path');
const { pathToFileURL } = require('node:url');
const vm = require('node:vm');
+const { sections, table } = require('./helpers/markdown.js');
const ROOT = path.resolve(__dirname, '..');
const ANIM = path.join(ROOT, 'animations');
@@ -57,30 +59,38 @@ function homeConst(name) {
return vm.runInNewContext('(' + HOME.slice(from, blockEnd(from) + 1) + ')');
}
-// The settings of a page as { label, chosen }: the name of each setting in Try it (the p or label with class
-// hb-setting-name, or the words beside a switch), or the label its control sets with data-hb-label, and the choice it
-// starts with where it has one: the name of its button marked aria-pressed="true" (its aria-label, else its words), or on
-// or off for a switch, by whether it is checked. A setting marked data-hb-skip only compares the demo with something else
-// and is never copied, so it is left out; one marked hidden shows (and is copied) with some choices of another setting,
-// so it counts.
+// The settings of a page as { label, name, chosen }: the name of each setting in Try it (the p or label with class
+// hb-setting-name, or the words beside a switch), which also names its row in the README's Key parameters; the label the
+// page copies, which is that name or the one its control sets with data-hb-label; and the choice it starts with where it
+// has one: the name of its button marked aria-pressed="true" (its aria-label, else its words), or on or off for a switch,
+// by whether it is checked. A setting marked data-hb-skip only compares the demo with something else and is never copied,
+// so it is left out; one marked hidden shows (and is copied) with some choices of another setting, so it counts.
function settingsOf(html) {
const tryIt = between(html, '<section class="hb-step hb-try"', '<section class="hb-step hb-prompt-step"');
const words = s => decode(s.replace(/<[^>]*>/g, '')).replace(/\s+/g, ' ').trim();
return tryIt.split('<div class="hb-setting"').slice(1)
.filter(part => !/^[^>]*\sdata-hb-skip(?=[\s=>])/.test(part))
.flatMap(part => {
- const own = part.match(/\sdata-hb-label="([^"]+)"/);
- const labels = own ? [decode(own[1])] : [...part.matchAll(/<(p|label) class="hb-setting-name"[^>]*>([^<]*)<\/\1>|<label class="hb-switch-row"><span>([^<]*)<\/span>/g)]
+ const names = [...part.matchAll(/<(p|label) class="hb-setting-name"[^>]*>([^<]*)<\/\1>|<label class="hb-switch-row"><span>([^<]*)<\/span>/g)]
.map(m => decode((m[2] ?? m[3]).trim()));
+ const own = part.match(/\sdata-hb-label="([^"]+)"/);
const group = part.match(/<div\b(?=[^>]*\sclass="(?:[^"]*\s)?(?:seg|swatches)(?:\s[^"]*)?")[^>]*>([\s\S]*?)<\/div>/);
const pressed = group && [...group[1].matchAll(/<button\b([^>]*)>([\s\S]*?)<\/button>/g)].find(b => /\saria-pressed="true"/.test(b[1]));
const toggle = part.match(/<input\b[^>]*\stype="checkbox"[^>]*>/);
const chosen = pressed ? decode((pressed[1].match(/\saria-label="([^"]*)"/) || [])[1] || '') || words(pressed[2])
: toggle ? (/\schecked(?=[\s>])/.test(toggle[0]) ? 'on' : 'off') : undefined;
- return labels.map(label => ({ label, chosen }));
+ return (own ? [decode(own[1])] : names).map((label, i) => ({ label, name: names[i], chosen }));
});
}
+// The rows of a page's README Key parameters table as { name, start, effect } (name | default | effect), read with the
+// helpers pages.test.js uses, with the white space in each cell squeezed.
+const keyParametersOf = d => table(sections(read(path.join(path.dirname(d.file), 'README.md')))['Key parameters'])
+ .map(cells => cells.map(c => c.replace(/\s+/g, ' ')))
+ .map(([name = '', start = '', effect = '']) => ({ name, start, effect }));
+// A Key parameters cell as the skill ends a line with it: its end punctuation dropped, since the line ends with one period.
+const clause = s => s.replace(/[\s.,;:]+$/, '');
+
// The anchors GitHub gives the headings of a file, in order: each heading lowercased, every character but letters, digits,
// spaces, "-" and "_" dropped and each space made a "-", with -1, -2… added to one already used in the file.
function anchors(headings) {
@@ -127,7 +137,7 @@ test('SKILL.md has only a name, a description and a license, and a short body th
for (const file of files) assert.ok(parts[2].includes(`](references/${file})`), `SKILL.md links references/${file}`);
});
-test('every page has one entry in its category file and one line in the catalog, holding its prompt and every setting with its default', () => {
+test('every page has one entry in its category file and one line in the catalog, holding its prompt and every setting with its default and what it does', () => {
assert.ok(pages.length > 0, 'there are guided-steps pages');
const catalog = read(path.join(REFS, 'catalog.md'));
const problems = [];
@@ -142,16 +152,27 @@ test('every page has one entry in its category file and one line in the catalog,
const html = read(d.file);
const prompt = decode(html.match(/<p class="hb-prompt">([^<]*)<\/p>/)[1]).replace(/\s+/g, ' ').trim();
if (!entries[0].includes(`\n${prompt}\n`)) problems.push(`${where}: its entry does not hold the page's prompt word for word`);
- for (const { label, chosen } of settingsOf(html)) {
- const line = entries[0].split('\n').find(l => l.startsWith(`- ${label}: `));
+ const params = keyParametersOf(d), entryLines = entries[0].split('\n');
+ for (const { label, name, chosen } of settingsOf(html)) {
+ const line = entryLines.find(l => l.startsWith(`- ${label}: `));
if (!line) { problems.push(`${where}: its entry has no line for the setting "${label}"`); continue; }
+ // The line says what the setting does: the effect in the README's Key parameters row named like the setting on the page.
+ const row = params.find(p => p.name === name);
+ if (!row) problems.push(`${where}: the setting "${name}" has no row in its README's Key parameters`);
+ else if (!line.includes(clause(row.effect))) problems.push(`${where}: the line for "${label}" does not hold its README Key parameters effect: ${line}`);
if (chosen === undefined) continue; // a text field starts with its text, not a choice
// The one choice in bold is the one the page starts with (a name holding "·" is quoted).
const bold = `**${chosen.includes('·') ? `"${chosen}"` : chosen}**`;
if (!line.includes(bold) || line.split('**').length !== 3) problems.push(`${where}: "${label}" does not show ${bold} as its only default: ${line}`);
}
+ // A page without Try it lists the demo's own values instead: every Key parameters row, with its default and effect.
+ if (!html.includes('<section class="hb-step hb-try"')) {
+ for (const p of params) {
+ if (!entryLines.some(l => l.startsWith(`- ${p.name}: ${clause(p.start)}. `) && l.includes(clause(p.effect)))) problems.push(`${where}: its entry has no line for the Key parameter "${p.name}" with its default and effect`);
+ }
+ }
}
- assert.deepEqual(problems, [], `run ${TOOL} after changing a page`);
+ assert.deepEqual(problems, [], `run ${TOOL} after changing a page or its README's Key parameters`);
});
test('llms.txt lists every card once, in the order of CATS, with its live address and its description, and links the skill files', () => {
diff --git a/tools/make-skill.mjs b/tools/make-skill.mjs
index d0965aec..ceec4a9d 100644
--- a/tools/make-skill.mjs
+++ b/tools/make-skill.mjs
@@ -1,24 +1,26 @@
#!/usr/bin/env node
-// Writes the AI skill and llms.txt from the pages and the home page's cards: a development tool, not part of the site.
+// Writes the AI skill and llms.txt from the pages, their READMEs and the home page's cards: a development tool, not part
+// of the site.
// Run it from the repo root after adding a page, and after changing any page's prompt, settings, description or Good for
-// and Avoid on tags (tests/skill.test.js fails until then).
+// and Avoid on tags, or a README's Key parameters (tests/skill.test.js fails until then).
// Usage: node tools/make-skill.mjs
// It reads CATS, PLACES and PLACE_LIST from the script of index.html (the categories and cards in the home page's order,
// each card's places and the places' names) and every card's page, animations/<category>/<slug>/index.html: its <h1>, its
// one-line description, its kind, its prompt (the words on the page, entities decoded and white space squeezed), its
-// Good for and Avoid on tags and its Try it settings. The settings are read by the page script's own readSettings and
-// pageCopyText (assets/js/demo-page.js), run on a small stand-in for the browser's DOM built from the page's prompt and
-// Try it step, the way the home page reads a page for its cards' Copy prompt: the same controls in the same order, the
-// same labels and values, and the same "Settings from the demo: …" line the page copies with its defaults. A setting
-// the page shows only for some choices of another one (marked hidden) is listed too, with a note, but is not in that
-// line, as on the page.
+// Good for and Avoid on tags and its Try it settings. The settings are read by the page script's own readSettings
+// (assets/js/demo-page.js), run on a small stand-in for the browser's DOM built from the page's prompt and Try it step,
+// the way the home page reads a page for its cards' Copy prompt: the same controls in the same order, with the same
+// labels and values. A setting the page shows only for some choices of another one (marked hidden) is listed too, with
+// a note. From the page's README.md it reads the Key parameters table (name | default | effect): each setting's line
+// ends with the effect of the row named like the setting on the page, and a page without settings lists every row, the
+// demo's own values.
// It writes skills/animation-handbook/SKILL.md, skills/animation-handbook/references/catalog.md, one
// skills/animation-handbook/references/<category folder>.md per category, and llms.txt at the root. Each is written with
// LF line endings, and only when its text changed; it prints every file with its size. Running it twice changes
// nothing. buildSkill(root), exported for the test, returns the same files as { 'path from the root': 'text' } and
// writes nothing.
-// Exit code 1 when a card has no page, a page lacks a part the skill needs, or the skill folder holds a file this tool
-// does not write.
+// Exit code 1 when a card has no page, a page lacks a part the skill needs, a setting has no row in its README's Key
+// parameters, or the skill folder holds a file this tool does not write.
import { existsSync, mkdirSync, readdirSync, readFileSync, realpathSync, writeFileSync } from 'node:fs';
import { createRequire } from 'node:module';
import { dirname, join, relative, sep } from 'node:path';
@@ -35,6 +37,8 @@ const NO_STYLE = { getComputedStyle: () => ({ display: '' }) };
const PHONE = { getComputedStyle: () => ({ display: '' }), matchMedia: () => ({ matches: true }) };
const squeeze = s => s.replace(/\s+/g, ' ').trim();
+// A Key parameters cell as a line ends it: its end punctuation dropped, so the line can end with exactly one period.
+const clause = s => s.replace(/[\s.,;:]+$/, '');
const lineCount = text => text.split('\n').length - 1;
const wordCount = text => text.split(/\s+/).filter(Boolean).length;
@@ -167,9 +171,40 @@ function anchor(heading, seen) {
return n ? `${slug}-${n}` : slug;
}
-// One page as the skill tells it: { title, lede, kind, prompt, good, avoid, settings, line } where settings holds one
-// { label, text } per setting in Try it (but one marked data-hb-skip, which the page never copies), and line is what
-// Copy prompt adds to the prompt with the defaults ('' on a page without settings).
+// The rows of the README's Key parameters table as { name, start, effect }: the rows after its header and divider (as
+// tests/pages.test.js reads the names), each name | default | effect with its white space squeezed. The section is found
+// by the page script's own sections, which the page uses to read the README too.
+function keyParameters(root, folder, slug, DemoPage) {
+ const where = `${folder}/${slug}`, file = join(root, folder, slug, 'README.md');
+ if (!existsSync(file)) throw new Error(`${where}: the page has no README.md`);
+ const table = DemoPage.sections(readFileSync(file, 'utf8'))['Key parameters'];
+ if (!table) throw new Error(`${where}: README.md has no Key parameters`);
+ const rows = table.split('\n').filter(line => /^\s*\|/.test(line)).slice(2).map(line => {
+ const cells = line.trim().replace(/^\|/, '').replace(/\|$/, '').split('|').map(squeeze);
+ if (cells.length !== 3 || !cells.every(Boolean)) throw new Error(`${where}: a row of README.md's Key parameters is not name | default | effect: ${line.trim()}`);
+ return { name: cells[0], start: cells[1], effect: cells[2] };
+ });
+ if (!rows.length) throw new Error(`${where}: README.md's Key parameters has no rows`);
+ return rows;
+}
+
+// A setting's name as the page shows it, which names its row in the README's Key parameters (tests/pages.test.js compares
+// the two): the words beside a switch, or else the one .hb-setting-name of its setting ('' when there is none, or several).
+// A data-hb-label changes only what the page copies, so it is not read here.
+function shownName(control) {
+ const row = control.closest('.hb-switch-row');
+ if (row) {
+ const words = row.childNodes.find(n => typeof n !== 'string' && n.tagName === 'span');
+ return words ? squeeze(words.textContent) : '';
+ }
+ const setting = control.closest('.hb-setting');
+ const names = setting ? setting.querySelectorAll('.hb-setting-name') : [];
+ return names.length === 1 ? squeeze(names[0].textContent) : '';
+}
+
+// One page as the skill tells it: { title, lede, kind, prompt, good, avoid, settings, params } where settings holds one
+// { label, text, effect } per setting in Try it (but one marked data-hb-skip, which the page never copies), effect being
+// what its README's Key parameters says it does, and params holds every row of that table (see keyParameters).
function readPage(root, folder, slug, DemoPage) {
const where = `${folder}/${slug}`, file = join(root, folder, slug, 'index.html');
if (!existsSync(file)) throw new Error(`${where}: the card has no page (index.html)`);
@@ -191,16 +226,15 @@ function readPage(root, folder, slug, DemoPage) {
const tryHtml = tryAt < 0 ? '' : html.slice(tryAt, tryEnd + '</section>'.length);
const doc = standIn(`<main class="hb-page">${promptHtml}${tryHtml}</main>`, where);
const prompt = squeeze(doc.querySelector('.hb-prompt').textContent);
- const copied = DemoPage.pageCopyText(doc, NO_STYLE);
- if (!copied.startsWith(prompt)) throw new Error(`${where}: Copy prompt does not start with the prompt`);
- // The settings, read once more with the ones marked hidden counted as shown: a page shows such a setting only for some
- // choices of another one (First color and Second color with Two colors, say), and copies it then. The entry lists it
- // too, so that the prompt's words about it have a setting to match; with the defaults it is not copied.
+ // The settings, read with the ones marked hidden counted as shown: a page shows such a setting only for some choices of
+ // another one (First color and Second color with Two colors, say), and copies it then. The entry lists it too, so that
+ // the prompt's words about it have a setting to match.
const tryStep = doc.querySelector('.hb-try');
doc.showHidden = true;
const items = tryStep ? DemoPage.readSettings(doc, tryStep, NO_STYLE) : [];
const phoneItems = tryStep ? DemoPage.readSettings(doc, tryStep, PHONE) : [];
doc.showHidden = false;
+ const params = keyParameters(root, folder, slug, DemoPage);
const settings = items.map(({ label, value, control }, i) => {
if (!label) throw new Error(`${where}: a setting in Try it has no label (the page leaves it out of Copy prompt)`);
let text = describe(control, value, phoneItems[i].value);
@@ -208,14 +242,17 @@ function readPage(root, folder, slug, DemoPage) {
for (let n = control; n !== tryStep; n = n.parentElement) {
if (n.hasAttribute('hidden')) { text += ' (the page shows it only for some choices of another setting, and copies it only then)'; break; }
}
- return { label, text };
+ const name = shownName(control);
+ if (!name) throw new Error(`${where}: the setting "${label}" shows no name of its own (a .hb-setting-name in its .hb-setting, or the words beside a switch)`);
+ const row = params.find(p => p.name === name);
+ if (!row) throw new Error(`${where}: the setting "${name}" has no row in README.md's Key parameters`);
+ return { label, text, effect: row.effect };
});
return {
title: words(/<h1>([^<]*)<\/h1>/, '<h1>'),
lede: words(/<p class="hb-lede">([^<]*)<\/p>/, 'one-line description (<p class="hb-lede">)'),
kind: one(/<body class="hb" data-hb-kind="(once|loop|do|scroll)"/, 'page kind (data-hb-kind on the body)')[1],
- prompt, good: tags('hb-good'), avoid: tags('hb-avoid'), settings,
- line: copied.slice(prompt.length).replace(/^\n\n/, '')
+ prompt, good: tags('hb-good'), avoid: tags('hb-avoid'), settings, params
};
}
@@ -253,40 +290,45 @@ function entry(page) {
`- Good for: ${page.good.join(' · ')}`,
`- Avoid on: ${page.avoid.join(' · ')}`,
'', '**Prompt**', '', page.prompt, ''];
- if (!page.settings.length) lines.push('**Settings**: none. The page has no settings, so the prompt is complete as it is.', '');
- else {
- lines.push('**Settings** (the defaults in bold):', '', ...page.settings.map(s => `- ${s.label}: ${s.text}`), '');
- if (page.line) lines.push('Copied from the site with the defaults, the prompt ends with this line:', '', page.line, '');
+ // Without settings, the README's Key parameters gives the values the demo is built with.
+ if (!page.settings.length) {
+ lines.push("**Settings**: none, so the prompt is complete as it is. The demo's own values:", '',
+ ...page.params.map(p => `- ${p.name}: ${clause(p.start)}. ${clause(p.effect)}.`), '');
+ } else {
+ lines.push("**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):", '',
+ ...page.settings.map(s => `- ${s.label}: ${s.text}. ${clause(s.effect)}.`), '');
}
return lines;
}
const SKILL_BODY = ({ total, base, cats }) => `# Animation Handbook
-[Animation Handbook](${base}) is a free reference of ${total} web animation techniques. On the site, each one has a page where it plays live, a few plain settings for most of them (speed, direction, color and the like) and a prompt that says in plain words how to build it, with no code. This skill holds all of those prompts and settings, so you can build any of the techniques in the user's own project.
+[Animation Handbook](${base}) is a free reference of ${total} web animation techniques. Each one has a page where it plays live, a few plain settings for most of them (speed, direction, color and the like) and a prompt that says in plain words how to build it. This skill holds every prompt and every setting with the demo's values, so you can pick the right technique and build it into the user's own project.
## How to use it
-1. **Find the technique** in [references/catalog.md](references/catalog.md): one line per animation, with what it does, what it is best for and its places, the parts of a page it suits (${cats.places}). Match both what the user describes and where it goes. When two fit equally well, build one and mention the other. If nothing fits, say so and build what the user asked for with the rules below.
-2. **Read its entry** in the category file the catalog line names. The files are long, so find the heading with the technique's name and read down to the next heading: the prompt, the settings with their defaults, how it runs, what it is good for and what to avoid it on. If the user's place is on its Avoid on list, say so and suggest a better fit from the catalog.
-3. **Choose the settings** from the user's words: "a panel that slides in slowly from the left" picks the slow speed and the left side. Keep the default (in bold) for anything they did not mention, and ask only when a choice changes the result a lot and nothing they said points either way. The choices are named, not numbered: the technique's README gives the demo's own values for many of them (see the end of this file); otherwise choose values that fit the name and the project.
-4. **Build it** in the user's own stack, from plain HTML, CSS and JavaScript to React, Vue, Svelte or whatever the project already uses. Follow the prompt as the specification, with the user's own element in place of each [part in square brackets]. "Match the settings listed below" means the settings from step 3; the line at the end of each entry shows how the site lists them.
-5. **Check it** against the rules below, then tell the user which technique you built, with its live demo address, and which settings you chose.
+1. **Find the technique.** Search [references/catalog.md](references/catalog.md) for the effect the user describes and a synonym or two, rather than reading the whole file. Each line holds one technique: its name and live demo address, what it does and what it is best for, and its places, the parts of a page it suits (${cats.places}). Match both what the user describes and where it goes. Read the whole catalog, or its By place index at the end, only when the user wants ideas or a search finds nothing that fits. When two fit equally well, build one and mention the other; when none fits, say so and build what the user asked for with the rules below.
+2. **Read its entry.** It is in the category file named after the folder in its address (references/04-micro-interactions.md for an address under animations/04-micro-interactions/), from the heading with the technique's name to the next heading: what it is good for and what to avoid it on, how it runs, its prompt and its settings. If the user's place is on its Avoid on list, say so and suggest a better fit.
+3. **Choose the settings.** Each setting lists its choices and what they do, with the demo's values. The choice in bold is where the demo starts, set to show the effect off in a small box: a starting point, not advice for every page. Take what the user asked for first ("a panel that slides in slowly from the left" picks the slow speed and the left side), then choose the rest for their page: its size, how many things move and what the effect is for. A speed that suits a small demo can feel rushed across a full-width hero, and a delay that reads well between many small tiles can vanish between a few large cards. Ask only when a choice changes the result a lot and nothing points either way.
+4. **Build the smallest version that does what the user asked**, in their own stack (plain HTML, CSS and JavaScript, React, Vue, Svelte or whatever the project uses), with their element in place of each [part in square brackets]. The prompt describes the whole technique as its demo shows it. Keep everything it says about looking right, staying smooth, accessibility and reduced motion, but build only the features the request needs: one confirmation message does not need a stack of them, and a hover effect does not need a touch-drag version when touch users miss nothing without it. "Match the settings listed below" means your choices from step 3.
+5. **Check it** against the rules below. Then tell the user which technique you built, with its live demo address; the settings you chose, and why where they differ from the demo's; and the features of the prompt you left out, as options they can ask for.
When the user only asks which animation to use, suggest one or two from the catalog with their live demo addresses, and build once they choose. To improve an animation the project already has, find its closest technique the same way and change only what falls short of that prompt and the rules below.
-## The rules every animation follows
+## The rules for the user's page
-The handbook's demos follow these rules and the prompts take them for granted, so keep them even where a prompt does not repeat them.
+Keep these even where a prompt does not say them. Each prompt describes its technique as the demo shows it, in a box on a page about animation; where a prompt and a rule differ, follow the rule, which is about real pages.
-- **Move with transform and fade with opacity.** Never animate width, height, top, left or box-shadow, which make the browser lay out or repaint the page on every frame. Where a prompt asks for something else, such as a blur, a clip, a line that draws itself, a color change or a font weight, follow the prompt: it says how to keep that smooth.
-- **Move a JavaScript frame loop by elapsed time.** Each frame moves by the time since the last one, capped at about 50 ms, never by a fixed step per frame, so it runs at the same speed on a 30 Hz, 60 Hz or 120 Hz screen.
+- **Keep the page whole without the animation.** Nothing on screen when the page loads waits for a scroll to appear: it shows at once or plays its entrance right away, and only what starts below the first screen waits for the scroll. Hide content for an entrance only from the script that will reveal it, and create controls that work only with a script, such as an accordion's buttons, from that script, so the page still shows everything if the script fails.
+- **Give keyboard users what mouse users get on what they can reach.** On a link, button or form control, an effect that shows on hover also shows on focus, and one that starts on a press also starts on Enter or Space, from the middle of the control. Do not make other content focusable for a decorative effect, and leave the arrow keys alone unless the element is a control that uses them, such as a slider or a carousel: extra tab stops and captured keys cost keyboard users more than the effect gives them.
+- **Give touch what it needs.** When a hover reveals something people need, such as a menu, a tooltip or a hidden button, a tap reveals it too, and a drag uses pointer events so that touch works. A purely decorative hover effect, such as a tilt or a glow, can stay still on touch screens.
- **Follow reduced motion.** When the device asks for reduced motion, show the end state or a short fade instead of the movement, and start loops paused.
-- **Give a hover or a drag a touch equivalent.** A hover effect also works with a tap, and a drag uses pointer events so that touch works too.
-- **Make it work from the keyboard.** An effect that shows on hover also shows on keyboard focus. An effect that follows the pointer inside its own area, such as a card or a button, works from the keyboard when that area has focus: focus shows it and the arrow keys move it. A page-wide effect, such as a custom cursor or an image trail, never takes over the arrow keys, which scroll the page. An effect that starts on a press also starts on Enter or Space, from the middle of the control.
-- **Keep controls at least 44×44 px on phones**, buttons and handles drawn inside the animation included.
-- **Keep text at least 4.5:1 against its background.**
-- **Give heavy effects a lighter phone version.** A big blur, many particles or a shader gets a lighter version on phones, which are up to 600 px wide, or up to 500 px tall when held sideways.
+- **Move with transform and fade with opacity.** Never animate width, height, top, left or box-shadow, which make the browser lay out or repaint the page on every frame. Where the effect is something else, such as a clip, a line that draws itself, a color change or a blur-in, the prompt says how to keep it smooth.
+- **Make soft shapes from gradients.** A glow or a blob of color that only needs soft edges gets them from a gradient that fades to transparent, not from a large blur filter, which costs the browser a lot on every frame while the shape moves; a gradient is drawn once and then only moved. Keep the blur where it is the effect, as in a blur-in, frosted glass or a gooey merge.
+- **Stop what nobody can see.** A loop that keeps running, such as an ambient background, a canvas or a frame loop, pauses while it is scrolled out of view; a frame loop or timer also stops while the tab is hidden.
+- **Time a frame loop by the clock.** Each frame moves by the time since the last one, capped at about 50 ms, never by a fixed step, so it runs at the same speed on 30, 60 and 120 Hz screens.
+- **Lighten heavy effects on phones**, up to 600 px wide or 500 px tall when held sideways: less blur, fewer particles, a simpler shader.
+- **Keep touch targets at least 44×44 px on phones**, buttons and handles drawn inside the animation included, and **text at least 4.5:1 against its background.**
- **Add no library the project does not already use.** Every prompt works with plain code; use GSAP, Framer Motion, Three.js or the like only where the project has it.
## Where to look
@@ -294,7 +336,7 @@ The handbook's demos follow these rules and the prompts take them for granted, s
- [references/catalog.md](references/catalog.md): all ${total} in one list, grouped by category, with an index by place.
${cats.lines}
-Each live demo address is also the technique's folder in the repository, ${REPO}. Add README.md to the address (${base}animations/02-entrance-and-exit/rotate-in/README.md, for example) to read its README as plain text: how it works, the values behind each setting's choices and production notes. The address itself is the demo, with all of its code in the page.
+Each live demo address is also the technique's folder in the repository, ${REPO}: the page holds the demo's code, and its README (the address followed by README.md) explains how it works, with production notes. The entries hold what you need to build a technique; read a README only when the user asks how one works.
`;
export function buildSkill(root) {
@@ -344,17 +386,17 @@ export function buildSkill(root) {
});
files[`${SKILL}/references/catalog.md`] = [
'# Catalog', '',
- `All ${total} animations of Animation Handbook, in the home page's order and grouped by category. Each line gives the name (linked to its live demo), what it does and what it is best for, its places (the parts of a page it suits, the main one first), and the file that holds its full entry with the prompt and the settings.`, '',
+ `All ${total} animations of Animation Handbook, in the home page's order and grouped by category. Each line gives the name linked to its live demo, what it does and what it is best for, and its places (the parts of a page it suits, the main one first). The category folder in the address names the file that holds its full entry, with the prompt and the settings.`, '',
`Contents: ${sections.map(s => `[${s.heading}](#${s.anchor})`).join(' · ')}`, '',
...cats.flatMap(cat => [`## ${cat.n} · ${cat.name}`, '', `${cat.desc} ${cat.pages.length} animations, in [${cat.file}](${cat.file}).`, '',
- ...cat.pages.map(p => `- [${p.title}](${p.address}): ${p.lede} Places: ${p.places.join(', ')}. Entry in [${cat.file}](${cat.file}#${p.anchor}).`), '']),
+ ...cat.pages.map(p => `- [${p.title}](${p.address}): ${p.lede} Places: ${p.places.join(', ')}.`), '']),
'## By place', '', "The home page's places, each with the animations that suit it.", '', ...byPlace, ''
].join('\n');
for (const cat of cats) {
files[`${SKILL}/references/${cat.file}`] = [
`# ${cat.n} · ${cat.name}`, '',
- `${cat.desc} ${cat.pages.length} animations from Animation Handbook, in the home page's order. Each entry gives the live demo, how it runs, what it is good for and what to avoid it on, the prompt from its page word for word, and its settings.`, '',
+ `${cat.desc} ${cat.pages.length} animations from Animation Handbook, in the home page's order. Each entry gives the live demo, how it runs, what it is good for and what to avoid it on, the prompt from its page word for word, and its settings with what each does and the demo's values.`, '',
'## Contents', '', ...cat.pages.map(p => `- [${p.title}](#${p.anchor})`), '',
...cat.pages.flatMap(entry)
].join('\n');
@@ -368,9 +410,9 @@ export function buildSkill(root) {
...cat.entries.map(([slug, name, desc]) => `- [${name}](${base}${cat.folder.replace(/\/$/, '')}/${slug}/): ${desc}`), '']),
// The skill's own files, which the site serves as they are: every prompt and setting, as Markdown.
'## Skill files', '',
- `- [SKILL.md](${base}${SKILL}/SKILL.md): how to find a technique, choose its settings and build it, with the rules every animation follows`,
+ `- [SKILL.md](${base}${SKILL}/SKILL.md): how to find a technique, choose its settings for the user's page and build it, with the rules for real pages`,
`- [references/catalog.md](${base}${SKILL}/references/catalog.md): all ${total} in one list, with what each does and where it goes, and an index by place`,
- ...cats.map(cat => `- [references/${cat.file}](${base}${SKILL}/references/${cat.file}): the ${cat.pages.length} ${cat.name} entries, each with its prompt and settings`), '',
+ ...cats.map(cat => `- [references/${cat.file}](${base}${SKILL}/references/${cat.file}): the ${cat.pages.length} ${cat.name} entries, each with its prompt and its settings, with the demo's values`), '',
'## Optional', '',
`- [Source on GitHub](${REPO}): every demo's code, each technique's README and the Agent Skill`, ''
].join('\n');