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.

chore: remove the AI skill and the Claude Code plugin

matin1eb604f6e283
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
deleted file mode 100644
index 6e8c9328..00000000
--- a/.claude-plugin/marketplace.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "name": "animation-handbook",
- "owner": {
- "name": "Matin Monshizadeh"
- },
- "description": "Animation Handbook as a Claude Code plugin: web animation techniques with live demos, plain-words build prompts and settings.",
- "plugins": [
- {
- "name": "animation-handbook",
- "description": "Builds web animations from Animation Handbook: finds the technique that fits what you describe and builds it in your project from its tested prompt and settings.",
- "source": "./",
- "strict": false,
- "skills": ["./skills/animation-handbook"],
- "author": {
- "name": "Matin Monshizadeh"
- },
- "homepage": "https://matinmonshizadeh.github.io/animation-handbook/",
- "repository": "https://github.com/matinmonshizadeh/animation-handbook",
- "license": "MIT",
- "keywords": ["animation", "css", "javascript", "web", "ui", "motion"]
- }
- ]
-}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 452aa45a..72af0c05 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,11 +8,6 @@ The main steps of Animation Handbook, newest first, with the number of animation
(what moved, when and how) and the animations that match play, with their names. Not here? opens a short GitHub form.
- A Star on GitHub button under every animation page's Copy prompt and, on screens 820px and wider, at the end of its
top bar; a round star on the home page for phones.
-- An AI skill: `npx skills add matinmonshizadeh/animation-handbook` adds every page's prompt and settings to Claude
- Code, Cursor, Codex and other assistants. Also a Claude Code plugin and `llms.txt`.
-- The AI skill builds what the user asks for on their own page: each setting comes with the demo's values as a starting
- point, the catalog is searched rather than read whole, and the rules cover what a real page needs (nothing on the
- first screen waits for a scroll, decorations stay out of the keyboard order, loops pause out of view).
- A Famous effects page: eleven effects people admire on well-known websites, each described in plain words with the
handbook animations that make something similar and a prompt to build your own. It is linked from the home page's footer.
- A new animation, Ink Spread Reveal (167 in all): ink drops spread and merge until the picture shows, with See inside and
@@ -49,6 +44,8 @@ The main steps of Animation Handbook, newest first, with the number of animation
- After you copy a prompt, the Star on GitHub button under it lights up once.
- Without JavaScript, the home page lists every animation as a plain link under its group, so visitors and search engines
that run no script can still reach every page.
+- The AI skill (`npx skills add`) and the Claude Code plugin, both added after 1.0.0, are removed: every page's Copy prompt
+ does that job. `llms.txt` stays.
## 1.0.0 — 2026-10-10
diff --git a/CLAUDE.md b/CLAUDE.md
index 76ee4609..a1c92d24 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -183,7 +183,7 @@ convention. The page loads **What it is** and **See also** from the README; What
contain no code. Each See also line is `- [Title](../slug/) — one plain phrase`, Title being the linked
page's `<h1>`. Key parameters is a `| Parameter | Default | Effect |` table with one row per setting in Try it, named as
on the page (a page without Try it lists the technique's own values), no empty cell, and each choice's demo value in
-plain words in Effect ("slow is 500ms, normal 300ms and fast 180ms"): the AI skill copies each Effect next to its setting. How it works matches the demo's code. Opened from disk (`file://`), the pages
+plain words in Effect ("slow is 500ms, normal 300ms and fast 180ms"). How it works matches the demo's code. Opened from disk (`file://`), the pages
still link to each other (the shared script points folder links at `index.html`), but What it is and Similar
animations need a server: a page shows a README link in place of What it is and hides Similar animations.
@@ -257,16 +257,14 @@ inside an entry's "Production notes" section, never as their own entry.
again from the home page. The home check needs no edit: it reads its totals from `CATS` and `PLACES`.
8. Run `node tools/update-sitemap.mjs`: it writes every card into `sitemap.xml`, dated by the last commit to its
folder (today for a folder with changes not yet committed), and into the home page's plain list of links (between the
- two `plain-links` comment lines; a test compares the list with `CATS`). Run `node tools/make-skill.mjs` too: it writes every
- page's prompt and settings, with its README's Key parameters, into the AI skill (`skills/animation-handbook/`) and
- every card into `llms.txt`. Run the
+ two `plain-links` comment lines; a test compares the list with `CATS`). It writes `llms.txt` too: every card under
+ its group, for AI tools that read the site without running its scripts. Run the
tests and the page check on the new folder and on every page you edited. Run the home page check (`home`) too: the
new card's Copy prompt is 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, a README's Key parameters, a card's name, places or order in `CATS`, or the Famous effects
-page's description) also means running `node tools/make-skill.mjs` again: the skill test (`tests/skill.test.js`) fails
-until then. Changing a preview that the Famous effects page shows (its key in `PV`, its `case` in `pvMarkup()`, its
+Changing anything `llms.txt` or the home page's plain list repeats (a card's name, line or order in `CATS`, or the Famous
+effects page's description) also means running `node tools/update-sitemap.mjs` again: the tests fail until then.
+Changing a preview that the Famous effects page shows (its key in `PV`, its `case` in `pvMarkup()`, its
rules or keyframes, its `STILL` point) or that page's cards means running `node tools/make-famous.mjs` again: the famous
test (`tests/famous.test.js`) fails until then.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 451edb97..1a4eefa6 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -63,8 +63,7 @@ problem goes privately, as [SECURITY.md](SECURITY.md) describes, not into a publ
line is `- [Title](../slug/) — one plain phrase`, where Title is the linked page's `<h1>`.
*Key parameters* is a `| Parameter | Default | Effect |` table with one row per setting in
Try it, named exactly as on the page, no empty cell, and each choice's demo value in plain
- words in Effect ("slow is 500ms, normal 300ms and fast 180ms"): the AI skill copies each
- Effect next to its setting. Opened
+ words in Effect ("slow is 500ms, normal 300ms and fast 180ms"). Opened
from disk (`file://`), the pages still link to each other (the shared script points folder
links at `index.html`), but *What it is* and *Similar animations* need a server: a page shows
a README link in place of *What it is* and hides *Similar animations*.
@@ -106,18 +105,16 @@ problem goes privately, as [SECURITY.md](SECURITY.md) describes, not into a publ
`node tools/make-social-image.mjs --base http://127.0.0.1:<port>`, which draws it again from
the home page. The home check needs no edit: it reads its totals from `CATS` and `PLACES`.
7. Run `node tools/update-sitemap.mjs`: it writes every card into `sitemap.xml`, dated by the
- last commit to its folder (today for a folder with changes not yet committed). Run
- `node tools/make-skill.mjs` too: it writes every page's prompt and settings, with its README's
- Key parameters, into the AI skill
- (`skills/animation-handbook/`) and every card into `llms.txt`. Then run the tests and the
+ last commit to its folder (today for a folder with changes not yet committed). It also
+ writes the home page's plain list of links (for visitors and crawlers without JavaScript) and
+ `llms.txt` from the cards. Then run the tests and the
page check (see [Tests and the page check](#tests-and-the-page-check)) on the new page and on
every page you edited. Run the home page check (`home`) too: the new card's Copy prompt is
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, 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.
+Changing a card's name, line or order in `CATS`, or the Famous effects page's description, also
+means running `node tools/update-sitemap.mjs` again: `llms.txt` and the home page's plain list
+repeat them, and the tests fail until then.
## The demo page
diff --git a/README.md b/README.md
index 301d83f1..bc55808b 100644
--- a/README.md
+++ b/README.md
@@ -8,12 +8,6 @@
[**Open the live handbook →**](https://matinmonshizadeh.github.io/animation-handbook/)
-Add it to your AI coding assistant (run in your project folder; needs Node.js):
-
-```bash
-npx skills add matinmonshizadeh/animation-handbook
-```
-
[![Live site](https://img.shields.io/website?url=https%3A%2F%2Fmatinmonshizadeh.github.io%2Fanimation-handbook%2F&label=live%20demo&up_message=online&color=91bdff)](https://matinmonshizadeh.github.io/animation-handbook/) [![Stars](https://img.shields.io/github/stars/matinmonshizadeh/animation-handbook?style=flat&color=79de9d)](https://github.com/matinmonshizadeh/animation-handbook) [![License](https://img.shields.io/github/license/matinmonshizadeh/animation-handbook?color=c6a1ff)](LICENSE) [![Techniques](https://img.shields.io/badge/techniques-176-ff9d5c)](#full-catalog) [![Dependencies](https://img.shields.io/badge/dependencies-0-ff94a9)](#design-principles) [![Build](https://img.shields.io/badge/build-none-62ddcf)](#design-principles)
</div>
@@ -40,23 +34,6 @@ Everything is plain HTML, CSS, and JavaScript: no build step, no frameworks, no
Liked an effect on a well-known website? [Famous effects](https://matinmonshizadeh.github.io/animation-handbook/famous/) gathers effects people admire on such sites. Each one opens with our own working version, says in plain words what you see, names the handbook animations that make something similar, and gives you a prompt to build your own. The handbook is not connected to any of these sites or their owners.
-## Use it from your AI assistant
-
-The handbook is also an Agent Skill, with every page's prompt and settings in it. Add it to Claude Code, Cursor, Codex, GitHub Copilot, Gemini CLI, or any other agent that reads Agent Skills:
-
-```bash
-npx skills add matinmonshizadeh/animation-handbook
-```
-
-In Claude Code you can install it as a plugin instead:
-
-```
-/plugin marketplace add matinmonshizadeh/animation-handbook
-/plugin install animation-handbook@animation-handbook
-```
-
-Then ask for an animation in plain words, like "make the cards fade in as they scroll into view": your assistant picks the technique from the handbook and builds it into your project with that page's prompt and settings.
-
## Categories
| # | Category | Count |
diff --git a/llms.txt b/llms.txt
index a257da2f..7945c920 100644
--- a/llms.txt
+++ b/llms.txt
@@ -2,7 +2,7 @@
> A visual reference of 176 web animation techniques, each with a live demo and a plain-words prompt for building it with an AI assistant.
-Each page plays one technique live and gives a ready-made prompt that describes it in plain words, with no code. Most pages also have a few plain settings, such as speed or direction, and the prompt you copy lists your choices. Each technique's folder on GitHub has a README on how it works, the values that matter and production notes. To give an AI coding assistant all 176 prompts and settings at once, install the Agent Skill: `npx skills add matinmonshizadeh/animation-handbook`.
+Each page plays one technique live and gives a ready-made prompt that describes it in plain words, with no code. Most pages also have a few plain settings, such as speed or direction, and the prompt you copy lists your choices. Each technique's folder on GitHub has a README on how it works, the values that matter and production notes.
## Scroll-Based
@@ -205,18 +205,6 @@ Each page plays one technique live and gives a ready-made prompt that describes
- [Famous effects](https://matinmonshizadeh.github.io/animation-handbook/famous/): Effects people admire on well-known websites, the handbook animations that make something similar, and a prompt to build your own.
-## Skill files
-
-- [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 176 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 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 15 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 17 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 44 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 28 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 26 Ambient & Background entries, each with its prompt and its settings, with the demo's values
-
## Optional
-- [Source on GitHub](https://github.com/matinmonshizadeh/animation-handbook): every demo's code, each technique's README and the Agent Skill
+- [Source on GitHub](https://github.com/matinmonshizadeh/animation-handbook): every demo's code and each technique's README
diff --git a/skills/animation-handbook/SKILL.md b/skills/animation-handbook/SKILL.md
deleted file mode 100644
index 4425155c..00000000
--- a/skills/animation-handbook/SKILL.md
+++ /dev/null
@@ -1,48 +0,0 @@
----
-name: animation-handbook
-description: Builds web animations from Animation Handbook, a set of 176 tested techniques with plain-words build prompts and settings (scroll effects, entrances and exits, page transitions, micro-interactions for buttons and forms, text effects, 3D and WebGL, ambient backgrounds). Use when the user asks to add, pick or improve an animation, transition, hover or click effect, loading state, scroll effect or background motion in a web page or web app, in any framework or plain HTML, CSS and JavaScript.
-license: MIT
----
-
-# Animation Handbook
-
-[Animation Handbook](https://matinmonshizadeh.github.io/animation-handbook/) is a free reference of 176 web animation techniques. Each has a live demo, a few plain settings for most (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.
-
-## How to use it
-
-1. **Find the technique.** Search [references/catalog.md](references/catalog.md) for the effect the user describes and a synonym or two; read the whole file only when you cannot search, the user wants ideas or nothing fits (its By place index is at the end). Each line ends with 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; 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. If the user's place is on its Avoid on list, prefer a better fit; if they asked for this one by name, build it and say what may suit better.
-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, a delay that reads well between many small tiles can vanish between a few large cards, and colors come from the page, not from the demo. Ask only when a choice changes the result a lot and nothing points either way.
-4. **Build what the user asked, no more and no less**, in their own stack, with their element in place of each [part in square brackets]. The prompt describes the whole technique as its demo shows it, with every option the demo offers. Take from it the look, the rules that make it look right and everything it says about accessibility, such as pausing a timer while someone reads or hovers it, and build only the parts the request needs, each with one plain way to use it from each kind of input, plus what people expect, such as Escape to close: a single confirmation needs one message with a close button, not a stack of messages that also close on a tap or a swipe. Every extra gesture and option is more code that can break. "Match the settings listed below" means your choices from step 3.
-5. **Check it** against the rules below. Then tell the user, in a few lines, which technique you built, with its live demo address; the settings you chose, and why where they differ from the demo's; and the parts of the prompt you left out, which they can ask for.
-
-When the user only asks which animation to use, answer for their page: suggest one or two for each place they ask about, and for each say in concrete terms what moves, for how long and after what delay, and what visitors who ask for reduced motion see, with its live demo address. Give real values, not the demo setting names, which mean nothing to someone who has not seen the demo, 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, adding no part they did not ask for.
-
-## The rules for the user's page
-
-Keep these even where a prompt does not say them, and follow them where a prompt differs: each prompt describes its technique as its demo shows it, in a box on a page about animation. A direct request from the user comes first: if it goes against a rule, build what they asked and say in one line what the rule protects.
-
-- **Keep the page whole without the animation.** Nothing in view waits for a scroll: whatever is on screen when the page loads, or after a jump to an anchor, plays its entrance right away, and anything the visitor can scroll to reaches its trigger, even at the very end of the page. A scroll trigger near the bottom of the screen does this on its own; one set higher, as in a demo box, leaves the bottom of a real screen empty. An effect that moves only as far as the visitor scrolls, such as a scrub, simply starts from its first frame. Hide content for an entrance only from a script, early enough that nothing flickers, and on a plain HTML page 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. Where the browser cannot run an effect, such as one that needs WebGL, show a still version in its place rather than an error.
-- **Give keyboard users what mouse users get on what they can reach.** On a link, button or form control, or a card that holds one, a hover state such as a color, a lift or a revealed label also shows on keyboard focus, and an effect that starts on a press also starts when the keyboard presses it, from the middle of the control. An effect that follows the pointer has nothing to follow from the keyboard: leave the element its normal focus style. 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, a carousel or a list you reorder: extra tab stops and captured keys cost keyboard users more than the effect gives them.
-- **Give touch what it needs.** When a hover reveals or does something people need, such as a menu, a tooltip, a hidden button or a pause to read moving text, a tap does it too, and a drag uses pointer events so that touch works. A purely decorative pointer effect, such as a tilt, a glow or a pull toward the pointer, stays still on touch screens, even where the prompt describes a touch version: a finger on a page is usually starting a scroll.
-- **Follow reduced motion.** When the device asks for it, decorative movement stops: show the end state or a short fade instead, start loops paused and keep pointer effects still. Where the movement itself tells the visitor something, such as a spinner, a progress bar or an effect tied to the scroll position, keep the calm version the prompt describes.
-- **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; only a box that pushes the content below as it opens or closes, such as an accordion's answer, may animate its height. 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. Where an entry gives a blur amount, use it as the width of the gradient's fade. Keep the blur where it is the effect, as in a blur-in, depth of field, frosted glass, a gooey merge or the glow of a moving border.
-- **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. A small CSS loop, such as a spinner, needs neither.
-- **Keep pointer effects light.** A pointer handler only stores the latest position; one frame callback measures the element by its resting box, not its tilted or moved one, and writes CSS custom properties, and CSS transitions do the easing, on the transform that uses them or on properties registered with @property. Measure again when the page scrolls under a resting pointer. Write a frame loop of your own only for what CSS cannot do: it moves by the time since the last frame, capped at about 50 ms, never by a fixed amount per frame, so it runs at the same speed on 30, 60 and 120 Hz screens, and it stops when nothing moves. Physics that needs equal steps takes them from that time, as its prompt says.
-- **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 meant to be read 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 or the user asks for it.
-
-## Where to look
-
-- [references/catalog.md](references/catalog.md): all 176 in one list, grouped by category, with an index by place.
-- [references/01-scroll-based.md](references/01-scroll-based.md): Scroll-Based, 27 animations. Animations driven by scroll position — parallax, sticky, scrub, snap, and storytelling.
-- [references/02-entrance-and-exit.md](references/02-entrance-and-exit.md): Entrance & Exit, 15 animations. Element-level animations for arriving and departing — fades, slides, reveals, flips, and text staggers.
-- [references/03-page-transitions.md](references/03-page-transitions.md): Page Transitions, 17 animations. Full-page transitions between routes or views — crossfades, slides, portals, morphs, and the View Transitions API.
-- [references/04-micro-interactions.md](references/04-micro-interactions.md): Micro-Interactions, 44 animations. Short, user-triggered animations — hover, click, focus, loading states, and UI feedback patterns.
-- [references/05-text-typography.md](references/05-text-typography.md): Text & Typography, 19 animations. Animations specifically for type — kinetic motion, character-level effects, gradient flows, and word transformations.
-- [references/06-3d-advanced.md](references/06-3d-advanced.md): 3D & Advanced, 28 animations. WebGL, shaders, particles, 3D transforms, simulations, and other heavier effects.
-- [references/07-ambient-background.md](references/07-ambient-background.md): Ambient & Background, 26 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 https://github.com/matinmonshizadeh/animation-handbook; read its README (the address followed by README.md) only when the user asks how a technique works.
diff --git a/skills/animation-handbook/references/01-scroll-based.md b/skills/animation-handbook/references/01-scroll-based.md
deleted file mode 100644
index 29fce374..00000000
--- a/skills/animation-handbook/references/01-scroll-based.md
+++ /dev/null
@@ -1,537 +0,0 @@
-# 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 with what each does and the demo's values.
-
-## Contents
-
-- [Parallax Depth-of-Field](#parallax-depth-of-field)
-- [Parallax Scrolling](#parallax-scrolling)
-- [Reverse-Scrolling Columns](#reverse-scrolling-columns)
-- [Cover Card to Fixed Header](#cover-card-to-fixed-header)
-- [Fly-in Fly-out Contact List](#fly-in-fly-out-contact-list)
-- [Stacking Cards](#stacking-cards)
-- [Scroll-Triggered Animation](#scroll-triggered-animation)
-- [Scrub Animation](#scrub-animation)
-- [Pin Animation](#pin-animation)
-- [Snap Scrolling](#snap-scrolling)
-- [Scrollytelling](#scrollytelling)
-- [Reveal on Scroll](#reveal-on-scroll)
-- [Stagger Reveal](#stagger-reveal)
-- [Horizontal Scroll](#horizontal-scroll)
-- [Sticky Section](#sticky-section)
-- [Counter Animation](#counter-animation)
-- [Progress Bar](#progress-bar)
-- [Section Wipe](#section-wipe)
-- [Zoom Into Image](#zoom-into-image)
-- [Scroll Image Sequence](#scroll-image-sequence)
-- [Smooth (Inertia) Scroll](#smooth-inertia-scroll)
-- [Text Fill on Scroll](#text-fill-on-scroll)
-- [Scroll Velocity Skew](#scroll-velocity-skew)
-- [SVG Line Draw on Scroll](#svg-line-draw-on-scroll)
-- [Scrollspy Navigation](#scrollspy-navigation)
-- [Scroll-Driven Background Color](#scroll-driven-background-color)
-- [Hide-on-Scroll Header](#hide-on-scroll-header)
-
-## Parallax Depth-of-Field
-
-Layers move at their own speed as the focus shifts. Best for cinematic intros.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/parallax-depth-of-field/
-- How it runs: follows the scroll
-- Good for: Hero scenes · Story intros · Illustrated landscapes
-- Avoid on: Large photos · Text-heavy pages
-
-**Prompt**
-
-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, 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
-
-Far layers move slower than near ones as you scroll. Best for hero scenes.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/parallax-scrolling/
-- How it runs: follows the scroll
-- Good for: Hero scenes · Landing pages · Story sections
-- Avoid on: Text-heavy pages · Forms
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-Side columns run the opposite way to the middle one. Best for portfolios.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/reverse-scrolling-columns/
-- How it runs: follows the scroll
-- Good for: Portfolios · Agency sites · Image galleries
-- Avoid on: Reading pages · Forms
-
-**Prompt**
-
-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 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. 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
-
-A tall cover shrinks into a slim header as you scroll. Best for articles.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/cover-card-to-fixed-header/
-- How it runs: follows the scroll
-- Good for: Articles · Blog posts · Product pages
-- Avoid on: Short pages · App screens
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-Rows fade and slide as they near the top or bottom edge. Best for long lists.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/fly-in-fly-out-contact-list/
-- How it runs: follows the scroll
-- Good for: Contact lists · Chat lists · Activity feeds · Search results
-- Avoid on: Short lists · Tables
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-Cards stick at the top and pile into a deck. Best for step-by-step stories.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/stacking-cards/
-- How it runs: follows the scroll
-- Good for: Portfolios · Case studies · Onboarding steps · Feature tours
-- Avoid on: Long text · Many cards
-
-**Prompt**
-
-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 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. 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
-
-Animations start, follow and pin at set scroll points. Best for landing pages.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-trigger/
-- How it runs: follows the scroll
-- Good for: Landing pages · Product pages · Feature sections
-- Avoid on: Short pages · Forms
-
-**Prompt**
-
-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, 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
-
-Scroll plays it forward and back, like dragging a video. Best for product tours.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scrub-animation/
-- How it runs: follows the scroll
-- Good for: Product tours · Explainers · Step-by-step diagrams
-- Avoid on: Short sections · Key information
-
-**Prompt**
-
-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 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. 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
-
-One part stays put while its text changes on scroll. Best for feature lists.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/pin-animation/
-- How it runs: follows the scroll
-- Good for: Feature lists · Product tours · Onboarding
-- Avoid on: Short screens · Long text
-
-**Prompt**
-
-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, 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
-
-The box settles on one whole section at a time. Best for slides and galleries.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/snap-scrolling/
-- How it runs: follows the scroll
-- Good for: Slides · Galleries · Onboarding · Full-screen sections
-- Avoid on: Long articles · Uneven sections
-
-**Prompt**
-
-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 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. Always settles on a section after every scroll; when close settles only when the box stops near one; off never snaps.
-
-## Scrollytelling
-
-A picture beside the story changes as you read down. Best for data stories.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scrollytelling/
-- How it runs: follows the scroll
-- Good for: Data stories · Explainers · Long reads
-- Avoid on: Short pages · Quick reference
-
-**Prompt**
-
-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, 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
-
-Cards appear as they cross a line in the box. Best for long landing pages.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/reveal-on-scroll/
-- How it runs: follows the scroll
-- Good for: Landing pages · Feature lists · Blog sections
-- Avoid on: Key information · Forms
-
-**Prompt**
-
-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 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. 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
-
-Items in a group appear one after another as it scrolls in. Best for card grids.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/stagger-reveal/
-- How it runs: follows the scroll
-- Good for: Card grids · Search results · Menus · Galleries
-- Avoid on: Long lists · Key information
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Delay between items: Short · **Medium** · Long. The wait before each next item: short is 30ms, medium 50ms and long 80ms; 40 to 60ms reads as a sweep, and under 30ms the items seem to arrive together. These values suit the demo's grid of 12 small items; a few large cards need a longer wait, about 100 to 150ms, to come in visibly one after another.
-- Order: **First to last** · Last to first · From the middle · Random. Which item goes first: first to last, last to first, from the middle outward, or a random order each time.
-
-## Horizontal Scroll
-
-Scroll down and a row of panels slides sideways. Best for portfolios.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/horizontal-scroll/
-- How it runs: follows the scroll
-- Good for: Portfolios · Timelines · Product features · Step-by-step tours
-- Avoid on: Long text · Forms
-
-**Prompt**
-
-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, 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
-
-A section holds still while its content changes. Best for feature tours.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/sticky-section/
-- How it runs: follows the scroll
-- Good for: Feature tours · How-it-works steps · Product pages
-- Avoid on: Long text · Short pages
-
-**Prompt**
-
-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, 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
-
-Numbers count up when they scroll into view. Best for stats.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/counter-animation/
-- How it runs: follows the scroll
-- Good for: Stats · Annual reports · Landing pages · Dashboards
-- Avoid on: Prices · Data tables
-
-**Prompt**
-
-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 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. 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
-
-A bar fills as you read down the page. Best for long articles.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/progress-bar/
-- How it runs: follows the scroll
-- Good for: Long articles · Documentation · Tutorials · Reports
-- Avoid on: Short pages
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-Each section slides up over the one before. Best for full-screen stories.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/section-wipe/
-- How it runs: follows the scroll
-- Good for: Full-screen stories · Landing pages · Case studies
-- Avoid on: Long text · Documentation
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-A small window opens up to fill the box as you scroll. Best for hero images.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/zoom-into-image/
-- How it runs: follows the scroll
-- Good for: Hero images · Gallery intros · Section breaks
-- Avoid on: Small images · Text-heavy pages
-
-**Prompt**
-
-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 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. 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
-
-Scrolling plays a series of pictures like a flip-book. Best for products.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-image-sequence/
-- How it runs: follows the scroll
-- Good for: Product reveals · 3D objects · Launch pages
-- Avoid on: Slow connections · Text content
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-Scrolling glides to a stop instead of jumping. Best for portfolio sites.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/smooth-scroll/
-- How it runs: reacts to the visitor
-- Good for: Portfolio sites · Brand pages · Scroll stories
-- Avoid on: Documentation · Forms · Dashboards
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Glide: Long · **Medium** · Short. How much of the remaining distance the content covers in a sixtieth of a second: long is 5%, medium 9% and short 16%, so 95% of a scroll has landed after about 1 s, 0.5 s and 0.3 s; a longer frame covers more, so the glide takes as long on every screen; long feels heavy and floaty, short is closer to normal scrolling.
-
-## Text Fill on Scroll
-
-Words light up one by one as you scroll. Best for key statements.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/text-fill-on-scroll/
-- How it runs: follows the scroll
-- Good for: Key statements · Manifestos · Landing page intros
-- Avoid on: Body text · Long articles
-
-**Prompt**
-
-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 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. 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
-
-Rows lean when you scroll fast and straighten when you stop. Best for galleries.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-velocity-skew/
-- How it runs: follows the scroll
-- Good for: Galleries · Portfolios · Project lists
-- Avoid on: Reading content · Forms
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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: in each sixtieth of a second the lean closes 7% of the gap to the lean the scroll speed calls for when slow, 12% at normal and 20% when quick, so 95% of it is gone about 0.7 s, 0.4 s and 0.2 s after you stop; slow feels heavy, quick feels twitchy.
-- Most it leans: Small · **Medium** · Large. The largest angle allowed: 6°, 12° or 20°, so a fast flick cannot fold the rows over.
-
-## SVG Line Draw on Scroll
-
-A line draws itself along a route as you scroll. Best for timelines.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/svg-line-draw/
-- How it runs: follows the scroll
-- Good for: Timelines · Journey maps · Process steps · Delivery tracking
-- Avoid on: Short pages
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-A menu highlights the section you are reading. Best for long docs.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scrollspy-nav/
-- How it runs: follows the scroll
-- Good for: Documentation · Long articles · Settings pages
-- Avoid on: Short pages
-
-**Prompt**
-
-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 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. 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
-
-The background color changes as you scroll through sections. Best for stories.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-background-color/
-- How it runs: follows the scroll
-- Good for: Stories · Portfolios · Case studies
-- Avoid on: Text-heavy pages · Forms
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Colors: **Dusk** · Daylight · Forest. The palette, one color per section: Dusk stays dark; Daylight passes through pale colors and Forest through a light green, and the text turns dark on those.
-- Blend: **Gradual** · Quick · Hard cut. Gradual changes the color the whole way between sections; Quick holds each color and changes it near the boundary, over the middle 30% of the scroll from one section to the next; Hard cut switches at the boundary with no blend, to show why the blend matters.
-
-## Hide-on-Scroll Header
-
-Scrolling down hides the top bar; scrolling up shows it. Best for mobile pages.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/hide-on-scroll-header/
-- How it runs: reacts to the visitor
-- Good for: Mobile pages · News and blogs · Long articles · Online shops
-- Avoid on: Short pages · Bars with key buttons
-
-**Prompt**
-
-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 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 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
deleted file mode 100644
index df46c622..00000000
--- a/skills/animation-handbook/references/02-entrance-and-exit.md
+++ /dev/null
@@ -1,335 +0,0 @@
-# 02 · Entrance & Exit
-
-Element-level animations for arriving and departing — fades, slides, reveals, flips, and text staggers. 15 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
-
-- [Fade In / Fade Out](#fade-in--fade-out)
-- [Slide In](#slide-in)
-- [Slide Up Reveal](#slide-up-reveal)
-- [Scale In / Zoom In](#scale-in--zoom-in)
-- [Clip-Path Reveal](#clip-path-reveal)
-- [Curtain Reveal](#curtain-reveal)
-- [Split Text Reveal](#split-text-reveal)
-- [Letter-by-Letter Stagger](#letter-by-letter-stagger)
-- [Word-by-Word Reveal](#word-by-word-reveal)
-- [Blur In](#blur-in)
-- [Flip In](#flip-in)
-- [Bounce In](#bounce-in)
-- [Rotate In](#rotate-in)
-- [Shatter Effect](#shatter-effect)
-- [Ink Spread Reveal](#ink-spread-reveal)
-
-## Fade In / Fade Out
-
-Fades in to appear and fades out to leave. Best for pop-ups and tooltips.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/fade-in-out/
-- How it runs: plays once
-- Good for: Pop-ups · Tooltips · Loaded content · Image swaps
-- Avoid on: Side panels · Urgent alerts
-
-**Prompt**
-
-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 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 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
-
-Travels into place from one edge. Best for side panels and notifications.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/slide-in/
-- How it runs: plays once
-- Good for: Side panels · Notifications · Menus · List items
-- Avoid on: Crowded layouts · Long text
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-Text rises into view from behind an invisible edge. Best for headlines.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/slide-up-reveal/
-- How it runs: plays once
-- Good for: Headlines · Section titles · Taglines
-- Avoid on: Long paragraphs · Buttons
-
-**Prompt**
-
-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 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 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
-
-Grows from smaller to full size. Best for pop-ups and menus.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/scale-in/
-- How it runs: plays once
-- Good for: Pop-ups and dialogs · Menus · Cards in a grid · Checkmarks
-- Avoid on: Long text · Full-page sections
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-A growing shape uncovers it while it stays still. Best for images and banners.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/clip-path-reveal/
-- How it runs: plays once
-- Good for: Images · Banners · Full-width panels
-- Avoid on: Small buttons · Form fields
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-A colored panel covers it, then slides away. Best for intros and logos.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/curtain-reveal/
-- How it runs: plays once
-- Good for: Page intros · Logos · Section changes · Portfolio pieces
-- Avoid on: Buttons and menus · Things shown often
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-Text breaks into pieces that appear one after another. Best for headlines.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/split-text-reveal/
-- How it runs: plays once
-- Good for: Headlines · Taglines · Short quotes
-- Avoid on: Body text · Buttons and labels
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Split into: Letters · **Words** · Lines. Letters give the finest cascade, words a readable rhythm, lines a block reveal.
-- How each piece appears: **Fade up** · Fade · Grow · Flip. The small entrance each piece plays: fade up rises by half the font size, fade only fades, grow starts at half its size and flip turns in from 90°, edge-on, around a vertical line; in Lines mode nothing fades: each line slides up into view from behind an invisible edge, so fade shows only that slide, and fade up, grow and flip add their own movement to it.
-- Delay between pieces: 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
-
-A phrase appears letter by letter or typewriter-style. Best for short headlines.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/letter-by-letter-stagger/
-- How it runs: plays once
-- Good for: Short headlines · Names and logos · Chat messages · Loading screens
-- Avoid on: Long text · Buttons and labels
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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 as it fades in: fade up rises by 0.4 of the font size, fade only fades, grow starts at 30% of its size and flip turns in from 90°, edge-on, around a vertical line.
-- Speed: Slow · **Normal** · Fast. In Cascade, how long each letter takes to settle: slow is 650ms, normal 400ms and fast 250ms.
-- Blinking cursor: **on** · off (the page shows it only for some choices of another setting). In Typewriter, a blinking cursor leads the letters.
-- Your text: text field, starts as "Hello, world.". The phrase that is animated, up to 60 characters.
-
-## Word-by-Word Reveal
-
-Words appear one after another at a reading pace. Best for quotes and intros.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/word-by-word-reveal/
-- How it runs: plays once
-- Good for: Quotes · Short paragraphs · Captions · Story sections
-- Avoid on: Long articles · Buttons and labels
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Delay between words: Short · **Medium** · Long. The reading-speed control: short is 40ms, medium 80ms and long 150ms; below about 40ms the words blur into one reveal.
-- How each word appears: **Fade up** · Fade · Grow · Blur · Flip. The entrance each word plays as it fades in: fade up rises by 0.4 of the font size, fade only fades, grow starts at 60% of its size, blur starts 8px blurred and flip turns in from 90°, edge-on, around a horizontal line.
-- Speed: Slow · **Normal** · Fast. How long each word takes to settle: slow is 700ms, normal 450ms and fast 270ms.
-- Feel: **Smooth** · Springy · Even. Smooth slows each word into place; Springy adds a bounce; Even feels mechanical.
-- Pauses between sentences: on · **off**. Adds an extra pause between sentences.
-- 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
-
-Comes into focus from a blur, like a camera. Best for featured cards and photos.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/blur-in/
-- How it runs: plays once
-- Good for: Featured cards · Photos · Pop-ups · Portfolio pieces
-- Avoid on: Lists and grids · Small text
-
-**Prompt**
-
-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 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. 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
-
-Swings into view in 3D, like a card turning over. Best for cards and tiles.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/flip-in/
-- How it runs: plays once
-- Good for: Cards · Flashcards and tiles · Dashboard panels · Onboarding steps
-- Avoid on: Text blocks · Full-page sections
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-Lands with a springy bounce. Best for badges and success messages.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/bounce-in/
-- How it runs: plays once
-- Good for: Success messages · Badges · Small pop-ups · Playful brands
-- Avoid on: Formal content · Large panels
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Bounce strength: Soft · **Medium** · Strong. How far past full size it grows: soft about 5%, medium 9% and strong 15%, with smaller dips back under, to about 2%, 4% and 7% below full size.
-- Number of bounces: **One** · Two · Three. How many times it overshoots; almost always one, since more looks cartoonish.
-- Speed: Slow · **Normal** · Fast. How long it takes: slow is 1800ms, normal 1100ms and fast 650ms; too short and the spring reads as a jitter.
-- Fades in: **on** · off. Whether it fades in while it bounces or is visible from the start.
-
-## Rotate In
-
-Spins into place while it grows. Best for icons, stars and badges.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/rotate-in/
-- How it runs: plays once
-- Good for: Icons · Badges and stars · Logos · Small decorations
-- Avoid on: Text · Wide boxes and cards
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-Breaks into pieces that fly apart and fade. Best for galleries and bold exits.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/shatter-effect/
-- How it runs: plays once
-- Good for: Photo galleries · Dismissed cards · Game moments · Bold intros
-- Avoid on: Things shown often · Calm, serious pages
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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. Over one flight the burst carries the pieces about 1.1, 0.75 or 0.55 card heights outward (none, normal, heavy; further near the impact), and by the end they sit a further 0.6 card heights lower with normal and 2 with heavy. Those drops are what is left once the upward throw is taken off: gravity alone pulls about 1.15 and 2.2 card heights, and the throw takes back about half a card height with normal and a quarter with heavy.
-- Speed: 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.
-
-## Ink Spread Reveal
-
-Ink drops spread and merge until the picture shows. Best for art and intros.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/ink-spread-reveal/
-- How it runs: plays once
-- Good for: Art and portfolio sites · Page intros · Featured pictures
-- Avoid on: Forms · Rows of small pictures
-
-**Prompt**
-
-Add an ink spread reveal to [the picture or section you want to uncover]. Start with it hidden under a plain paper-colored layer, then let drops of ink land and spread outward as blots that merge until the whole picture shows. Each blot grows quickly at first and slows as it soaks in, like ink on damp paper. Give the blots uneven outlines, as rough as the settings choose, and grow each one by scaling its shape, not redrawing it; when the settings include it, run a dark ink edge just ahead of the picture. If the visitor has reduced motion turned on, fade the picture in instead. Match the settings listed below.
-
-**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Where the ink lands: One drop · **Several drops** · From a corner. One drop lands in the middle; several drops are three that land in turn across the picture; from a corner, three drops land one after another from the top left toward the bottom right.
-- Speed: Slow · **Normal** · Fast. How long it takes to cover the picture: slow is about 3.6 seconds (each blot grows for 2.6 seconds, the drops half a second apart), normal 2.5 seconds (1.8 seconds, a third of a second apart) and fast 1.5 seconds (1.1 seconds, a fifth of a second apart).
-- Edge: Smooth · **Ragged** · Splashy. Smooth grows round circles; ragged lets each outline wander by about a tenth of its radius; splashy adds nine small drops around each blot (five on phones).
-- Dark ink edge: **on** · off. A dark copy of each blot, a little larger, shows as a rim just ahead of the picture; off, the picture shows with no rim.
diff --git a/skills/animation-handbook/references/03-page-transitions.md b/skills/animation-handbook/references/03-page-transitions.md
deleted file mode 100644
index 22eaa52d..00000000
--- a/skills/animation-handbook/references/03-page-transitions.md
+++ /dev/null
@@ -1,349 +0,0 @@
-# 03 · Page Transitions
-
-Full-page transitions between routes or views — crossfades, slides, portals, morphs, and the View Transitions API. 17 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
-
-- [View Transitions API](#view-transitions-api)
-- [Shared Element Transition](#shared-element-transition)
-- [Morph Transition](#morph-transition)
-- [Crossfade Transition](#crossfade-transition)
-- [Slide Transition](#slide-transition)
-- [Zoom Transition](#zoom-transition)
-- [Flash / Light Leak Transition](#flash--light-leak-transition)
-- [Blur Transition](#blur-transition)
-- [Elastic Transition](#elastic-transition)
-- [Portal / Tunnel Zoom](#portal--tunnel-zoom)
-- [Dissolve Transition](#dissolve-transition)
-- [FLIP Technique](#flip-technique)
-- [Circle Reveal](#circle-reveal)
-- [Overlay Wipe](#overlay-wipe)
-- [Page Curl](#page-curl)
-- [Cube Transition](#cube-transition)
-- [Pixelate Transition](#pixelate-transition)
-
-## View Transitions API
-
-The browser animates the change between two pages for you. Best for web apps.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/view-transitions-api/
-- How it runs: reacts to the visitor
-- Good for: Web apps · Page changes · Tabs and filters · Galleries
-- Avoid on: Frequent updates
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Transition style: **Fade** · Slide · Zoom · Tilt. Fade blends the two pictures; Slide pushes the old one out to the left as the new one comes in from the right, each moving a full width; Zoom shrinks the old one away to 80% as it fades while the new one fades in and settles from slightly larger, 115%; Tilt turns both slightly as they fade: the old one shrinks to 90% and turns 2° counterclockwise, and the new one starts at 90%, turned 2° clockwise.
-- Speed: Slow · **Normal** · Fast. How long the change takes: slow is 800ms, normal 500ms and fast 300ms; under about 150ms it reads as an instant swap.
-- Feel: Smooth · **Gentle** · Even. Gentle eases in and out; Smooth slows to a stop; Even keeps one steady pace.
-
-## Shared Element Transition
-
-A picture grows from the list into the next page's header. Best for galleries.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/shared-element-transition/
-- How it runs: reacts to the visitor
-- Good for: Galleries · Product grids · Card lists · Media libraries
-- Avoid on: Unrelated pages
-
-**Prompt**
-
-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 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 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
-
-The logo changes shape to match each page you visit. Best for brand marks.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/morph-transition/
-- How it runs: reacts to the visitor
-- Good for: Logos · Brand marks · Icons that change state
-- Avoid on: Detailed pictures · Text
-
-**Prompt**
-
-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 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 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
-
-The old page fades out as the new one fades in. Best for calm page changes.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/crossfade/
-- How it runs: reacts to the visitor
-- Good for: Tabs · Image galleries · Content swaps · Calm sites
-- Avoid on: Step-by-step flows
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-Pages slide across, and going back slides the other way. Best for step flows.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/slide-transition/
-- How it runs: reacts to the visitor
-- Good for: Step-by-step flows · Checkout · Onboarding · Carousels
-- Avoid on: Unrelated pages
-
-**Prompt**
-
-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 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. 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
-
-The pages zoom as they swap, as if moving in depth. Best for opening details.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/zoom-transition/
-- How it runs: reacts to the visitor
-- Good for: Opening details · Galleries · Lightboxes
-- Avoid on: Step-by-step flows
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Zoom style: **Zoom in** · Zoom out · Pull through. Zoom in grows the new page from 75% as the old one shrinks to 90%; Zoom out grows the old page past the frame, to 120%, as it fades, while the new one fades in at full size; Pull through shrinks the old page to 70% while the new one settles from 130%.
-- Speed: Slow · **Normal** · Fast. How long the zoom and the fade take: slow is 900ms, normal 550ms and fast 330ms.
-- Feel: **Smooth** · Springy · Gentle. Smooth slows to a stop; Springy grows a little past full size and settles; Gentle eases in and out.
-
-## Flash / Light Leak Transition
-
-A burst of light hides the moment the page changes. Best for bold, lively sites.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/flash-transition/
-- How it runs: reacts to the visitor
-- Good for: Product launches · Music and fashion · Photo stories
-- Avoid on: Frequent page changes · Calm sites
-
-**Prompt**
-
-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 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. 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
-
-The old page blurs away and the new one comes into focus. Best for photo sites.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/blur-transition/
-- How it runs: reacts to the visitor
-- Good for: Photo sites · Film and editorial · Portfolios
-- Avoid on: Self-playing slideshows · Low-end phones
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-The new page slides in, goes too far and springs back. Best for playful apps.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/elastic-transition/
-- How it runs: reacts to the visitor
-- Good for: Playful apps · Panels and drawers · Games
-- Avoid on: Formal sites
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- How it bounces: **Planned path** · Live spring. A planned path plays a bounce decided in advance, which is cheap; a live spring works out the movement in small fixed time steps, which feels physical and can react to interruptions.
-- Bounce size: Small · **Medium** · Large. How far the page goes past its place before settling: small is 3.6% of the page's width, medium 7.2% and large 12% on the planned path, and about as far with a live spring, where a bigger bounce means less damping, so it swings for longer.
-- Speed: Slow · **Normal** · Fast. How quickly it settles: on the planned path slow is 1400ms, normal 900ms and fast 550ms; with a live spring, a faster speed is a stiffer spring, which settles in about 1 to 1.3 s when slow, 0.6 to 0.8 s at normal and 0.3 to 0.45 s when fast.
-
-## Portal / Tunnel Zoom
-
-The next page opens out of a circle you click. Best for big reveals.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/portal-zoom/
-- How it runs: reacts to the visitor
-- Good for: Big reveals · Galleries · Story chapters · Calls to action
-- Avoid on: Everyday navigation
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-The page breaks into tiles that give way to the next. Best for photo galleries.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/dissolve/
-- How it runs: reacts to the visitor
-- Good for: Photo galleries · Slideshows · Retro and game sites
-- Avoid on: Everyday navigation
-
-**Prompt**
-
-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 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. 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
-
-Cards glide to their new places when the layout changes. Best for sorting lists.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/flip-technique/
-- How it runs: reacts to the visitor
-- Good for: Sorting and filtering · Card grids · Dashboards · Lists
-- Avoid on: Very long lists
-
-**Prompt**
-
-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 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 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
-
-Pages grow from any spot you click and shrink back into it. Best for app navigation.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/circle-reveal/
-- How it runs: reacts to the visitor
-- Good for: App navigation · Theme switches · Menu buttons · Calls to action
-- Avoid on: Quick tab changes
-
-**Prompt**
-
-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 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. 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
-
-A colored panel sweeps over the page as it changes. Best for portfolio sites.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/overlay-wipe/
-- How it runs: reacts to the visitor
-- Good for: Portfolio sites · Agency sites · Brand-colored sites · Chapter breaks
-- Avoid on: Apps used all day
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-The page peels back from its corner like paper. Best for digital magazines.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/page-curl/
-- How it runs: reacts to the visitor
-- Good for: Digital magazines · Picture books · Menus and brochures · Photo albums
-- Avoid on: Everyday navigation
-
-**Prompt**
-
-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 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. 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: soft darkens the shadow to 42% black at mid-turn and the turned-over paper to 30% black along the fold, strong to 70% and 50%; off leaves a flat paper back.
-
-## Cube Transition
-
-The pages sit on a cube that turns to show the next. Best for photo stories.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/cube-transition/
-- How it runs: reacts to the visitor
-- Good for: Photo stories · Product tours · Slides · Onboarding
-- Avoid on: Text-heavy pages · Everyday navigation
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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.
-
-## Pixelate Transition
-
-The page breaks into big pixels, then sharpens into the next. Best for galleries.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/pixelate-transition/
-- How it runs: reacts to the visitor
-- Good for: Photo galleries · Game and retro sites · Slideshows
-- Avoid on: Everyday navigation · Text-heavy pages
-
-**Prompt**
-
-Add a pixelate transition to [the pictures or views you switch between]. When the visitor moves to the next one, break the current picture into square blocks that grow larger, swap to the new picture while the blocks are at their largest, then shrink the blocks until the new picture is sharp again. Make each block one flat color by drawing the picture very small on a canvas and scaling it back up with smoothing turned off. Keep the page names and buttons outside the pixelated area so they stay readable, and draw only while a change runs. If the visitor has reduced motion turned on, use a short, plain fade instead. Match the settings listed below.
-
-**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Block size: Small · **Medium** · Large. How big the squares are at the middle of a change: small is 8 pixels, medium 16 and large 28.
-- Speed: Slow · **Normal** · Fast. How long a change takes: slow is 1.2 seconds, normal 0.8 seconds and fast 0.5 seconds.
-- How the blocks change: **Smoothly** · In steps. Smoothly grows and shrinks the blocks evenly; in steps holds them at a quarter, a half, three quarters and the full size in turn.
diff --git a/skills/animation-handbook/references/04-micro-interactions.md b/skills/animation-handbook/references/04-micro-interactions.md
deleted file mode 100644
index f3a9a521..00000000
--- a/skills/animation-handbook/references/04-micro-interactions.md
+++ /dev/null
@@ -1,915 +0,0 @@
-# 04 · Micro-Interactions
-
-Short, user-triggered animations — hover, click, focus, loading states, and UI feedback patterns. 44 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
-
-- [Hover State Animation](#hover-state-animation)
-- [Click / Tap Ripple](#click--tap-ripple)
-- [Focus Ring Animation](#focus-ring-animation)
-- [Button Press Scale](#button-press-scale)
-- [Magnetic Button](#magnetic-button)
-- [Toggle / Switch Slide](#toggle--switch-slide)
-- [Heart / Like Burst](#heart--like-burst)
-- [Success Confetti](#success-confetti)
-- [Skeleton Loader](#skeleton-loader)
-- [Shimmer Effect](#shimmer-effect)
-- [Loading Spinner](#loading-spinner)
-- [Progress Animation](#progress-animation)
-- [Checkmark Draw](#checkmark-draw)
-- [Form Field Morph](#form-field-morph)
-- [Notification Badge Pulse](#notification-badge-pulse)
-- [Tooltip Reveal](#tooltip-reveal)
-- [Drawer / Panel Slide](#drawer--panel-slide)
-- [Modal Expand](#modal-expand)
-- [Accordion Open/Close](#accordion-openclose)
-- [Cursor Follower](#cursor-follower)
-- [Error Shake](#error-shake)
-- [Swipe to Dismiss](#swipe-to-dismiss)
-- [Hamburger Menu Toggle](#hamburger-menu-toggle)
-- [Theme Toggle Morph](#theme-toggle-morph)
-- [Copy to Clipboard](#copy-to-clipboard)
-- [Star Rating](#star-rating)
-- [Toast Notification](#toast-notification)
-- [Segmented Control](#segmented-control)
-- [Pull to Refresh](#pull-to-refresh)
-- [Animated Gradient Border](#animated-gradient-border)
-- [Spotlight Hover Glow](#spotlight-hover-glow)
-- [Add-to-Cart Fly](#add-to-cart-fly)
-- [Drag to Reorder](#drag-to-reorder)
-- [Rolling Numbers](#rolling-numbers)
-- [Typing Indicator](#typing-indicator)
-- [Hold to Confirm](#hold-to-confirm)
-- [Expanding Search](#expanding-search)
-- [Button Loading States](#button-loading-states)
-- [Image Trail](#image-trail)
-- [Gooey Menu](#gooey-menu)
-- [Dynamic Island](#dynamic-island)
-- [Before/After Slider](#beforeafter-slider)
-- [Magnifier Lens](#magnifier-lens)
-- [Card Deck Swipe](#card-deck-swipe)
-
-## Hover State Animation
-
-Six ways a card can react when you point at it. Best for buttons and cards.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/hover-state/
-- How it runs: reacts to the visitor
-- Good for: Buttons · Links · Cards · Menus
-- Avoid on: Plain text · Non-clickable items
-
-**Prompt**
-
-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 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 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
-
-A ripple spreads out from the spot you press. Best for buttons and list items.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/click-ripple/
-- How it runs: reacts to the visitor
-- Good for: Buttons · List items · Menu items · Icon buttons
-- Avoid on: Links in text · Large panels
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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 and large end 3, 5 and 8 times the button's longer side across; even small reaches every corner of the button.
-- Ripple strength: Faint · **Medium** · Strong. How visible the ripple is at the start: faint is 20%, medium 40% and strong 60%.
-- Ripple color: **White** · Orange · Black. White suits colored buttons, orange matches the accent, black suits light buttons.
-
-## Focus Ring Animation
-
-A ring closes in around the item the Tab key reaches. Best for forms and menus.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/focus-ring/
-- How it runs: reacts to the visitor
-- Good for: Forms · Buttons · Links · Menus
-- Avoid on: Non-interactive items
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Ring style: **Solid** · Dashed · Glow · Wide. Solid is a plain outline; Dashed draws it in dashes; Glow adds a soft halo, a band of the ring's color at 18% opacity reaching 5px out from the item; Wide fills the gap between the item and the ring, making one thick band.
-- Speed: Slow · **Normal** · Fast. How long the ring takes to close in from 8px further out: slow is 220ms, normal 140ms and fast 80ms; fast enough not to feel delayed, slow enough to see.
-- Ring thickness: Thin · **Medium** · Thick. Thin is 1px, medium 2px and thick 4px; 2px or more is easy to see.
-- Ring gap: None · **Small** · Large. The space between the ring and the item: none, 3px or 6px; 2 to 4px looks natural.
-
-## Button Press Scale
-
-Shrinks as you press it and springs back as you let go. Best for main buttons.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/button-press-scale/
-- How it runs: reacts to the visitor
-- Good for: Main buttons · Icon buttons · Mobile apps
-- Avoid on: Links in text · Large cards
-
-**Prompt**
-
-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 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. 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
-
-Leans toward the pointer, then springs home. Best for one main button.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/magnetic-button/
-- How it runs: reacts to the visitor
-- Good for: Hero buttons · Portfolio sites · One key action
-- Avoid on: Forms · Rows of buttons
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Pull strength: Gentle · **Medium** · Strong. How far the button moves toward the pointer: gentle is 20%, medium 35% and strong 50% of the distance when the pointer is close, a smaller share the farther it is, down to none at the edge of Reach; past about half it feels loose.
-- Reach: Short · **Medium** · Long. How close the pointer must come before the pull starts: short is 100px, medium 160px and long 240px; too far and the button reacts to unrelated movement.
-
-## Toggle / Switch Slide
-
-The knob slides across as the switch turns on or off. Best for settings.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/toggle-switch/
-- How it runs: reacts to the visitor
-- Good for: Settings · Preferences · Dark mode switches
-- Avoid on: Forms sent later · More than two options
-
-**Prompt**
-
-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 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 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
-
-The heart pops and fills as small hearts burst out. Best for like buttons.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/heart-burst/
-- How it runs: reacts to the visitor
-- Good for: Like buttons · Favorites · Bookmarks · Reactions
-- Avoid on: Delete buttons · Neutral toggles
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Number of hearts: Few · **Some** · Many. How many pieces burst out: few is 10, some 18 and many 32; above about 40 it gets busy and costs frames.
-- How far they fly: Short · **Medium** · Far. How far the pieces travel before they fade: short, medium and far launch them at up to 300, 450 or 700px a second (at least half that), and they slow, fall and fade out over about three quarters of a second, the fastest ending about 150, 225 or 350px to the side of the heart.
-
-## Success Confetti
-
-Confetti bursts from the button when a task is done. Best for big moments.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/success-confetti/
-- How it runs: reacts to the visitor
-- Good for: Orders placed · Sign-ups finished · Milestones
-- Avoid on: Everyday clicks · Serious tasks
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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 and heavy speed their fall by about 540, 1,000 and 1,600px a second every second, against launch speeds of 360 to 780px a second, so the fastest pieces climb about 560, 300 or 180px before they fall; heavy falls fast, floaty drifts.
-
-## Skeleton Loader
-
-Gray shapes hold the place of content while it loads. Best for feeds and cards.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/skeleton-loader/
-- How it runs: plays once
-- Good for: Feeds · Cards · Lists · Dashboards
-- Avoid on: Very short waits · Unknown layouts
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Pulse speed: Slow · **Normal** · Fast. How long one pulse takes: slow is 2.4s, normal 1.5s and fast 0.9s; one to two seconds feels calm, faster feels anxious.
-- Pulse strength: Soft · **Medium** · Strong. How far the blocks fade between pulses: soft, medium and strong fade them to 70%, 50% and 30% opacity and back to full; a soft pulse is enough.
-- Loading time: Short · **Medium** · Long. How long the placeholders show before the content fades in: short is 1s, medium 2s and long 3.5s.
-
-## Shimmer Effect
-
-A band of light sweeps over gray placeholders. Best for loading screens.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/shimmer-effect/
-- How it runs: moves by itself
-- Good for: Feeds · Cards · Lists · Image galleries
-- Avoid on: Very short waits · Busy pages
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Speed: Slow · **Normal** · Fast. How often the light crosses: slow every 1.2s, normal every 0.75s and fast every 0.45s; more often than about every 0.4s it feels frantic.
-- Brightness: Soft · **Medium** · Bright. How strong the band of light is: soft, medium and bright are 12%, 25% and 45% opacity at its center; soft is subtle, bright suits a branded screen.
-- Highlight angle: **Upright** · Slanted · Diagonal. Upright sweeps a straight band; Slanted tilts it 25° and Diagonal 45°; keep one angle across the whole page.
-- Highlight color: **White** · Blue · Gold. White works on any placeholder; blue or gold suit branded screens.
-
-## Loading Spinner
-
-Six small shapes loop to show that something is loading. Best for short waits.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/loading-spinner/
-- How it runs: moves by itself
-- Good for: Network waits · Buttons while sending · Short waits
-- Avoid on: Known-length tasks · Very quick loads
-
-**Prompt**
-
-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 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 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
-
-A bar, a ring and steps fill up to show progress. Best for uploads.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/progress-animation/
-- How it runs: plays once
-- Good for: Uploads · Downloads · Multi-step forms · Installs
-- Avoid on: Unknown waits · Fake progress
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-A tick draws itself in a circle once a task succeeds. Best for forms.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/checkmark-draw/
-- How it runs: reacts to the visitor
-- Good for: Form success · Payments · Finished steps
-- Avoid on: Frequent small saves
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Result: **Success** · Error. Success draws a circle and a tick and turns the button green; Error draws a red X, shakes it (6, 6, 4 and 4px to alternate sides over 0.4 seconds) and turns the button red.
-- Speed: Slow · **Normal** · Fast. How long each line takes to draw: slow is 800ms, normal 500ms and fast 300ms, the tick starting 40% of that time after the circle (the X's second line 30% after its first); 200 to 800ms is easy to follow.
-- Line thickness: Thin · **Medium** · Thick. Thin is 2px, medium 4px and thick 7px wide, on an icon 80px across whose circle is 60px wide; thick reads as confident, thin as precise.
-- Feel: **Smooth** · Gentle · Even. Smooth slows at the end like a pen lifting off; Gentle eases in and out; Even draws at one steady pace.
-- Tick color: Pink · White · Blue · Purple · **Green** · Orange. The color of the circle and the tick; the X stays red.
-
-## Form Field Morph
-
-The label moves up out of the way as you type. Best for sign-up forms.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/form-field-morph/
-- How it runs: reacts to the visitor
-- Good for: Sign-up forms · Sign-in forms · Checkout · Settings
-- Avoid on: Long labels
-
-**Prompt**
-
-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 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 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
-
-A badge on an icon pulses to catch the eye. Best for unread messages.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/badge-pulse/
-- How it runs: moves by itself
-- Good for: Notification bells · Inboxes · Chat icons · Online status
-- Avoid on: Items already seen · Many icons at once
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Pulse style: **Grow** · Ring · Both. Grow scales the badge up and back; Ring sends a soft halo outward from just around the badge, growing to 2.2 times that size as it fades from half opacity to nothing; Both does the two together.
-- Speed: Slow · **Normal** · Fast. How long one pulse takes: slow is 2.4s, normal 1.5s and fast 0.9s; fast feels urgent, slow is easy to miss.
-- How much it grows: Slightly · **Medium** · A lot. How big the badge gets at the top of each pulse: slightly is 115%, medium 130% and a lot 150% of its size.
-- Stops after three pulses: on · **off**. The badges pulse three times and then rest; the online dot keeps going.
-- Badge color: **Red** · Pink · Blue · Purple · Orange. The badge's color; red reads as new and urgent.
-
-## Tooltip Reveal
-
-A small label fades in after a short pause. Best for icon buttons.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/tooltip-reveal/
-- How it runs: reacts to the visitor
-- Good for: Icon buttons · Cut-off text · Form hints · Chart values
-- Avoid on: Key information · Long text
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Delay before showing: None · Short · **Medium** · Long. How long the pointer must rest before the tooltip shows: none, short (150ms), medium (300ms) or long (600ms); 300ms keeps tooltips from flashing as the pointer passes, and 200ms can work for very small ones.
-- Speed: Slow · **Normal** · Fast. How long the fade and the slight grow (from 95% of its size) take: slow is 250ms, normal 150ms and fast 90ms.
-- Delay before hiding: None · **Short** · Long. How long the tooltip stays after the pointer leaves: none, short (100ms) or long (300ms); a short pause stops it vanishing the instant the pointer slips off its item.
-- Shows an arrow: on · **off**. Adds a small point that aims the tooltip at its item.
-
-## Drawer / Panel Slide
-
-A side panel slides in over a dimmed page. Best for mobile menus.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/drawer-slide/
-- How it runs: reacts to the visitor
-- Good for: Mobile menus · Filters · Settings panels
-- Avoid on: Short messages · Main content
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-A window grows out of the button you pressed. Best for detail views.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/modal-expand/
-- How it runs: reacts to the visitor
-- Good for: Detail views · Confirmations · Quick forms · Action buttons
-- Avoid on: Long content · Full pages
-
-**Prompt**
-
-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 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 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
-
-Each question opens smoothly to show its answer. Best for FAQ pages.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/accordion/
-- How it runs: reacts to the visitor
-- Good for: FAQ pages · Settings · Menus · Long documents
-- Avoid on: Key information · Short content
-
-**Prompt**
-
-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 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 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 but moves the pressed question up when the answer that closes is above it; on keeps each answer open until its question is pressed again, so nothing jumps up: the pressed question stays where it is and the questions below it only slide down to make room.
-- Built with: **Measured height** · 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
-
-A dot trails your pointer and flips the colors under it. Best for portfolios.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/cursor-follower/
-- How it runs: reacts to the visitor
-- Good for: Portfolios · Agency sites · Interactive stories
-- Avoid on: Forms and tools · Reading pages
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-A field shakes side to side when the input is wrong. Best for sign-in forms.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/error-shake/
-- How it runs: reacts to the visitor
-- Good for: Sign-in forms · Codes and PINs · Form fields
-- Avoid on: Whole pages · Warnings
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Shake distance: Small · **Medium** · Large. How far the field swings: small is 4px, medium 8px and large 14px, the first swing most of that way and each one after it shorter, down to nothing; under 4px barely shows and over about 16px feels violent.
-- Number of swings: Few · **Medium** · Many. How many times it swings: few is 4, medium 6 and many 8; four to six reads as a head shake, more feels frantic.
-- Speed: Slow · **Normal** · Fast. How long the whole shake lasts: slow is 650ms, normal 400ms and fast 250ms; under 250ms feels twitchy and over 600ms drags.
-
-## Swipe to Dismiss
-
-A card dragged sideways flies off and the list closes up. Best for inboxes.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/swipe-to-dismiss/
-- How it runs: reacts to the visitor
-- Good for: Inboxes · Notifications · Chat lists · To-do lists
-- Avoid on: Permanent deletes · Mouse-only tools
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Distance to delete: Short · **Medium** · Long. How far a card must be dragged before letting go deletes it: short is 20%, medium 35% and long 50% of its width; a quick flick (faster than 600px a second, after at least 24px) deletes it from a shorter drag.
-- Shows a Delete label: **on** · off. A red strip with the word Delete shows behind the card while it is dragged.
-
-## Hamburger Menu Toggle
-
-Three lines turn into an X as the menu opens. Best for mobile menus.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/hamburger-menu-toggle/
-- How it runs: reacts to the visitor
-- Good for: Mobile menus · Compact headers · Side panels
-- Avoid on: Wide desktop menus
-
-**Prompt**
-
-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 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 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
-
-A sun turns into a moon as the colors switch to dark. Best for theme buttons.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/theme-toggle-morph/
-- How it runs: reacts to the visitor
-- Good for: Theme buttons · Settings · Headers
-- Avoid on: Dense forms · Icons without labels
-
-**Prompt**
-
-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 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 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
-
-Copy turns into a tick and Copied, then changes back. Best for codes and links.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/copy-to-clipboard/
-- How it runs: reacts to the visitor
-- Good for: Share links · Invite codes · Code blocks · API keys
-- Avoid on: Slow actions · Important saves
-
-**Prompt**
-
-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 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 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
-
-Stars fill up to your pointer and pop when you choose. Best for reviews.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/star-rating/
-- How it runs: reacts to the visitor
-- Good for: Reviews · Surveys · Feedback forms · Media ratings
-- Avoid on: Precise scores
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-Short messages slide into a corner, then leave on their own. Best for updates.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/toast-notification/
-- How it runs: reacts to the visitor
-- Good for: Save confirmations · Upload updates · Sync notices
-- Avoid on: Errors that need action · Long messages
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Corner: Top left · **Top right** · Bottom left · Bottom right. Where toasts appear and stack; in the bottom corners the newest sits nearest the corner.
-- How it comes in: **Slides** · Fades · Grows. Slides in from its corner's side, starting just over its own width away, fades in, or grows from 85% of its size, each fading in over 0.34 seconds; it leaves the same way in 0.3 seconds.
-- Time on screen: Short · **Medium** · Long. How long each toast stays: short is 2.5 seconds, medium 4 and long 6.5; its bar counts down this time.
-- Most at once: Two · Three · **Four**. Two, three or four; when one more arrives, the oldest leaves.
-
-## Segmented Control
-
-A highlight slides to the option you pick. Best for switching views.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/segmented-control/
-- How it runs: reacts to the visitor
-- Good for: View switchers · Filters · Date ranges
-- Avoid on: Many options · Long labels
-
-**Prompt**
-
-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 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 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 2px line under it.
-- Number of options: Two · Three · **Four** · Five. Two to five options; more, or long labels, do not fit on one line.
-
-## Pull to Refresh
-
-Pulling a list down shows a spinner, then new items. Best for feeds.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/pull-to-refresh/
-- How it runs: reacts to the visitor
-- Good for: Feeds · Inboxes · Notifications · Order lists
-- Avoid on: Desktop-only pages · Lists that rarely change
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Pull distance: Short · **Medium** · Long. How far the list must be pulled before letting go refreshes: short is 48px, medium 64px and long 80px, measured after the resistance.
-- Resistance: Low · **Medium** · High. How hard the list fights back as it is pulled: it follows the finger at first and stiffens, so reaching the pull distance takes a drag of about 1.4 times it (low), 1.8 times (medium) or 2.25 times (high), and the list never goes past 3.4, 2.2 or 1.8 times it; with a long pull distance and high resistance, it takes a long drag.
-- Spinner: **Ring** · Dots · Bars. A turning ring, three blinking dots or four stretching bars.
-- Refresh time: Short · **Medium** · Long. How long the spinner turns before the new item arrives: short is 700ms, medium 1200ms and long 2000ms.
-
-## Animated Gradient Border
-
-A band of colors runs around the edge of a card or button. Best for featured offers.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/gradient-border/
-- How it runs: moves by itself
-- Good for: Featured plans · Main buttons · New features · Promo cards
-- Avoid on: Every card on a page · Calm reading pages
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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 about a third of the way around, a long one about three fifths, each fading in from a faint tail to a bright front, or colors all around.
-- Border width: Thin · **Medium** · Thick. How thick the colored edge is: thin is 1px, medium 2px and thick 4px.
-
-## Spotlight Hover Glow
-
-A soft glow follows the pointer and lights card edges. Best for feature grids.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/spotlight-hover/
-- How it runs: reacts to the visitor
-- Good for: Feature grids · Pricing cards · Dashboards · Portfolios
-- Avoid on: Light themes · Text-heavy pages
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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% (other screens close the share that fits their frame time), so the light gets 95% of the way in about 0.15 or 0.5 seconds.
-
-## Add-to-Cart Fly
-
-The product flies into the cart, which bumps and counts up. Best for shops.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/add-to-cart-fly/
-- How it runs: reacts to the visitor
-- Good for: Online shops · Product lists · Food ordering · Wish lists
-- Avoid on: Bulk order forms · Quick reorder lists
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Flight speed: Slow · **Normal** · Fast. How long the copy takes to reach the cart: slow is 1.1s, normal 0.7s and fast 0.45s.
-- Path: **Arc** · Straight. Arc moves sideways at an even pace while it rises and drops into the cart like a toss, peaking a twentieth of the sideways distance (10 to 28px) above the cart; Straight goes in a line, easing in and out.
-- Cart bumps: **on** · off. The cart tips and grows for a moment and its badge pops as the copy lands; off, only the number changes.
-
-## Drag to Reorder
-
-Drag an item and the others slide aside to make room. Best for to-do lists.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/drag-to-reorder/
-- How it runs: reacts to the visitor
-- Good for: To-do lists · Playlists · Priority rankings · Menu editors
-- Avoid on: Lists sorted by date · Very long lists
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Slide speed: Slow · **Normal** · Fast. How fast the passed items slide aside and the dropped one settles: slow is 420ms, normal 220ms and fast 120ms.
-- How much it lifts: **Subtle** · Strong. Subtle grows the held item by 2% with a soft shadow 8px below it; strong grows it by 6%, tilts it 1.5° and deepens the shadow to 18px below it.
-- Drags by the handle only: on · **off**. Only the grip starts a drag; when off, the whole row does, after a short press on touch screens.
-
-## Rolling Numbers
-
-Each digit rolls to its new value, like a mileage counter. Best for prices.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/rolling-numbers/
-- How it runs: reacts to the visitor
-- Good for: Counters · Prices · Scores · Dashboards
-- Avoid on: Numbers that change every second · Long decimals
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-Three dots in a chat bubble move in turn while someone types. Best for chat apps.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/typing-indicator/
-- How it runs: moves by itself
-- Good for: Chat apps · Support chat · AI assistants · Comment threads
-- Avoid on: Long waits · Replies that are not live
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- How the dots move: **Bounce** · Fade · Wave. Bounce hops each dot 7px up and rests between rounds; fade brightens each dot and grows it from 70% to full size; wave raises and lowers the dots between 2.5px below and 5px above their place, without a rest.
-- Speed: Slow · **Normal** · Fast. How long one round of the three dots takes: slow is 1.8 seconds, normal 1.2 seconds and fast 0.8 seconds, each dot starting 15% of a round after the one before.
-- Bubble color: **Gray** · Blue · Green · Purple. The color of the other person's bubbles: gray, blue, green or purple; the dots turn light gray or white to stay clear on it.
-
-## Hold to Confirm
-
-A button fills up while you hold it and acts only once it is full. Best for delete buttons.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/hold-to-confirm/
-- How it runs: reacts to the visitor
-- Good for: Delete buttons · Closing an account · Sending money · Emergency alerts
-- Avoid on: Everyday actions · Actions with Undo
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-A search icon opens into a field, then closes when done. Best for toolbars.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/expanding-search/
-- How it runs: reacts to the visitor
-- Good for: Toolbars · Mobile headers · Docs sites · Dashboards
-- Avoid on: Sites where search comes first
-
-**Prompt**
-
-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 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. 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
-
-The button becomes a spinner, then a tick or a cross. Best for Save buttons.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/button-loading-states/
-- How it runs: reacts to the visitor
-- Good for: Save buttons · Contact forms · Checkout · Sign-up forms
-- Avoid on: Instant actions · Long uploads
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Result: **Success** · Error. Success shows a tick on green; Error shows a cross on red and gives the button a small shake, swinging 7, 6, 4 and 2px to alternate sides over 0.4 seconds.
-- Speed: Slow · **Normal** · Fast. How long the shape, the color and the icon take to change: slow is 500ms, normal 300ms and fast 180ms.
-- Shrinks to a circle: **on** · off. On clips the button's color into a circle around the spinner; off keeps its full shape and changes only what is inside.
-- How long it loads: Short · **Medium** · Long. How long the spinner turns once the button has changed shape, before the answer comes: short is 0.7 seconds, medium 1.2 and long 2.2; in a real form this is the server's time.
-
-## Image Trail
-
-Pictures pop up in a trail behind your pointer, then fade. Best for portfolios.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/image-trail/
-- How it runs: reacts to the visitor
-- Good for: Portfolio heroes · Photo galleries · Agency sites · Lookbooks
-- Avoid on: Reading pages · Busy layouts
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-Small buttons ooze out of a round button like liquid. Best for quick actions.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/gooey-menu/
-- How it runs: reacts to the visitor
-- Good for: Quick actions · Share menus · Mobile apps · Playful brands
-- Avoid on: Long menus · Formal sites
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Layout: Row · **Arc** · Column. Row puts the small buttons in a line beside the round one and Column stacks them above it, with 20px gaps; Arc fans them out above it, 84px from its center and 60° apart; the round button is 64px across and the small ones 50px. All of these are at the base scale: the whole menu is scaled 0.88 to 1.2 times with the stage, so the round button is about 56px across at the smallest and 77px at the largest.
-- How gooey: Low · **Medium** · High. How much the circles are blurred before the edge is sharpened: low is a 5px blur, medium 9px and high 13px for a round button 64px across (scaled with the menu, and a fifth less on phones); higher keeps the drops joined for longer.
-- Speed: Slow · **Normal** · Fast. How long a small button takes to pop out: slow is 950ms, normal 600ms and fast 380ms, each starting 90, 60 or 40ms after the one before.
-- Button color: **Orange** · Pink · Purple · Blue · Green. The color of the circles; the icons stay dark.
-
-## Dynamic Island
-
-A black pill grows into a notification, then shrinks back. Best for live updates.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/dynamic-island/
-- How it runs: reacts to the visitor
-- Good for: Calls and timers · Music players · Order tracking · Live scores
-- Avoid on: Long messages · Errors that need action
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Notification: **Call** · Timer · Music. What the 96 by 32px pill grows into: a call card 76px tall, a timer in a wide capsule 64px tall, or a music card with controls 148px tall; the call and music cards are about 85% as wide as the screen and the timer about 77%; picking another while it is open changes the shape straight into the new one.
-- Speed: 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 past it by about 5% of the change in size and Springy by about 16%, and each settles by the end of its time.
-
-## Before/After Slider
-
-Drag a line across two pictures to compare them. Best for photo edits.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/before-after-slider/
-- How it runs: reacts to the visitor
-- Good for: Photo edits · Redesigns · Renovations · Product upgrades
-- Avoid on: Small thumbnails · Unrelated pictures
-
-**Prompt**
-
-Add a before-and-after slider to [the two pictures you want to compare]. Stack the pictures exactly on top of each other and show the top one only up to a dividing line with a handle, so each side of the line shows one picture. Dragging on the pictures moves the line, and a tap jumps it there. Uncover the top picture with a clip or a sliding window, never by resizing it, so neither picture moves or squeezes. Use pointer events for mouse and touch, keep page scrolling free on phones, and let the arrow keys move the handle. If the visitor has reduced motion turned on, move the line without gliding. Match the settings listed below.
-
-**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Split: **Left and right** · Top and bottom. Which way the line runs: left and right shows After to the left of an upright line, dragged anywhere on the pictures; top and bottom shows After below a level line, dragged by its handle only.
-- Handle: **Knob** · Bar · Line only. What there is to grab: knob is a round button with two arrows, bar a narrow bar along the line, line only the bare line, with nothing showing where to grab (the knob's fingertip-sized grab area stays, unseen, on the middle of the line).
-- Shows labels: **on** · off. Before and After name each side from a corner, and each fades out when the line comes within a few pixels of it.
-
-## Magnifier Lens
-
-A lens follows your pointer and shows the picture up close. Best for product photos.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/magnifier-lens/
-- How it runs: reacts to the visitor
-- Good for: Product photos · Maps · Artwork · Detailed plans
-- Avoid on: Small or plain pictures
-
-**Prompt**
-
-Add a magnifier lens to [the product photo or detailed picture people want to inspect]. While the pointer is over the picture, show a lens there holding an enlarged copy, placed so the spot under the pointer sits in the middle of the lens. Fill the lens from a larger, sharper version of the picture, never the same small one stretched, and move the lens and the copy with transforms only. On touch screens, show it while a finger is down, just above the finger, and let a drag move it without scrolling the page; from the keyboard, show it on focus and move it with the arrow keys. If the visitor has reduced motion turned on, let it appear without growing. Match the settings listed below.
-
-**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Zoom: 2 times · **3 times** · 4 times. How many times bigger the copy in the lens is than the picture: 2 times, 3 times or 4 times.
-- Lens size: Small · **Medium** · Large. How wide the lens is: small is 110 pixels across, medium 150 and large 200, a fifth less on phones.
-- Lens shape: **Round** · Square. Round is a circle; square is a square with slightly rounded corners, which suits maps and plans.
-
-## Card Deck Swipe
-
-Swipe the top card left or right; the next one rises. Best for quick choices.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/card-deck-swipe/
-- How it runs: reacts to the visitor
-- Good for: Matching apps · Product pickers · Flashcards · Quick polls
-- Avoid on: Lists people compare · Choices that need care
-
-**Prompt**
-
-Add a swipeable card deck to [your stack of cards, such as profiles or products]. Pile the cards with the waiting ones behind the top one, showing as the settings choose. While dragged, the top card follows the finger and turns as the settings choose, as if held at its bottom edge, and Like or Nope stamps fade in when the settings include them. On release, send it off that side if it went far enough or was flicked; otherwise spring it back, and grow the next card into place. Use transforms and pointer events, let up-and-down scrolling pass through, and add Nope, Like and Undo buttons for keyboards. If the visitor has reduced motion turned on, fade cards out instead of throwing them. Match the settings listed below.
-
-**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- How far to swipe: Short · **Medium** · Long. How far the card's middle must go before letting go sends it: short is a quarter of the card's width, medium 40% and long 60%; a quick flick sends it from anywhere.
-- How much it turns: None · **A little** · A lot. How far the card turns for each card width of drag, around a point below its bottom edge: none does not turn, a little turns 14 degrees and a lot 30 degrees.
-- Shows stamps: **on** · off. Like in green and Nope in red fade in on the card as it is dragged, fully shown halfway to the swipe distance.
-- Cards behind: **Peeking** · Fanned · Hidden. How the waiting cards show: peeking sets each one a little lower and 5% smaller, fanned turns them left and right in turn, 5 degrees more and 3% smaller for each card further back, around the same low point, hidden shows only the top card until the next one grows in.
diff --git a/skills/animation-handbook/references/05-text-typography.md b/skills/animation-handbook/references/05-text-typography.md
deleted file mode 100644
index 59909465..00000000
--- a/skills/animation-handbook/references/05-text-typography.md
+++ /dev/null
@@ -1,414 +0,0 @@
-# 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 with what each does and the demo's values.
-
-## Contents
-
-- [Kinetic Typography](#kinetic-typography)
-- [Typewriter Effect](#typewriter-effect)
-- [Scramble / Glitch Text](#scramble--glitch-text)
-- [Variable Font Morph](#variable-font-morph)
-- [Text Clip-Path Reveal](#text-clip-path-reveal)
-- [Marquee / Ticker](#marquee--ticker)
-- [Text Morphing](#text-morphing)
-- [Text Gradient Animation](#text-gradient-animation)
-- [Outline to Fill](#outline-to-fill)
-- [Enter/Exit Typography](#enterexit-typography)
-- [Rotate Word Carousel](#rotate-word-carousel)
-- [Glitch Text](#glitch-text)
-- [Text on a Path](#text-on-a-path)
-- [Wavy Text](#wavy-text)
-- [Highlighter Sweep](#highlighter-sweep)
-- [Split-Flap Board](#split-flap-board)
-- [Neon Flicker](#neon-flicker)
-- [Handwriting Draw](#handwriting-draw)
-- [Text Particles](#text-particles)
-
-## Kinetic Typography
-
-Words arrive and leave one by one, each moving its own way. Best for intros.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/kinetic-typography/
-- How it runs: plays once
-- Good for: Intros · Splash screens · Story sections · Presentations
-- Avoid on: Forms and menus · Long text
-
-**Prompt**
-
-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 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. 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, and at normal entrances take 400 to 700ms, holds 0.9 to 2.2 seconds and exits 300 to 500ms.
-
-## Typewriter Effect
-
-Text types itself out behind a blinking cursor. Best for short taglines.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/typewriter-effect/
-- How it runs: plays once
-- Good for: Taglines · Chat messages · Terminal screens · Short intros
-- Avoid on: Long text · Buttons and labels
-
-**Prompt**
-
-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 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. 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
-
-Random symbols lock into the real text, left to right. Best for tech headlines.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/scramble-text/
-- How it runs: plays once
-- Good for: Tech headlines · Loading screens · Game titles
-- Avoid on: Long text · Calm brands
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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; mixed draws from letters, numbers and symbols together.
-- 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
-
-A word smoothly turns bold, then light, and leans over. Best for headlines.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/variable-font-morph/
-- How it runs: moves by itself
-- Good for: Headlines · Logos · Loading text
-- Avoid on: Body text · Small text
-
-**Prompt**
-
-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 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 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
-
-Each line of a headline is uncovered in turn. Best for big headlines.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/text-clip-path-reveal/
-- How it runs: plays once
-- Good for: Headlines · Taglines · Portfolios
-- Avoid on: Body text · Buttons and labels
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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 keeps one steady pace, which feels mechanical.
-- Your lines: text box, starts with the lines "Good design", "Is honest" and "Always.". The headline, one line per row.
-
-## Marquee / Ticker
-
-Text scrolls sideways in an endless loop, with no seam. Best for news tickers.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/marquee-ticker/
-- How it runs: moves by itself
-- Good for: News tickers · Brand strips · Client lists
-- Avoid on: Important messages · Long sentences
-
-**Prompt**
-
-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 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 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
-
-One word changes into the next, letter by letter. Best for short labels.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/text-morphing/
-- How it runs: moves by itself
-- Good for: Short labels · Status words · Hero headlines
-- Avoid on: Long words · Sentences
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Slide direction: **Up** · Down · Left · Right. Up and down look like a slot machine, each letter sliding its own height; left and right slide sideways, 80% of a letter's width; the letters fade out and in as they slide.
-- 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
-
-Colors flow through the letters while the text stays still. Best for headlines.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/text-gradient-animation/
-- How it runs: moves by itself
-- Good for: Headlines · Logos · Hero titles
-- Avoid on: Body text · Small text
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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 loop takes: slow is 6.4s, normal 4s and fast 2.4s; in each loop the gradient, three times as wide as the text, slides left by twice its own width, and a spinning one turns once; 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). 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). With Two colors, the color in the middle.
-- Your text: text field, starts as "Flow". The text the colors flow through.
-
-## Outline to Fill
-
-Hollow letters fill with color, as a wipe or a fade. Best for big headlines.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/outline-to-fill/
-- How it runs: plays once
-- Good for: Big headlines · Logos · Posters · Section titles
-- Avoid on: Small text · Body text
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-Each phrase comes in, stays long enough to read, then leaves. Best for slogans.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/enter-exit-typography/
-- How it runs: plays once
-- Good for: Intros · Brand statements · Hero messages · Screens and signage
-- Avoid on: Long sentences · Key information
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-One word in a sentence keeps swapping for the next. Best for hero headlines.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/rotate-word-carousel/
-- How it runs: moves by itself
-- Good for: Hero headlines · Taglines · Service lists
-- Avoid on: Body text · Long word lists
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Slide direction: **Up** · Down · Left · Right. Up and down move the word like a slot machine; left and right slide it sideways; each slide moves the word 110% of its own height or width while it fades out or in.
-- Speed: Slow · **Normal** · Fast. How long each slide takes, once for the word going out and again for the next one coming in: 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
-
-Text tears into red and cyan strips like a broken signal. Best for bold titles.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/glitch-text/
-- How it runs: moves by itself
-- Good for: Bold titles · Music and games · Error pages
-- Avoid on: Long text · Calm brands
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Color split: Small · **Medium** · Large. How far the red and cyan copies sit from the word: small is 2px, medium 4px and large 8px, and each copy casts a shadow in its own color as far again beyond it.
-- 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: about every quarter second the word jumps up to 1.8px to either side at mild, 3.6px at medium and 5.4px at strong, and the strips jump to a random point in their pattern about 1.5, 2.5 or 3 times a second.
-- 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
-
-Text travels along a wave, an arc or a circle. Best for badges and seals.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/text-on-path/
-- How it runs: moves by itself
-- Good for: Badges and seals · Playful titles · Decorations
-- Avoid on: Long text · Key information
-
-**Prompt**
-
-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 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. 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
-
-A wave rolls through the word, letter by letter. Best for playful titles.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/wavy-text/
-- How it runs: moves by itself
-- Good for: Playful titles · Games and kids' sites · Loading text
-- Avoid on: Serious content · Long text
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Wave height: Low · **Medium** · High. How high each letter rises above its resting place: low is 8px, medium 16px and high 28px, and it sinks 0.6 times as far below it; 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
-
-A marker sweeps in behind the key words, one after another. Best for key points.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/highlighter-sweep/
-- How it runs: plays once
-- Good for: Key points · Quotes · Headlines · Study notes
-- Avoid on: Long paragraphs · Too many words
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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 completely: the band starts 12% of the font size below the top of the word's box, which is still about an eighth of the font size above the tallest letters, and ends a little below the tails of letters such as g and p; Lower half starts it 62% down, about halfway up the capitals, so it covers only the bottom of the letters, like a thick underline.
-
-## Split-Flap Board
-
-Tiles flip through the letters to spell a word, like an airport board. Best for hero titles.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/split-flap-board/
-- How it runs: plays once
-- Good for: Hero titles · Travel sites · Event intros · Retro designs
-- Avoid on: Long text · Calm pages
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-Glowing letters sputter now and then, like a worn neon sign. Best for night themes.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/neon-flicker/
-- How it runs: moves by itself
-- Good for: Signs and logos · Night and bar themes · Music and events · Retro sites
-- Avoid on: Long text · Calm, serious pages
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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: six bursts in 6 seconds, one of them a longer drop out of about 0.4 seconds.
-- 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, whose widest blur is 0.12 times the font size at small, 0.42 at medium and 1.1 at large.
-- 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
-
-A word writes itself stroke by stroke, as if by a pen. Best for greetings and signatures.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/handwriting-draw/
-- How it runs: plays once
-- Good for: Greetings and thank-you notes · Signatures · Page intros · Invitations
-- Avoid on: Long text · Small text
-
-**Prompt**
-
-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 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. 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, where a small letter is 28 units tall.
-- Shows the pen: **on** · off. A small pen rides on the tip of the line and lifts between strokes.
-
-## Text Particles
-
-A word of dots scatters from your pointer and springs back. Best for intros.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/text-particles/
-- How it runs: reacts to the visitor
-- Good for: Hero titles · Page intros · Portfolios · Launch pages
-- Avoid on: Long text · Small text
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Dot size: Small · **Medium** · Large. How far apart the dots sit: small is 3 px, medium 4.2 and large 6 for a 180 px font, scaled with the word between 0.75 and 1.25 times; each dot is about three quarters of that step wide, 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
deleted file mode 100644
index afd2fed2..00000000
--- a/skills/animation-handbook/references/06-3d-advanced.md
+++ /dev/null
@@ -1,616 +0,0 @@
-# 06 · 3D & Advanced
-
-WebGL, shaders, particles, 3D transforms, simulations, and other heavier effects. 28 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
-
-- [3D Model Orbit](#3d-model-orbit)
-- [Scroll-Driven 3D Rotation](#scroll-driven-3d-rotation)
-- [Parallax 3D Tilt](#parallax-3d-tilt)
-- [Canvas Particle Effect](#canvas-particle-effect)
-- [Fluid / Liquid Simulation](#fluid--liquid-simulation)
-- [Glassmorphism Animated](#glassmorphism-animated)
-- [WebGL Shader Animation](#webgl-shader-animation)
-- [Noise-Based Motion](#noise-based-motion)
-- [SVG Path Animation](#svg-path-animation)
-- [Chromatic Aberration](#chromatic-aberration)
-- [2.5D / Pseudo-3D](#25d--pseudo-3d)
-- [Ray Marching / SDF Scene](#ray-marching--sdf-scene)
-- [GPGPU Particle System](#gpgpu-particle-system)
-- [Image Distortion on Hover](#image-distortion-on-hover)
-- [Cloth / Soft-Body Simulation](#cloth--soft-body-simulation)
-- [Volumetric Smoke / 3D Noise](#volumetric-smoke--3d-noise)
-- [Morphing Blob](#morphing-blob)
-- [3D Flip Card](#3d-flip-card)
-- [3D Carousel](#3d-carousel)
-- [Depth-Map Photo](#depth-map-photo)
-- [Flocking](#flocking)
-- [ASCII / Halftone](#ascii--halftone)
-- [2D Physics](#2d-physics)
-- [Liquid Glass](#liquid-glass)
-- [Holographic Card](#holographic-card)
-- [Infinite Zoom](#infinite-zoom)
-- [Water Ripple](#water-ripple)
-- [Audio Visualizer](#audio-visualizer)
-
-## 3D Model Orbit
-
-A lit 3D shape spins, or turns to face your pointer. Best for product views.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/3d-model-orbit/
-- How it runs: moves by itself
-- Good for: Product showcases · Hero sections · Logos · 3D previews
-- Avoid on: Long reading pages · Low-power devices
-
-**Prompt**
-
-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 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. The object that is drawn: a cube, a sphere, a ring or a pyramid of four triangles.
-- Movement: **Spins** · Follows the pointer. Spins turns it by itself; Follows the pointer turns it to face your pointer or finger, up to 86° to either side and 69° up or down with the pointer at the stage's edges.
-- Speed: Slow · **Normal** · Fast. How fast it spins: slow is about 17°, normal 27° and fast 45° a second, on any screen; while it tumbles, the forward roll swings between still and a quarter of that over about 21 seconds.
-- 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, from the shape's center: close is about 2.3 times the shape's width, medium 2.7 times and far 3.8 times, so close looks bigger; the lens stays the same, a 45° view from top to bottom.
-- 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
-
-Scrolling turns a 3D cube from pose to pose. Best for product tours.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/scroll-driven-3d-rotation/
-- How it runs: follows the scroll
-- Good for: Product tours · Device launches · Landing pages · Storytelling sections
-- Avoid on: Short pages · Forms and dashboards
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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 (a 90° turn to the side, a 30° forward tilt, and 180° the other way at the end); 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 (95% of it in about half 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
-
-A card tilts toward your pointer, and a light slides over it. Best for cards.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/parallax-3d-tilt/
-- How it runs: reacts to the visitor
-- Good for: Feature cards · Pricing cards · Portfolio tiles · Game cards
-- Avoid on: Text-heavy cards · Dense grids
-
-**Prompt**
-
-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 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. 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
-
-Dots drift, link up when close, and dodge your pointer. Best for tech sites.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/canvas-particle-effect/
-- How it runs: moves by itself
-- Good for: Hero sections · Tech sites · Loading screens · Dark backgrounds
-- Avoid on: Long reading pages · Busy layouts
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Pointer effect: **Push** · Pull · None. What the pointer or a finger does to dots within 120px: pushes them away, pulls them in, or nothing, more strongly the closer they are (a dot 40px away speeds up by about 36px a second every second), up to twice the fastest drift speed; a dot keeps the speed it gains.
-- 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 30px, normal 48px and fast 78px a second for the fastest dots, and the slowest go a fifth of that, 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
-
-Blobs drift and melt into each other like liquid. Best for hero backgrounds.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/fluid-simulation/
-- How it runs: moves by itself
-- Good for: Hero backgrounds · Wellness brands · Creative studios · Splash screens
-- Avoid on: Behind text · Small elements
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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: at slow each blob swings from side to side and back every 3 to 10 seconds, at normal every 2 to 6 seconds and at fast every 1.2 to 3.7 seconds, each at its own pace.
-- 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
-
-Frosted glass cards blur the colors behind them. Best for cards and panels.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/glassmorphism-animated/
-- How it runs: moves by itself
-- Good for: Cards and panels · Dashboards · Modals · Navigation bars
-- Avoid on: Plain backgrounds · Large surfaces
-
-**Prompt**
-
-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 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. 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 fills it with the tint color at 6% strength, medium at 12% and strong at 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
-
-Moving color patterns computed for every pixel. Best for bold backgrounds.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/webgl-shader-animation/
-- How it runs: moves by itself
-- Good for: Hero backgrounds · Music and events · Loading screens · Art pages
-- Avoid on: Behind text · Low-power devices
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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 real time, so the plasma's colors drift once around the rainbow in about 33 seconds at slow, 20 at normal and 12.5 at fast.
-- Reacts to the pointer: 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
-
-Smooth noise makes dots sway and a blob ripple. Best for calm backgrounds.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/noise-based-motion/
-- How it runs: moves by itself
-- Good for: Backgrounds · Generative art · Idle and loading states
-- Avoid on: Behind text · Fast-paced screens
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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: one swirl of the noise is about 250px across at large, 125px at medium and 60px at small, and the blob's edge has about two, three or five ripples; large moves big areas together, small looks busy and fine.
-- Speed: Slow · **Normal** · Fast. How fast the noise moves along: the pattern drifts one swirl's width in about 5.6 seconds at slow, 3.3 at normal and 2.1 at fast, which with medium patterns is about 22px, 38px and 60px a second.
-- Wobble: Small · **Medium** · Large. How far each dot, or the blob's edge, moves: small is 6px, medium 12px and large 20px from each dot's place, and the blob's edge moves in and out by up to twice that.
-- 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
-
-A line drawing draws itself, stroke by stroke. Best for icons and logos.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/svg-path-animation/
-- How it runs: plays once
-- Good for: Icons · Logos · Signatures · Illustrations
-- Avoid on: Photos · Body text
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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 with the drawing at its full 400px width, thinner when it shrinks to fit a smaller box; 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
-
-A word splits into red, green and blue fringes. Best for bold titles.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/chromatic-aberration/
-- How it runs: moves by itself
-- Good for: Bold titles · Music and games · Error pages
-- Avoid on: Body text · Light backgrounds
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Movement: **Pulse** · Glitch · None. Pulse widens the split to 1.8 times and back every 2 seconds; Glitch makes the red and blue copies jump twice near the end of every 4 seconds, for 80ms each, always the same way whatever the Direction: red goes right by 3 times the split and up by the split, then left by 2 times the split and down by the split, and blue goes the opposite way; None keeps it still.
-- Color split: 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
-
-Flat layers slide by different amounts, faking depth. Best for hero scenes.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/2-5d-pseudo-3d/
-- How it runs: reacts to the visitor
-- Good for: Hero scenes · Illustrations · Game sites · Landing pages
-- Avoid on: Photos · Content-heavy pages
-
-**Prompt**
-
-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 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. 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), and 40% as far from top to bottom; 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
-
-A 3D scene drawn only from formulas, circled by a camera. Best for art pages.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/ray-marching-sdf/
-- How it runs: moves by itself
-- Good for: Art pages · Hero visuals · Tech demos
-- Avoid on: Behind text · Low-power devices
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-Tens of thousands of particles flow on the graphics chip. Best for hero effects.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/gpgpu-particle-system/
-- How it runs: moves by itself
-- Good for: Hero effects · Data art · Launch pages
-- Avoid on: Behind text · Low-power devices
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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 pushes 0.35 times as hard as fast and normal 0.6 times; under Flow a typical particle then crosses about 11%, 16% or 22% of the stage a second.
-- 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
-
-The picture ripples and bends around your pointer. Best for portfolio images.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/image-distortion-hover/
-- How it runs: reacts to the visitor
-- Good for: Portfolio images · Gallery tiles · Hero images · Product photos
-- Avoid on: Small thumbnails · Images with text
-
-**Prompt**
-
-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 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. 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: Ripple shifts it by up to 2% of its width and height at gentle, 4% at medium and 7% at strong; Push shifts it 1.6 times as far and Liquid 0.6 times, and Pixels makes blocks up to 1%, 1.7% or 2.9% of the picture's width and height. Stronger looks more dramatic but harder to read.
-- Size: Small · **Medium** · Large. How wide an area bends: a circle around the pointer whose radius is 15% of the picture's height at small, 25% at medium and 40% at large; the bending fades from full at the pointer to none at its edge.
-- 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
-
-A cloth sways in the wind, and you can drag it around. Best for playful pages.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/cloth-simulation/
-- How it runs: moves by itself
-- Good for: Flags and banners · Playful pages · Fashion and textiles
-- Avoid on: Behind text · Serious content
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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 over a 12.6-second cycle: at its peak it speeds points up sideways by about 30px a second every second at light, 75px at medium and 180px at strong, and part of the time it blows back at up to about half that.
-- Stiffness: 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: gravity speeds a falling point up by about 17px a second every second at light, 35px at normal and 58px at heavy.
-- Detail: Low · **Medium** · High (phones start with Low). How many cells the cloth's grid has, with a point at every corner: low is 16 × 12, medium 24 × 18 and high 40 × 30; the cloth is cut 80% as wide as the stage and 65% as tall, so the cells take their shape from the stage: about square on a phone, but two to three times as wide as tall on a laptop; phones start at low.
-- Shows the points: on · **off**. Marks every point of the grid, with the pinned ones in red.
-
-## Volumetric Smoke / 3D Noise
-
-Soft smoke curls upward, drawn as a real 3D cloud. Best for moody backgrounds.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/volumetric-smoke/
-- How it runs: moves by itself
-- Good for: Moody backgrounds · Title cards · Games · Sci-fi themes
-- Avoid on: Behind text · Low-power devices
-
-**Prompt**
-
-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 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. How dense the smoke is: thin is 0.6 times as dense as medium and thick 1.7 times, so the thickest wisps hide about a third of what is behind at thin, half at medium and 70% at thick; thin looks wispy.
-- Speed: Slow · **Normal** · Fast. How fast the smoke rises: its pattern moves about 3% of the box's height a second at slow, 5% at normal and 9% at fast.
-- Detail: 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 smoke drifts slowly to one side, about 2% of the box's height a second, while the plume stays in place.
-- 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
-
-Blobs melt together, and one drop chases your pointer. Best for hero sections.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/morphing-blob/
-- How it runs: moves by itself
-- Good for: Hero sections · Playful brands · Loading states · Cursor effects
-- Avoid on: Serious content · Busy layouts
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Gooeyness: Low · **Medium** · High. How much the circles are blurred before the edge is sharpened again: low is 6, medium 10 and high 16, measured in a drawing 360 units across whose circles are 26 to 52 units in radius; higher melts circles from farther apart.
-- Number of blobs: 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; each circle sways side to side and up and down at the same time, each sway at its own rate (at normal, one sway takes 6 to 16 seconds), so it wanders in loops that never quite repeat rather than back and forth along one line.
-
-## 3D Flip Card
-
-A card turns over in 3D to show its back. Best for profile and product cards.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/flip-card-3d/
-- How it runs: reacts to the visitor
-- Good for: Profile cards · Product cards · Flashcards · Quiz answers
-- Avoid on: Long text · Key information
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-Cards stand in a ring that spins in 3D as you drag it. Best for image galleries.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/carousel-3d/
-- How it runs: reacts to the visitor
-- Good for: Image galleries · Product picks · Portfolios · Album covers
-- Avoid on: Long lists · Text-heavy cards
-
-**Prompt**
-
-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 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. How many cards stand in the ring: 6, 8 or 12, with a gap of 12% of a card between neighbors. More cards make a wider ring; where it would not fit, as with 12 cards on a phone, the cards are drawn smaller to keep it within 94% of the box's width.
-- 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
-
-A flat photo turns 3D as you point: near parts shift more. Best for hero images.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/depth-map-photo/
-- How it runs: reacts to the visitor
-- Good for: Hero images · Portfolio photos · Travel stories · Album art
-- Avoid on: Photos with text · Small thumbnails
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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
-
-Birds swirl and turn together as one flock. Best for calm backgrounds.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/flocking/
-- How it runs: moves by itself
-- Good for: Hero sections · Nature and travel sites · Art and game pages · Dark backgrounds
-- Avoid on: Long reading pages · Busy layouts
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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. The pulls toward their heading and their middle weigh 0.7 and 0.3 at loose, 1 and 0.5 at normal and 1.2 and 0.9 at tight, against 2 for keeping apart; the room shrinks in proportion on a stage under 380px tall or wide, to 65% at the least.
-- 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 (78, 120 and 180px a second); no bird flies slower than 55% of it. It shrinks in proportion on a stage under 380px tall or wide, to 65% at the least.
-- 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
-
-A moving picture is redrawn with letters or dots. Best for retro and tech looks.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/ascii-halftone/
-- How it runs: moves by itself
-- Good for: Retro and tech sites · Music and game pages · Hero images · Portfolio headers
-- Avoid on: Photos people must see clearly · Long reading pages
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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, in even steps of area.
-- 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
-
-Balls drop where you click, bounce and pile up. Best for playful intros.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/physics-2d/
-- How it runs: reacts to the visitor
-- Good for: Playful intros · Empty states · Games and toys · Kids' and learning sites
-- Avoid on: Forms and checkout · Serious content
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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 pulls a fifth as hard, a fall of about 1.6 seconds, and Heavy twice as hard, about half a second.
-- 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
-
-Drag a glass panel and the picture behind it bends at the edges. Best for cards.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/liquid-glass/
-- How it runs: reacts to the visitor
-- Good for: Floating menus · Cards over photos · Tab bars · Media controls
-- Avoid on: Long text · Plain backgrounds
-
-**Prompt**
-
-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 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. The rim's deepest shift, at the very edge, as a share of the rim's width (35% of the panel's height): subtle 25%, medium 42% and strong 60%, and a slight pull toward the middle, which magnifies the whole panel a little, adds 15% to it. Past half the rim folds into a thin mirrored band, as the edge of thick glass does. Other browsers show a faint white glow inside the rim instead, blurred over 12, 23 or 36px.
-- 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 (the pill 1.12 times as wide and the circle 0.68 times), and no shape is taller than 55% of the stage.
-- 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
-
-A card tilts as you point, and its rainbow foil shimmers. Best for collectibles.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/holographic-card/
-- How it runs: reacts to the visitor
-- Good for: Trading cards · Membership cards · Rewards and badges · Product launches
-- Avoid on: Text-heavy cards · Dense grids
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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 (55% strength, a little over half) or bright (full strength); 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
-
-The view keeps zooming into pictures inside pictures. Best for page intros.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/infinite-zoom/
-- How it runs: moves by itself
-- Good for: Page intros · Portfolios and galleries · Story and game sites · Music and art pages
-- Avoid on: Long reading pages · Forms and checkout
-
-**Prompt**
-
-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 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 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.
-
-## Water Ripple
-
-Ripples spread from your finger and bend the picture below. Best for hero images.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/water-ripple/
-- How it runs: reacts to the visitor
-- Good for: Hero pictures · Pool, spa and travel sites · Playful backgrounds
-- Avoid on: Pictures with text · Busy pages
-
-**Prompt**
-
-Add a water ripple effect to [the picture you want to look as if it lies under water]. Keep two grids of water heights, now and one step earlier. On each step, set every point to half the total of its four neighbors minus its earlier height, then damp it slightly, so ripples spread, cross, bounce off the edges and fade. A finger or mouse drag leaves a trail of small pushes without scrolling the page; a tap drops a pebble. Draw the picture shifted at each point by the slope of the water, so it bends under the waves. Use a coarse grid and fixed steps, and stop once the water is calm. Under reduced motion, show still rings that fade. Match the settings listed below.
-
-**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Ripple size: Small · **Medium** · Large. How wide each push is, in grid points of a full-size grid: small is 2, medium 3.5 and large 5.5 (a tap's pebble is half as wide again).
-- How long ripples last: Short · **Medium** · Long. How much height the water loses each step: short is 5%, which fades a pebble's rings within a second; medium 2.2%, about three seconds; long 0.9%, long enough for rings to bounce off the edges and cross.
-- Bend: Subtle · **Medium** · Strong. How far the picture under a slope is shifted: subtle is 5 grid points for a full slope, medium 12 and strong 22.
-- Light on the waves: **on** · off. Slopes that face the light show a lighter picture, in three steps of brightness; off, only the bending shows.
-
-## Audio Visualizer
-
-Bars dance to the music, from bass to treble. Best for music players.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/audio-visualizer/
-- How it runs: moves by itself
-- Good for: Music players · Podcast pages · Radio and DJ sites · Voice notes
-- Avoid on: Pages without sound · Reading pages
-
-**Prompt**
-
-Add an audio visualizer to [your music player, podcast card or hero section]. Connect the playing audio to an analyzer that reports, many times a second, how loud each band of pitches is, and draw the bands on a canvas from bass to treble, in the style the settings choose, each sized by its loudness. Give higher bands wider slices of pitch, as hearing does, so the whole row moves. Let bands jump up at once and sink back as the settings choose. Start sound only when the visitor presses play, never use the microphone without asking, and draw fewer bars on phones. If the visitor has reduced motion turned on, keep the bars still until they press play. Match the settings listed below.
-
-**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Style: **Bars** · Wave · Circle. Bars stand in a row from bass to treble; wave draws the sound's shape over a few hundredths of a second instead of its pitches; circle sets the bars around a ring that swells with the bass.
-- Number of bars: Few · Some · **Many** (phones start with Some). With Bars or Circle: few is 16 bars, some 32 and many 64; phones start at some, and each row of Compare holds half as many bars on phones; Wave has no bars and hides this setting.
-- How bars fall: Quickly · **Gently** · Slowly. With Bars or Circle, how fast a bar sinks after it jumps: quickly is 2.6 bar heights a second, gently 1.2 and slowly 0.45, like an old stereo; Wave hides this setting.
-- Peak marks: **on** · off. With Bars or Circle, a thin mark (a dot in the ring) holds each bar's highest point for 0.4 seconds, then sinks slowly; off, only the bars show; Wave hides this setting.
-- Colors: **Sunset** · Ocean · Neon. The colors from the bottom of each bar to its top, or from left to right along the wave: sunset runs from coral to gold, ocean from deep blue to cyan, neon from pink to cyan; See inside lays the colors of the tune's parts over them.
diff --git a/skills/animation-handbook/references/07-ambient-background.md b/skills/animation-handbook/references/07-ambient-background.md
deleted file mode 100644
index 268d7c9b..00000000
--- a/skills/animation-handbook/references/07-ambient-background.md
+++ /dev/null
@@ -1,584 +0,0 @@
-# 07 · Ambient & Background
-
-Passive, looping effects that hold visual interest without demanding attention — gradients, particles, grain, and glows. 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
-
-- [Animated Gradient Background](#animated-gradient-background)
-- [Mesh Gradient Animation](#mesh-gradient-animation)
-- [Aurora / Northern Lights](#aurora--northern-lights)
-- [Grain / Film Noise Overlay](#grain--film-noise-overlay)
-- [Scanline Effect](#scanline-effect)
-- [Light Leak](#light-leak)
-- [Starfield / Space Particles](#starfield--space-particles)
-- [Breathing / Pulsing Glow](#breathing--pulsing-glow)
-- [Ambient Ripple Effect](#ambient-ripple-effect)
-- [Floating Elements](#floating-elements)
-- [Grid / Dot Pattern Parallax](#grid--dot-pattern-parallax)
-- [Abstract Geometric Motion](#abstract-geometric-motion)
-- [Particle Constellation](#particle-constellation)
-- [Flow Field](#flow-field)
-- [Synthwave Grid](#synthwave-grid)
-- [Matrix Rain](#matrix-rain)
-- [Plasma Field](#plasma-field)
-- [Wave Layers](#wave-layers)
-- [Snow / Rain](#snow--rain)
-- [Fireworks](#fireworks)
-- [Topographic Lines](#topographic-lines)
-- [Light Rays](#light-rays)
-- [Game of Life](#game-of-life)
-- [Ken Burns Effect](#ken-burns-effect)
-- [Fire Effect](#fire-effect)
-- [Lightning](#lightning)
-
-## Animated Gradient Background
-
-Colors slowly drift across a soft gradient background. Best for hero sections.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/animated-gradient-background/
-- How it runs: moves by itself
-- Good for: Hero sections · Landing pages · Dashboards · Splash screens
-- Avoid on: Long reading pages · Small elements
-
-**Prompt**
-
-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 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. Sliding moves a large, soft gradient (four times the box's width and height) back and forth; Color wheel turns every color around the color wheel; Bright bands slides brighter colors between dark ends (three times the box's width and height), 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
-
-Blurred blobs of color drift and melt together. Best for landing pages.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/mesh-gradient/
-- How it runs: moves by itself
-- Good for: Hero sections · Landing pages · App splash screens · Dark dashboards
-- Avoid on: Small elements · Long reading pages
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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. Screens up to 600px wide 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
-
-Blurred bands of light sway like the northern lights. Best for dark backgrounds.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/aurora/
-- How it runs: moves by itself
-- Good for: Hero sections · Night and space themes · Music and meditation apps · Travel sites
-- Avoid on: Light pages · Busy layouts
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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 the bands take to sway through their cycle: slow is 48s, normal 30s and fast 18s for the green band; blue takes 1.15 times as long, purple 0.85, pink 1.25 and red 1.1, so the bands drift in and out of step.
-- 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
-
-Fine grain flickers over the page, like old film. Best for editorial sites.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/grain-overlay/
-- How it runs: moves by itself
-- Good for: Editorial sites · Portfolios · Photo and film pages · Hero sections
-- Avoid on: Small text · Forms
-
-**Prompt**
-
-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 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. 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
-
-Dark lines and a sweeping beam imitate an old TV screen. Best for retro sites.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/scanline/
-- How it runs: moves by itself
-- Good for: Retro and gaming sites · Terminal screens · Music players · Sci-fi interfaces
-- Avoid on: Long reading · Forms
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Line spacing: Tight · **Medium** · Wide. The distance between lines: tight is 2px, medium 4px and wide 8px, each line 1px thick; 4px looks like a standard old screen.
-- Line darkness: Light · **Medium** · Dark. How dark the lines are: light is 8% black, 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% white, medium 12% and bright 24% along the middle of the 120px band, fading to nothing at its top and bottom; 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
-
-Warm light washes in from a corner at random times. Best for photo sites.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/light-leak/
-- How it runs: moves by itself
-- Good for: Photo and film sites · Portfolios · Music pages · Lifestyle brands
-- Avoid on: Dashboards · Long reading pages
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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 at a random 75% to 100% of this.
-- 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**. Three soft spots of light drift up from the bottom and fade with each leak.
-
-## Starfield / Space Particles
-
-Stars stream toward you out of the dark. Best for space themes.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/starfield/
-- How it runs: moves by itself
-- Good for: Space and science themes · Hero sections · Screensavers and kiosks · Launch pages
-- Avoid on: Light pages · Long reading pages
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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: outward, a star near the edge covers 16, 25 and 41 pixels a second at slow, normal and fast, and a little under a third of that near the center; sideways, the nearest stars cover 30, 48 and 78 pixels a second and the farthest a fifth of that; 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 tint for each star, from pink to yellow.
-- 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
-
-A soft glow slowly grows and shrinks, like calm breathing. Best for idle states.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/breathing-glow/
-- How it runs: moves by itself
-- Good for: Idle states · Voice assistants · Meditation apps · Media players
-- Avoid on: Alerts · Busy screens
-
-**Prompt**
-
-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 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 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, softer glow behind the first, 1.5 times its size and about as bright: it brightens and dims through the same range as the first, over a cycle 1.3 times as long, so the two drift in and out of step.
-- Icon and title breathe too: **on** · off. The icon and the title under it swell by 2% with each breath, too little to notice consciously.
-
-## Ambient Ripple Effect
-
-Rings spread from a few spots, like drops on a still pond. Best for hero areas.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/ambient-ripple/
-- How it runs: moves by itself
-- Good for: Hero sections · Live and connected states · Maps and places · Meditation apps
-- Avoid on: Buttons · Alerts
-
-**Prompt**
-
-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 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 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
-
-Small shapes drift slowly, each on its own path. Best for hero backgrounds.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/floating-elements/
-- How it runs: moves by itself
-- Good for: Hero backgrounds · Landing pages · Onboarding screens · Empty states
-- Avoid on: Busy layouts · Long reading pages
-
-**Prompt**
-
-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 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. 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: each one sways from side to side and back in 87 to 233 seconds at slow, 52 to 140 at normal and 33 to 87 at fast, and takes 1.4 times as long up and down.
-- 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
-
-A dot grid shifts gently against your pointer for depth. Best for tech sites.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/grid-dot-pattern-parallax/
-- How it runs: moves by itself
-- Good for: Tech and developer sites · Hero sections · Dashboards · Portfolios
-- Avoid on: Photo backgrounds · Long reading pages
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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%, and its drift with no pointer scales the same way (up to 2% of the stage's width and 1.5% of its height at medium); 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
-
-Shapes turn, spread and flow in a calm, endless pattern. Best for music players.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/abstract-geometric-motion/
-- How it runs: moves by itself
-- Good for: Music and media players · Screensavers and kiosks · Loading screens · Art pages
-- Avoid on: Forms · Long reading pages
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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: the innermost polygon turns once in about 150 seconds at slow, 87 at normal and 52 at fast (the outer ones faster), the rings spread 42, 72 or 120px a second and the bars slide 3, 9 or 24px a second; avoid fast 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
-
-Drifting dots link up with lines whenever they come close. Best for tech sites.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/particle-constellation/
-- How it runs: moves by itself
-- Good for: Tech and data sites · Hero sections · Network and security products · Loading screens
-- Avoid on: Busy layouts · Long reading pages
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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 about 8px a second, normal 14px and fast 23px on average, each dot at its own random speed and direction; 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
-
-Particles ride invisible currents, leaving fading trails. Best for art pages.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/flow-field/
-- How it runs: moves by itself
-- Good for: Art and creative sites · Hero sections · Loading screens · Data art
-- Avoid on: Busy layouts · Long reading pages
-
-**Prompt**
-
-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 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. 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
-
-A glowing grid rolls toward you under a striped sun. Best for music and games.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/synthwave-grid/
-- How it runs: moves by itself
-- Good for: Music and gaming sites · Retro themes · Event pages · Hero sections
-- Avoid on: Calm brands · Long reading pages
-
-**Prompt**
-
-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 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 fast the floor rolls toward the viewer: slow is 0.6 times normal and fast 1.6 times; at normal a new line leaves the horizon 1.2 times a second, and with medium lines each takes about 13 seconds to reach the bottom edge.
-- 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
-
-Columns of glowing characters rain down a dark screen. Best for tech themes.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/matrix-rain/
-- How it runs: moves by itself
-- Good for: Tech and hacker themes · Loading screens · Game and event pages · 404 pages
-- Avoid on: Calm brands · Long reading pages
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Speed: Slow · **Normal** · Fast. How often the rain moves down a row: slow is about 18 times a second, normal 28 and fast about 46.
-- Characters: **Japanese** · Binary · Hexadecimal. Japanese katakana with the digits 0 to 9 (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; the columns are spaced one character size apart, at least 14px on phones, so larger characters make fewer columns.
-- Glowing leaders: **on** · off. A soft glow around each column's leading character.
-
-## Plasma Field
-
-Smooth waves of color flow endlessly, made from math. Best for creative sites.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/plasma/
-- How it runs: moves by itself
-- Good for: Music and creative sites · Hero sections · Loading screens · Retro themes
-- Avoid on: Serious content · Long reading pages
-
-**Prompt**
-
-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 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 fast the field flows: slow is 0.6 times the base speed, normal 1 and fast 1.6; at normal each of the four waves rises and falls at any one spot every 5 to 9 seconds.
-- Pattern size: Small · **Medium** · Large. How big the color shapes are: small packs more waves into the field, large makes broad, soft blobs; at medium detail one full wave spans about 31% of the width at small, 50% at medium and 83% at large.
-- 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
-
-Layers of waves drift sideways, each at its own speed. Best for hero sections.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/wave-layers/
-- How it runs: moves by itself
-- Good for: Hero sections · Page footers · Section dividers · Travel and beach sites
-- Avoid on: Dense dashboards · Long reading pages
-
-**Prompt**
-
-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 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. 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
-
-Snow drifts down, or rain falls in streaks, over a dark town. Best for seasonal pages.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/snow-rain/
-- How it runs: moves by itself
-- Good for: Winter and holiday pages · Weather apps · Cozy hero sections · Story and game scenes
-- Avoid on: Light pages · Long reading pages
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Weather: **Snow** · Rain. Snow drifts down slowly, about 30 to 80px a second from far to near, and sways 4 to 13px to each side; rain falls more than ten times as fast, about 540 to 1,080px a second, drawn as streaks 11 to 22px long.
-- 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; gentle slants the snow's path about 30° from straight down and the rain about 8°, strong about 55° and 20°.
-- 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
-
-Rockets rise and burst into glowing sparks that fall and fade. Best for celebrations.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/fireworks/
-- How it runs: moves by itself
-- Good for: Launch and event pages · Holiday greetings · Success screens · Game wins
-- Avoid on: Calm brands · Long reading pages
-
-**Prompt**
-
-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 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. The time between launches, on average: rarely about 2.2 seconds, sometimes 1.2 and often half a second, each gap a random half to one and a half times that.
-- 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
-
-Lines like those on a hiking map slowly bend and drift. Best for outdoor brands.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/topographic-lines/
-- How it runs: moves by itself
-- Good for: Outdoor and travel brands · Hero sections · Maps and data products · Portfolio backgrounds
-- Avoid on: Busy layouts · Long reading pages
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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; with medium hills the lines are on average about 8px apart at tight, 14px at medium and 22px at wide.
-- 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 with medium hills, 4px with small and 12px with large.
-- 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
-
-Soft beams of light fall from above and slowly sweep across. Best for hero intros.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/light-rays/
-- How it runs: moves by itself
-- Good for: Hero sections · Page intros · Nature and wellness sites · Product launches
-- Avoid on: Light pages · Busy layouts
-
-**Prompt**
-
-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 choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- 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 and a speck of dust rises 2 to 7px a second.
-- 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
-
-Cells live and die by their neighbors, and patterns grow. Best for tech sites.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/game-of-life/
-- How it runs: moves by itself
-- Good for: Tech and science sites · Developer portfolios · Loading and idle screens · 404 pages
-- Avoid on: Calm brands · Long reading pages
-
-**Prompt**
-
-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 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 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.
-
-## Ken Burns Effect
-
-Photos slowly zoom and pan, then fade into the next. Best for hero slideshows.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/ken-burns/
-- How it runs: moves by itself
-- Good for: Hero photos · Slideshows · Travel and property sites · Story pages
-- Avoid on: Product photos people inspect · Pictures of text
-
-**Prompt**
-
-Add a Ken Burns effect to [your hero photo or slideshow]. Slowly zoom and pan each photo, the way a documentary camera moves over a still print, and crossfade to the next photo before its move ends, so the motion never stops. Give each photo its own start and end framing that drifts toward a point of interest, at an even, unhurried pace. Keep the photo larger than its frame at every moment so no edge ever shows, move it with transforms only, and keep any text on top still and readable. If the visitor has reduced motion turned on, show each photo still and change photos with a slow fade. Match the settings listed below.
-
-**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Which way it zooms: In · Out · **Both**. In zooms every photo in, toward its point of interest; out starts close and pulls back; both zooms the first and third photos in and the second out.
-- How much it moves: Subtle · **Medium** · Strong. Subtle zooms from 1.04 to 1.16 times and drifts less than half of the way toward the point of interest; medium zooms from 1.06 to 1.3 times and drifts three quarters of the way; strong zooms from 1.08 to 1.5 times and drifts all the way.
-- Time on each photo: Short · **Medium** · Long. Short is 5 seconds, medium 7 seconds and long 10 seconds; each fade takes a seventh of that, about a second at medium.
-- Shows a caption: on · **off**. On, each photo's name sits in the lower left corner and stays still while the photo moves.
-
-## Fire Effect
-
-Flames flicker and rise as heat climbs and cools. Best for game and event pages.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/fire-effect/
-- How it runs: moves by itself
-- Good for: Game sites · Sale and event banners · Night and festival themes
-- Avoid on: Reading pages · Light themes
-
-**Prompt**
-
-Add a fire effect to [the dark section or edge you want to set alight]. Keep a small grid of heat values whose bottom row always holds full heat. Many times a second, give each cell the heat of a cell just below it, nudged sideways and cooled a little at random, so heat rises, flickers and dies out. Color each cell by its heat with the palette the settings choose, dark when cool and brightest when hot, and draw the grid on a small canvas stretched over the area so the flames look soft. Step the grid at a fixed rate on every screen, coarser on phones. If the visitor has reduced motion turned on, show still flames. Match the settings listed below.
-
-**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
-
-- Flame height: Low · **Medium** · Tall. Where the heat runs out, as a share of the box's height: low is about a third, medium about half and tall about four fifths; taller flames lose less heat per row.
-- Fire shape: **Along the edge** · Campfire. Along the edge heats the whole bottom row, so flames burn across the box; campfire heats only its middle third, fading to the sides, so the flames lean in and meet in a point.
-- Colors: **Orange** · Blue · Green. The palette from cool to hot: orange runs from dark red to yellow and white, blue from deep navy to pale blue, green from dark green to pale yellow.
-- Wind: **None** · Left · Right. Left or right moves half of the heat one extra cell to that side each step, so the flames lean that way.
-- Sparks: **on** · off. About 24 sparks a second rise from the flames and fade within one to two and a half seconds (10 a second on phones).
-
-## Lightning
-
-Jagged bolts strike from the clouds and light up the sky. Best for dramatic intros.
-
-- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/lightning/
-- How it runs: moves by itself
-- Good for: Game sites · Storm and weather themes · Dramatic intros
-- Avoid on: Reading pages · Calm or health sites
-
-**Prompt**
-
-Add lightning to [the dark section or storm scene you want it in]. Every so often, draw a jagged bolt from the clouds to the ground on a canvas: start from a straight line, split it again and again, pushing each new midpoint sideways at random by less each time, and let thinner forks branch off. Draw a wide, faint stroke under a thin bright one for the glow; the bolt flickers once and fades within half a second. When the settings include it, light the sky softly, never more than twice a second. A click or tap strikes where the visitor points. If the visitor has reduced motion turned on, show a still bolt with no flash. Match the settings listed below.
-
-**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. The wait between strikes, picked at random: rarely is 5 to 8 seconds, sometimes 2.6 to 4.4 seconds and often 1.6 to 2.4 seconds; never less than 1.5 seconds.
-- Branches: Few · **Some** · Many. How many thinner forks split off the bolt: few is 2, some 4 and many 7.
-- Bolt color: **White** · Blue · Violet. The color of the glow and of the core, which is that color mixed halfway to white: white, blue or violet.
-- Lights up the sky: **on** · off. The sky turns at most 30% white with each strike and follows its flicker (in See inside one soft fall from 15% when the glow is drawn; a steady 10% glow behind a still bolt and under reduced motion); off, only the bolt flashes.
-- Rain: **on** · off. 160 thin raindrops fall at a slant (70 on phones); off, the sky is clear of rain.
diff --git a/skills/animation-handbook/references/catalog.md b/skills/animation-handbook/references/catalog.md
deleted file mode 100644
index be5cff36..00000000
--- a/skills/animation-handbook/references/catalog.md
+++ /dev/null
@@ -1,230 +0,0 @@
-# Catalog
-
-All 176 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)
-
-## 01 · Scroll-Based
-
-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.
-- [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. 15 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.
-- [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.
-- [Ink Spread Reveal](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/ink-spread-reveal/): Ink drops spread and merge until the picture shows. Best for art and intros. Places: Images & cards, Page intros.
-
-## 03 · Page Transitions
-
-Full-page transitions between routes or views — crossfades, slides, portals, morphs, and the View Transitions API. 17 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.
-- [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.
-- [Pixelate Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/pixelate-transition/): The page breaks into big pixels, then sharpens into the next. Best for galleries. Places: Page changes, Images & cards.
-
-## 04 · Micro-Interactions
-
-Short, user-triggered animations — hover, click, focus, loading states, and UI feedback patterns. 44 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.
-- [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.
-- [Before/After Slider](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/before-after-slider/): Drag a line across two pictures to compare them. Best for photo edits. Places: Images & cards.
-- [Magnifier Lens](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/magnifier-lens/): A lens follows your pointer and shows the picture up close. Best for product photos. Places: Images & cards.
-- [Card Deck Swipe](https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/card-deck-swipe/): Swipe the top card left or right; the next one rises. Best for quick choices. Places: Images & cards.
-
-## 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.
-- [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. 28 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.
-- [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.
-- [Water Ripple](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/water-ripple/): Ripples spread from your finger and bend the picture below. Best for hero images. Places: Backgrounds, Images & cards.
-- [Audio Visualizer](https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/audio-visualizer/): Bars dance to the music, from bass to treble. Best for music players. Places: Images & cards, Backgrounds.
-
-## 07 · Ambient & Background
-
-Passive, looping effects that hold visual interest without demanding attention — gradients, particles, grain, and glows. 26 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.
-- [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.
-- [Ken Burns Effect](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/ken-burns/): Photos slowly zoom and pan, then fade into the next. Best for hero slideshows. Places: Images & cards, Backgrounds, Page intros.
-- [Fire Effect](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/fire-effect/): Flames flicker and rise as heat climbs and cools. Best for game and event pages. Places: Backgrounds, Page intros.
-- [Lightning](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/lightning/): Jagged bolts strike from the clouds and light up the sky. Best for dramatic intros. Places: Backgrounds, Page intros.
-
-## By place
-
-The home page's places, each with the animations that suit it.
-
-- **Buttons** (22): Hover State Animation, Click / Tap Ripple, Button Press Scale, Magnetic Button, Toggle / Switch Slide, Heart / Like Burst, Success Confetti, Notification Badge Pulse, Tooltip Reveal, Modal Expand, Hamburger Menu Toggle, Theme Toggle Morph, Copy to Clipboard, Star Rating, Segmented Control, Animated Gradient Border, Spotlight Hover Glow, Add-to-Cart Fly, Hold to Confirm, Expanding Search, Button Loading States, Gooey Menu
-- **Text** (27): Counter Animation, Text Fill on Scroll, Slide Up Reveal, Split Text Reveal, Letter-by-Letter Stagger, Word-by-Word Reveal, Rolling Numbers, Kinetic Typography, Typewriter Effect, Scramble / Glitch Text, Variable Font Morph, Text Clip-Path Reveal, Marquee / Ticker, Text Morphing, Text Gradient Animation, Outline to Fill, Enter/Exit Typography, Rotate Word Carousel, Glitch Text, Text on a Path, Wavy Text, Highlighter Sweep, Split-Flap Board, Neon Flicker, Handwriting Draw, Text Particles, Chromatic Aberration
-- **Images & cards** (52): Parallax Depth-of-Field, Parallax Scrolling, Reverse-Scrolling Columns, Stacking Cards, Snap Scrolling, Reveal on Scroll, Stagger Reveal, Horizontal Scroll, Zoom Into Image, Scroll Image Sequence, Scroll Velocity Skew, Clip-Path Reveal, Blur In, Flip In, Shatter Effect, Ink Spread Reveal, Shared Element Transition, Blur Transition, Dissolve Transition, FLIP Technique, Page Curl, Cube Transition, Pixelate Transition, Hover State Animation, Skeleton Loader, Modal Expand, Swipe to Dismiss, Animated Gradient Border, Spotlight Hover Glow, Image Trail, Before/After Slider, Magnifier Lens, Card Deck Swipe, 3D Model Orbit, Scroll-Driven 3D Rotation, Parallax 3D Tilt, Glassmorphism Animated, SVG Path Animation, 2.5D / Pseudo-3D, Image Distortion on Hover, Cloth / Soft-Body Simulation, 3D Flip Card, 3D Carousel, Depth-Map Photo, ASCII / Halftone, Liquid Glass, Holographic Card, Water Ripple, Audio Visualizer, Grain / Film Noise Overlay, Light Leak, Ken Burns Effect
-- **Backgrounds** (44): Scroll-Driven Background Color, Cursor Follower, Neon Flicker, Canvas Particle Effect, Fluid / Liquid Simulation, Glassmorphism Animated, WebGL Shader Animation, Noise-Based Motion, Ray Marching / SDF Scene, GPGPU Particle System, Volumetric Smoke / 3D Noise, Morphing Blob, Flocking, ASCII / Halftone, 2D Physics, Infinite Zoom, Water Ripple, Audio Visualizer, Animated Gradient Background, Mesh Gradient Animation, Aurora / Northern Lights, Grain / Film Noise Overlay, Scanline Effect, Light Leak, Starfield / Space Particles, Breathing / Pulsing Glow, Ambient Ripple Effect, Floating Elements, Grid / Dot Pattern Parallax, Abstract Geometric Motion, Particle Constellation, Flow Field, Synthwave Grid, Matrix Rain, Plasma Field, Wave Layers, Snow / Rain, Fireworks, Topographic Lines, Light Rays, Game of Life, Ken Burns Effect, Fire Effect, Lightning
-- **Menus & forms** (20): Cover Card to Fixed Header, Scrollspy Navigation, Hide-on-Scroll Header, Slide In, Scale In / Zoom In, Focus Ring Animation, Toggle / Switch Slide, Checkmark Draw, Form Field Morph, Drawer / Panel Slide, Accordion Open/Close, Error Shake, Hamburger Menu Toggle, Star Rating, Segmented Control, Drag to Reorder, Expanding Search, Gooey Menu, Dynamic Island, Liquid Glass
-- **Loading & messages** (20): Progress Bar, Slide In, Bounce In, Heart / Like Burst, Success Confetti, Skeleton Loader, Shimmer Effect, Loading Spinner, Progress Animation, Checkmark Draw, Notification Badge Pulse, Error Shake, Copy to Clipboard, Toast Notification, Pull to Refresh, Rolling Numbers, Typing Indicator, Button Loading States, Dynamic Island, Breathing / Pulsing Glow
-- **Page intros** (32): Fade In / Fade Out, Slide In, Slide Up Reveal, Scale In / Zoom In, Clip-Path Reveal, Curtain Reveal, Split Text Reveal, Letter-by-Letter Stagger, Word-by-Word Reveal, Blur In, Flip In, Bounce In, Rotate In, Ink Spread Reveal, Image Trail, Kinetic Typography, Typewriter Effect, Text Clip-Path Reveal, Enter/Exit Typography, Split-Flap Board, Handwriting Draw, Text Particles, SVG Path Animation, Depth-Map Photo, 2D Physics, Infinite Zoom, Wave Layers, Fireworks, Light Rays, Ken Burns Effect, Fire Effect, Lightning
-- **Scrolling** (28): Parallax Depth-of-Field, Parallax Scrolling, Reverse-Scrolling Columns, Cover Card to Fixed Header, Fly-in Fly-out Contact List, Stacking Cards, Scroll-Triggered Animation, Scrub Animation, Pin Animation, Snap Scrolling, Scrollytelling, Reveal on Scroll, Stagger Reveal, Horizontal Scroll, Sticky Section, Counter Animation, Progress Bar, Section Wipe, Zoom Into Image, Scroll Image Sequence, Smooth (Inertia) Scroll, Text Fill on Scroll, Scroll Velocity Skew, SVG Line Draw on Scroll, Scrollspy Navigation, Scroll-Driven Background Color, Hide-on-Scroll Header, Scroll-Driven 3D Rotation
-- **Page changes** (18): Shatter Effect, View Transitions API, Shared Element Transition, Morph Transition, Crossfade Transition, Slide Transition, Zoom Transition, Flash / Light Leak Transition, Blur Transition, Elastic Transition, Portal / Tunnel Zoom, Dissolve Transition, FLIP Technique, Circle Reveal, Overlay Wipe, Page Curl, Cube Transition, Pixelate Transition
diff --git a/tests/pages.test.js b/tests/pages.test.js
index 41e124bd..6f34def4 100644
--- a/tests/pages.test.js
+++ b/tests/pages.test.js
@@ -902,6 +902,30 @@ test('the no-JavaScript list links every animation once, in home order, under it
assert.equal(between(HOME, START, END).slice(START.length).replace(/\r\n/g, '\n').trim(), expected);
});
+// llms.txt: the handbook as one plain list, for AI tools that read a site without running its scripts.
+// tools/update-sitemap.mjs writes it from the cards and the Famous effects page.
+test('llms.txt lists every card once, in the order of CATS under its group, with its live address and its line, then the Famous effects page', () => {
+ const LIVE = 'https://matinmonshizadeh.github.io/animation-handbook/';
+ const text = read(path.join(ROOT, 'llms.txt')).replace(/\r\n/g, '\n');
+ const cats = homeConst('CATS'), cards = cats.flatMap(cat => cat.entries.map(([slug, name, desc]) => ({ name, address: `${LIVE}${cat.folder}/${slug}/`, desc })));
+ assert.ok(text.startsWith('# Animation Handbook\n'), 'llms.txt starts with the title');
+ assert.match(text, new RegExp(`^> .*\\b${cards.length}\\b`, 'm'), 'the summary under the title gives the count');
+ const lines = text.split('\n').filter(line => line.startsWith('- [') && line.includes(`](${LIVE}animations/`));
+ assert.equal(lines.length, cards.length, 'one line per card');
+ cards.forEach((card, i) => assert.equal(lines[i], `- [${card.name}](${card.address}): ${card.desc}`, `line ${i + 1}`));
+ const headings = text.split('\n').filter(line => line.startsWith('## '));
+ assert.deepEqual(headings, [...cats.map(cat => `## ${cat.name}`), '## Famous effects', '## Optional'], 'the groups in home order, then Famous effects and Optional');
+ // The Famous effects page with its own description (white space squeezed), after the last card.
+ const lede = decode(read(path.join(ROOT, 'famous', 'index.html')).match(/<meta name="description" content="([^"]+)">/)[1]).replace(/\s+/g, ' ').trim();
+ assert.ok(text.includes(`## Famous effects\n\n- [Famous effects](${LIVE}famous/): ${lede}\n`), 'the Famous effects line under its own heading');
+ assert.doesNotMatch(text, /skill/i, 'llms.txt says nothing of the AI skill, which is gone');
+});
+
+test('the AI skill is gone: no skill folder, plugin file, tool or install line is left', () => {
+ for (const gone of ['skills', '.claude-plugin', 'tools/make-skill.mjs', 'tests/skill.test.js']) assert.ok(!fs.existsSync(path.join(ROOT, gone)), `${gone} is removed`);
+ for (const file of ['README.md', 'CONTRIBUTING.md', 'CLAUDE.md']) assert.doesNotMatch(read(path.join(ROOT, file)), /npx skills add|make-skill|Agent Skill|AI skill/i, `${file} does not mention the skill`);
+});
+
test('the counts written in the issue template, the 404 page and the sitemap match the cards', () => {
const cards = totalCards();
const template = read(path.join(ROOT, '.github/ISSUE_TEMPLATE/config.yml'));
diff --git a/tests/skill.test.js b/tests/skill.test.js
deleted file mode 100644
index 65b4db2d..00000000
--- a/tests/skill.test.js
+++ /dev/null
@@ -1,237 +0,0 @@
-// 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');
-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');
-const SKILL = path.join(ROOT, 'skills', 'animation-handbook');
-const REFS = path.join(SKILL, 'references');
-const LIVE = 'https://matinmonshizadeh.github.io/animation-handbook/';
-const TOOL = 'node tools/make-skill.mjs';
-// A file's text with Windows line endings read as plain ones: a checkout may hold either.
-const read = f => fs.readFileSync(f, 'utf8').replace(/\r\n/g, '\n');
-const decode = s => s.replace(/&quot;/g, '"').replace(/&#39;/g, "'").replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&amp;/g, '&');
-// The part of s from the first `from` up to the next `to` after it ('' when `from` is missing).
-const between = (s, from, to) => {
- const start = s.indexOf(from);
- if (start < 0) return '';
- const end = s.indexOf(to, start + from.length);
- return s.slice(start, end < 0 ? undefined : end);
-};
-// Every file under dir, as paths from the repo root written with "/".
-const filesUnder = dir => !fs.existsSync(dir) ? [] : fs.readdirSync(dir, { withFileTypes: true }).flatMap(e =>
- e.isDirectory() ? filesUnder(path.join(dir, e.name)) : [path.relative(ROOT, path.join(dir, e.name)).split(path.sep).join('/')]);
-
-const categories = fs.readdirSync(ANIM, { withFileTypes: true }).filter(c => c.isDirectory()).map(c => c.name);
-const pages = categories.flatMap(cat => fs.readdirSync(path.join(ANIM, cat), { withFileTypes: true }).filter(d => d.isDirectory())
- .map(d => ({ cat, slug: d.name, file: path.join(ANIM, cat, d.name, 'index.html') })))
- .filter(d => fs.existsSync(d.file) && read(d.file).includes('<main class="hb-page">'));
-const liveAddress = d => `${LIVE}animations/${d.cat}/${d.slug}/`;
-
-const HOME = read(path.join(ROOT, 'index.html'));
-// Where the bracket that opens at HOME[from] ('[' or '{') is closed, stepping over strings and // comments (as in pages.test.js).
-function blockEnd(from) {
- const open = HOME[from], close = open === '[' ? ']' : '}';
- let depth = 0, i = from, quote = null;
- for (; i < HOME.length; i++) {
- const ch = HOME[i];
- if (quote) { if (ch === '\\') i++; else if (ch === quote) quote = null; continue; }
- if (ch === '/' && HOME[i + 1] === '/') { while (i < HOME.length && HOME[i] !== '\n') i++; continue; }
- if (ch === "'" || ch === '"' || ch === '`') quote = ch;
- else if (ch === open) depth++;
- else if (ch === close && --depth === 0) break;
- }
- return i;
-}
-// The value of `const NAME=` in the home page's script: an array or object literal of plain data, read with vm.
-function homeConst(name) {
- const start = HOME.indexOf(`const ${name}=`);
- assert.ok(start >= 0, `const ${name} in index.html`);
- const from = start + `const ${name}=`.length;
- return vm.runInNewContext('(' + HOME.slice(from, blockEnd(from) + 1) + ')');
-}
-
-// 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 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 (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) {
- const seen = new Map();
- return headings.map(h => {
- const slug = h.toLowerCase().replace(/[^\p{L}\p{M}\p{N}_ -]/gu, '').replace(/ /g, '-');
- const n = seen.get(slug) || 0;
- seen.set(slug, n + 1);
- return n ? `${slug}-${n}` : slug;
- });
-}
-
-test('the skill and llms.txt are what tools/make-skill.mjs writes from the pages and the home page now', async () => {
- const { buildSkill } = await import(pathToFileURL(path.join(ROOT, 'tools', 'make-skill.mjs')).href);
- const built = buildSkill(ROOT);
- const want = ['skills/animation-handbook/SKILL.md', 'skills/animation-handbook/references/catalog.md',
- ...categories.map(cat => `skills/animation-handbook/references/${cat}.md`), 'llms.txt'];
- assert.deepEqual(Object.keys(built).sort(), want.sort(), 'the files the tool writes');
- const stale = want.filter(rel => !fs.existsSync(path.join(ROOT, rel)) || read(path.join(ROOT, rel)) !== built[rel]);
- assert.deepEqual(stale, [], `files missing or out of date: run ${TOOL}`);
- assert.deepEqual(filesUnder(SKILL).filter(rel => !want.includes(rel)), [], 'files in the skill folder that the tool does not write');
-});
-
-test('SKILL.md has only a name, a description and a license, and a short body that links every reference file', () => {
- const text = read(path.join(SKILL, 'SKILL.md'));
- const parts = text.match(/^---\n([\s\S]*?)\n---\n([\s\S]*)$/);
- assert.ok(parts, 'SKILL.md starts with its front matter between two --- lines');
- const fields = parts[1].split('\n').map(line => line.match(/^([a-z-]+): (.+)$/));
- assert.ok(fields.every(Boolean), 'every front matter line is "key: value"');
- const front = Object.fromEntries(fields.map(f => [f[1], f[2]]));
- assert.deepEqual(Object.keys(front), ['name', 'description', 'license']);
- assert.equal(front.name, 'animation-handbook');
- assert.equal(front.name, path.basename(SKILL), 'the name is the folder name');
- assert.match(front.name, /^[a-z0-9]+(?:-[a-z0-9]+)*$/, 'the name is lowercase letters, digits and single hyphens');
- assert.ok(front.name.length <= 64, 'the name has at most 64 characters');
- assert.ok(front.description.length <= 1024, `the description has ${front.description.length} characters, at most 1024`);
- // ": " would start a mapping in the YAML some installers read; < and > would read as XML tags, which some refuse.
- for (const bad of [': ', '<', '>']) assert.ok(!front.description.includes(bad), `the description has no "${bad}"`);
- assert.equal(front.license, 'MIT');
- const body = parts[2].split('\n');
- assert.ok(body.length < 200, `the body has ${body.length} lines, fewer than 200`);
- const files = fs.readdirSync(REFS);
- assert.ok(files.includes('catalog.md'), 'references/catalog.md is there');
- 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 and what it does', () => {
- assert.ok(pages.length > 0, 'there are guided-steps pages');
- const catalog = read(path.join(REFS, 'catalog.md'));
- const problems = [];
- for (const d of pages) {
- const where = `${d.cat}/${d.slug}`, address = liveAddress(d), file = path.join(REFS, `${d.cat}.md`);
- if (!fs.existsSync(file)) { problems.push(`${where}: there is no references/${d.cat}.md`); continue; }
- // The entries of a category file are its "## " sections; each names its page by the live address.
- const entries = read(file).split(/\n(?=## )/).filter(entry => entry.includes(address));
- const lines = catalog.split('\n').filter(line => line.includes(address));
- if (lines.length !== 1) problems.push(`${where}: ${lines.length} lines in catalog.md hold its live address`);
- if (entries.length !== 1) { problems.push(`${where}: ${entries.length} entries in ${d.cat}.md hold its live address`); continue; }
- 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`);
- 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.endsWith(`. ${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.includes(`- ${p.name}: ${clause(p.start)}. ${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 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', () => {
- const text = read(path.join(ROOT, 'llms.txt'));
- const cards = homeConst('CATS').flatMap(cat => cat.entries.map(([slug, , desc]) => ({ address: `${LIVE}${cat.folder}/${slug}/`, desc })));
- assert.ok(text.startsWith('# Animation Handbook\n'), 'llms.txt starts with the title');
- assert.match(text, new RegExp(`^> .*\\b${cards.length}\\b`, 'm'), 'the summary under the title gives the count');
- const lines = text.split('\n').filter(line => line.startsWith(`- [`) && line.includes(`](${LIVE}animations/`));
- assert.equal(lines.length, cards.length, 'one line per card');
- cards.forEach((card, i) => {
- assert.ok(lines[i].includes(`](${card.address}): `), `line ${i + 1} links ${card.address}: ${lines[i]}`);
- assert.ok(lines[i].endsWith(`: ${card.desc}`), `line ${i + 1} ends with the card's description: ${lines[i]}`);
- });
- // The skill's files too, at their addresses on the live site, each with a few words on what it holds.
- for (const file of ['SKILL.md', 'references/catalog.md', ...categories.map(cat => `references/${cat}.md`)]) {
- const address = `${LIVE}skills/animation-handbook/${file}`;
- assert.ok(text.split('\n').some(line => /^- \[[^\]]+\]\(/.test(line) && line.includes(`](${address}): `)), `llms.txt links ${address}`);
- }
-});
-
-test('llms.txt links the Famous effects page with the page\'s own description, after the categories and before the skill files', () => {
- const text = read(path.join(ROOT, 'llms.txt'));
- // White space squeezed, as the tool writes it: a description written over two lines is still one line of llms.txt.
- const lede = decode(read(path.join(ROOT, 'famous', 'index.html')).match(/<meta name="description" content="([^"]+)">/)[1]).replace(/\s+/g, ' ').trim();
- const line = `- [Famous effects](${LIVE}famous/): ${lede}`;
- assert.equal(text.split('\n').filter(l => l === line).length, 1, `llms.txt has the line ${line}`);
- assert.ok(text.includes(`## Famous effects\n\n${line}\n`), 'under its own heading');
- assert.ok(text.indexOf(line) > text.lastIndexOf(`](${LIVE}animations/`), 'after the last card');
- assert.ok(text.indexOf(line) < text.indexOf('## Skill files'), 'before the skill files');
-});
-
-test('the plugin marketplace parses and its one plugin installs the skill folder', () => {
- const market = JSON.parse(read(path.join(ROOT, '.claude-plugin', 'marketplace.json')));
- assert.equal(market.name, 'animation-handbook');
- assert.ok(market.owner && market.owner.name, 'the marketplace names its owner');
- assert.equal(market.plugins.length, 1, 'one plugin');
- const [plugin] = market.plugins;
- assert.equal(plugin.name, 'animation-handbook');
- // Without a version, an install follows the commits on main instead of staying on one version.
- assert.equal(plugin.version, undefined, 'the plugin has no version');
- assert.equal(market.version, undefined, 'the marketplace has no version');
- assert.ok(Array.isArray(plugin.skills) && plugin.skills.length === 1, 'the plugin lists one skill folder');
- for (const dir of plugin.skills) {
- assert.ok(fs.existsSync(path.join(ROOT, plugin.source, dir, 'SKILL.md')), `${plugin.source} + ${dir} holds SKILL.md`);
- }
-});
-
-test('every reference file over 100 lines starts with a contents list that links each of its sections', () => {
- for (const file of fs.readdirSync(REFS)) {
- const text = read(path.join(REFS, file));
- if (text.split('\n').length <= 100) continue;
- // Every heading takes an anchor, the title and Contents too; the sections are the "## " headings but Contents.
- const all = [...text.matchAll(/^(#+) (.+)$/gm)].map(m => ({ level: m[1].length, heading: m[2] }));
- const slugs = anchors(all.map(h => h.heading));
- const sections = all.map((h, i) => ({ ...h, anchor: slugs[i] })).filter(h => h.level === 2 && h.heading !== 'Contents');
- const top = text.slice(0, text.search(/^## (?!Contents$)/m));
- const links = [...top.matchAll(/\[([^\]]+)\]\(#([^)]+)\)/g)];
- assert.ok(sections.length > 0, `${file} has sections`);
- assert.deepEqual(links.map(m => m[1]), sections.map(s => s.heading), `${file}: the contents before its first section name every section, in order`);
- assert.deepEqual(links.map(m => m[2]), sections.map(s => s.anchor), `${file}: each contents link opens its section`);
- }
-});
diff --git a/tools/make-skill.mjs b/tools/make-skill.mjs
deleted file mode 100644
index a07b4ac1..00000000
--- a/tools/make-skill.mjs
+++ /dev/null
@@ -1,460 +0,0 @@
-#!/usr/bin/env node
-// 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, 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
-// (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 also reads the Famous effects page's description (the meta description of famous/index.html, entities decoded and
-// white space squeezed, so a description written over two lines stays one line): llms.txt lists that page after the
-// categories.
-// 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, a setting has no row in its README's Key
-// parameters, famous/index.html is missing or has no description, 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';
-import { fileURLToPath } from 'node:url';
-import vm from 'node:vm';
-
-const SKILL = 'skills/animation-handbook';
-const REPO = 'https://github.com/matinmonshizadeh/animation-handbook';
-// How each kind of page runs, in plain words.
-const KIND = { once: 'plays once', loop: 'moves by itself', do: 'reacts to the visitor', scroll: 'follows the scroll' };
-// What the home page passes as the window when it reads a page it has fetched: styles are not computed, and with no
-// matchMedia here the phone defaults do not count. PHONE answers the page script's phone question with yes.
-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;
-
-// Where the bracket that opens at text[from] ('[' or '{') is closed, stepping over strings and // comments (as the tests
-// read the home page).
-function blockEnd(text, from) {
- const open = text[from], close = open === '[' ? ']' : '}';
- let depth = 0, i = from, quote = null;
- for (; i < text.length; i++) {
- const ch = text[i];
- if (quote) { if (ch === '\\') i++; else if (ch === quote) quote = null; continue; }
- if (ch === '/' && text[i + 1] === '/') { while (i < text.length && text[i] !== '\n') i++; continue; }
- if (ch === "'" || ch === '"' || ch === '`') quote = ch;
- else if (ch === open) depth++;
- else if (ch === close && --depth === 0) break;
- }
- return i;
-}
-// The value of `const NAME=` in the home page's script: an array or object literal of plain data, read with vm.
-function homeConst(home, name) {
- const start = home.indexOf(`const ${name}=`);
- if (start < 0) throw new Error(`index.html has no const ${name}=`);
- const from = start + `const ${name}=`.length;
- return vm.runInNewContext('(' + home.slice(from, blockEnd(home, from) + 1) + ')');
-}
-
-// The entities the pages write; any other one stops the build, so a new one is added here rather than copied as it is.
-const ENTITIES = { amp: '&', lt: '<', gt: '>', quot: '"', apos: "'", nbsp: '\u00a0' };
-function decode(s, where) {
- return s.replace(/&(?:#(\d+)|#[xX]([0-9a-fA-F]+)|([A-Za-z][A-Za-z0-9]*));/g, (all, dec, hex, name) => {
- if (dec || hex) return String.fromCodePoint(parseInt(dec || hex, dec ? 10 : 16));
- if (Object.hasOwn(ENTITIES, name)) return ENTITIES[name];
- throw new Error(`${where}: the entity ${all} is not one this tool reads (add it to ENTITIES in tools/make-skill.mjs)`);
- });
-}
-
-// A stand-in for the browser's DOM: just enough of Element and Document for the page script's readSettings.
-// Selectors are lists of compound selectors (a tag, .class, [attr], [attr=value] or [attr="value"]), the only
-// kind that script uses.
-const SELECTORS = new Map();
-function compile(selector) {
- if (!SELECTORS.has(selector)) {
- SELECTORS.set(selector, selector.split(',').map(part => {
- const m = part.trim().match(/^([a-z][\w-]*)?((?:\.[\w-]+|\[[\w-]+(?:=(?:"[^"]*"|[^\]"]+))?\])*)$/i);
- if (!m || !part.trim()) throw new Error(`the stand-in DOM cannot read the selector "${selector}"`);
- const tests = m[1] ? [el => el.tagName === m[1].toLowerCase()] : [];
- for (const [, cls, attr, quoted, bare] of m[2].matchAll(/\.([\w-]+)|\[([\w-]+)(?:=(?:"([^"]*)"|([^\]"]+)))?\]/g)) {
- const value = quoted ?? bare;
- if (cls) tests.push(el => (el.attrs.class || '').split(/\s+/).includes(cls));
- else if (value === undefined) tests.push(el => Object.hasOwn(el.attrs, attr));
- else tests.push(el => el.attrs[attr] === value);
- }
- return el => tests.every(fn => fn(el));
- }));
- }
- return SELECTORS.get(selector);
-}
-class StandIn {
- constructor(tagName, attrs, parentElement) {
- Object.assign(this, { tagName, attrs, parentElement, childNodes: [], ownerDocument: parentElement ? parentElement.ownerDocument || parentElement : null });
- }
- getAttribute(name) { return Object.hasOwn(this.attrs, name) ? this.attrs[name] : null; }
- hasAttribute(name) { return Object.hasOwn(this.attrs, name); }
- get id() { return this.attrs.id || ''; }
- // With showHidden set on the document, an element marked hidden counts as shown (see readPage).
- get hidden() { return this.hasAttribute('hidden') && !(this.ownerDocument || this).showHidden; }
- get checked() { return this.hasAttribute('checked'); }
- get textContent() { return this.childNodes.map(n => (typeof n === 'string' ? n : n.textContent)).join(''); }
- // The value a field starts with: a text field's value attribute (without line breaks, as the browser keeps it), a
- // textarea's text, a menu's chosen option.
- get value() {
- if (this.tagName === 'textarea') return this.textContent;
- if (this.tagName === 'select') { const o = this.selectedOptions[0]; return o ? o.attrs.value ?? squeeze(o.textContent) : ''; }
- if (this.tagName !== 'input') return undefined;
- if (this.hasAttribute('value')) return this.attrs.value.replace(/[\r\n]/g, '');
- if ((this.attrs.type || '').toLowerCase() === 'range') throw new Error('a slider has no value attribute to start from');
- return '';
- }
- get selectedOptions() {
- const options = this.querySelectorAll('option'), chosen = options.filter(o => o.hasAttribute('selected'));
- if (this.hasAttribute('multiple')) return chosen;
- if (chosen.length) return [chosen[chosen.length - 1]];
- const first = options.find(o => !o.hasAttribute('disabled'));
- return first ? [first] : [];
- }
- *elements() { for (const n of this.childNodes) if (typeof n !== 'string') { yield n; yield* n.elements(); } }
- matches(selector) { return compile(selector).some(test => test(this)); }
- closest(selector) { for (let n = this; n; n = n.parentElement) if (n.matches(selector)) return n; return null; }
- querySelector(selector) { for (const el of this.elements()) if (el.matches(selector)) return el; return null; }
- querySelectorAll(selector) { return [...this.elements()].filter(el => el.matches(selector)); }
- getElementById(id) { for (const el of this.elements()) if (el.attrs.id === id) return el; return null; }
-}
-const VOID = new Set(['area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'link', 'meta', 'source', 'track', 'wbr']);
-// The markup as a stand-in document, read as the browser reads this markup: entities decoded, a void element (input,
-// br…) or one written <x/> without an end tag, a textarea's text taken as it is but for its first line break. Every
-// other element must be closed in order; anything else stops the build rather than reading the page wrongly.
-function standIn(html, where) {
- const doc = new StandIn('#document', {}, null);
- const TOKEN = /<!--[\s\S]*?-->|<\/([a-zA-Z][\w-]*)\s*>|<([a-zA-Z][\w-]*)((?:\s+[^\s"'>/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'=<>`]+))?)*)\s*(\/?)>|[^<]+|</g;
- let node = doc, m;
- while ((m = TOKEN.exec(html))) {
- if (m[1]) {
- if (node.tagName !== m[1].toLowerCase()) throw new Error(`${where}: </${m[1]}> where <${node.tagName}> is open`);
- node = node.parentElement;
- } else if (m[2]) {
- const attrs = {};
- for (const [, name, dq, sq, bare] of m[3].matchAll(/([^\s"'>/=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g)) {
- if (!Object.hasOwn(attrs, name.toLowerCase())) attrs[name.toLowerCase()] = decode(dq ?? sq ?? bare ?? '', where);
- }
- const el = new StandIn(m[2].toLowerCase(), attrs, node);
- node.childNodes.push(el);
- if (el.tagName === 'textarea') {
- const end = html.indexOf('</textarea>', TOKEN.lastIndex);
- if (end < 0) throw new Error(`${where}: a textarea is not closed`);
- el.childNodes.push(decode(html.slice(TOKEN.lastIndex, end), where).replace(/^\n/, ''));
- TOKEN.lastIndex = end + '</textarea>'.length;
- } else if (!VOID.has(el.tagName) && !m[4]) node = el;
- } else if (!m[0].startsWith('<!--')) node.childNodes.push(decode(m[0], where));
- }
- if (node !== doc) throw new Error(`${where}: <${node.tagName}> is not closed`);
- return doc;
-}
-
-// The anchor GitHub gives a heading: lowercased, every character but letters, digits, spaces, "-" and "_" dropped, each
-// space made a "-", and -1, -2… added to an anchor already used in the same file (`seen` holds those).
-function anchor(heading, seen) {
- const slug = heading.toLowerCase().replace(/[^\p{L}\p{M}\p{N}_ -]/gu, '').replace(/ /g, '-');
- const n = seen.get(slug) || 0;
- seen.set(slug, n + 1);
- return n ? `${slug}-${n}` : slug;
-}
-
-// 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`);
- // The header row goes, and a divider row (|---|---|---|) wherever it is, as tests/helpers/markdown.js reads a table.
- const rows = table.split('\n').filter(line => /^\s*\|/.test(line)).slice(1).filter(line => !/^[\s|:-]+$/.test(line)).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)`);
- const html = readFileSync(file, 'utf8').replace(/\r\n?/g, '\n'); // as the browser reads it
- const one = (pattern, what) => {
- const m = html.match(pattern);
- if (!m) throw new Error(`${where}: no ${what}`);
- return m;
- };
- const words = (pattern, what) => squeeze(decode(one(pattern, what)[1], where));
- const tags = cls => {
- const list = one(new RegExp(`<ul class="hb-tags ${cls}">([\\s\\S]*?)</ul>`), `<ul class="hb-tags ${cls}">`)[1];
- return [...list.matchAll(/<li>([^<]*)<\/li>/g)].map(m => squeeze(decode(m[1], where)));
- };
- const promptHtml = one(/<p class="hb-prompt">[^<]*<\/p>/, 'prompt (<p class="hb-prompt"> with words only)')[0];
- const tryAt = html.indexOf('<section class="hb-step hb-try"');
- const tryEnd = tryAt < 0 ? -1 : html.indexOf('</section>', tryAt);
- if (tryAt >= 0 && tryEnd < 0) throw new Error(`${where}: the Try it step is not closed`);
- 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);
- // 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);
- if (!text) throw new Error(`${where}: the setting "${label}" has no choices`);
- 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)'; break; }
- }
- 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, params
- };
-}
-
-// A setting's choices in plain words: the default in bold, the phone default named where a page starts lower there.
-function describe(control, value, phoneValue) {
- const phone = phoneValue !== value ? ` (phones start with ${phoneValue})` : '';
- // A name that holds the separator itself (the choice "Dot ·") is quoted, so the list stays readable.
- const named = name => (name.includes('·') ? `"${name}"` : name);
- const choice = el => named(el.getAttribute('aria-label') || squeeze(el.textContent)); // as the page script names a choice
- if (control.matches('.seg, .swatches')) {
- const pressed = control.querySelector('.on, [aria-pressed="true"]');
- return control.querySelectorAll('button').map(b => (b === pressed ? `**${choice(b)}**` : choice(b))).join(' · ') + phone;
- }
- if (control.matches('input[type=checkbox]')) return (value === 'on' ? '**on** · off' : 'on · **off**') + phone;
- if (control.matches('input[type=text]')) {
- const start = squeeze(control.value);
- return (start ? `text field, starts as "${start}"` : 'text field, starts empty') + phone;
- }
- if (control.matches('textarea')) { // its lines kept apart: the page copies them on one line, but they are lines
- const lines = control.value.split('\n').map(squeeze).filter(Boolean).map(line => `"${line}"`);
- if (lines.length < 2) return (lines.length ? `text box, starts as ${lines[0]}` : 'text box, starts empty') + phone;
- return `text box, starts with the lines ${lines.slice(0, -1).join(', ')} and ${lines[lines.length - 1]}` + phone;
- }
- if (control.matches('select')) {
- const chosen = control.selectedOptions[0];
- return control.querySelectorAll('option').map(o => (o === chosen ? `**${named(squeeze(o.textContent))}**` : named(squeeze(o.textContent)))).join(' · ') + phone;
- }
- return `slider, starts at ${value}` + phone;
-}
-
-function entry(page) {
- const lines = [`## ${page.title}`, '', page.lede, '',
- `- Live demo: ${page.address}`,
- `- How it runs: ${KIND[page.kind]}`,
- `- Good for: ${page.good.join(' · ')}`,
- `- Avoid on: ${page.avoid.join(' · ')}`,
- '', '**Prompt**', '', page.prompt, ''];
- // 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. Each has a live demo, a few plain settings for most (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.
-
-## How to use it
-
-1. **Find the technique.** Search [references/catalog.md](references/catalog.md) for the effect the user describes and a synonym or two; read the whole file only when you cannot search, the user wants ideas or nothing fits (its By place index is at the end). Each line ends with 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; 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. If the user's place is on its Avoid on list, prefer a better fit; if they asked for this one by name, build it and say what may suit better.
-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, a delay that reads well between many small tiles can vanish between a few large cards, and colors come from the page, not from the demo. Ask only when a choice changes the result a lot and nothing points either way.
-4. **Build what the user asked, no more and no less**, in their own stack, with their element in place of each [part in square brackets]. The prompt describes the whole technique as its demo shows it, with every option the demo offers. Take from it the look, the rules that make it look right and everything it says about accessibility, such as pausing a timer while someone reads or hovers it, and build only the parts the request needs, each with one plain way to use it from each kind of input, plus what people expect, such as Escape to close: a single confirmation needs one message with a close button, not a stack of messages that also close on a tap or a swipe. Every extra gesture and option is more code that can break. "Match the settings listed below" means your choices from step 3.
-5. **Check it** against the rules below. Then tell the user, in a few lines, which technique you built, with its live demo address; the settings you chose, and why where they differ from the demo's; and the parts of the prompt you left out, which they can ask for.
-
-When the user only asks which animation to use, answer for their page: suggest one or two for each place they ask about, and for each say in concrete terms what moves, for how long and after what delay, and what visitors who ask for reduced motion see, with its live demo address. Give real values, not the demo setting names, which mean nothing to someone who has not seen the demo, 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, adding no part they did not ask for.
-
-## The rules for the user's page
-
-Keep these even where a prompt does not say them, and follow them where a prompt differs: each prompt describes its technique as its demo shows it, in a box on a page about animation. A direct request from the user comes first: if it goes against a rule, build what they asked and say in one line what the rule protects.
-
-- **Keep the page whole without the animation.** Nothing in view waits for a scroll: whatever is on screen when the page loads, or after a jump to an anchor, plays its entrance right away, and anything the visitor can scroll to reaches its trigger, even at the very end of the page. A scroll trigger near the bottom of the screen does this on its own; one set higher, as in a demo box, leaves the bottom of a real screen empty. An effect that moves only as far as the visitor scrolls, such as a scrub, simply starts from its first frame. Hide content for an entrance only from a script, early enough that nothing flickers, and on a plain HTML page 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. Where the browser cannot run an effect, such as one that needs WebGL, show a still version in its place rather than an error.
-- **Give keyboard users what mouse users get on what they can reach.** On a link, button or form control, or a card that holds one, a hover state such as a color, a lift or a revealed label also shows on keyboard focus, and an effect that starts on a press also starts when the keyboard presses it, from the middle of the control. An effect that follows the pointer has nothing to follow from the keyboard: leave the element its normal focus style. 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, a carousel or a list you reorder: extra tab stops and captured keys cost keyboard users more than the effect gives them.
-- **Give touch what it needs.** When a hover reveals or does something people need, such as a menu, a tooltip, a hidden button or a pause to read moving text, a tap does it too, and a drag uses pointer events so that touch works. A purely decorative pointer effect, such as a tilt, a glow or a pull toward the pointer, stays still on touch screens, even where the prompt describes a touch version: a finger on a page is usually starting a scroll.
-- **Follow reduced motion.** When the device asks for it, decorative movement stops: show the end state or a short fade instead, start loops paused and keep pointer effects still. Where the movement itself tells the visitor something, such as a spinner, a progress bar or an effect tied to the scroll position, keep the calm version the prompt describes.
-- **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; only a box that pushes the content below as it opens or closes, such as an accordion's answer, may animate its height. 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. Where an entry gives a blur amount, use it as the width of the gradient's fade. Keep the blur where it is the effect, as in a blur-in, depth of field, frosted glass, a gooey merge or the glow of a moving border.
-- **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. A small CSS loop, such as a spinner, needs neither.
-- **Keep pointer effects light.** A pointer handler only stores the latest position; one frame callback measures the element by its resting box, not its tilted or moved one, and writes CSS custom properties, and CSS transitions do the easing, on the transform that uses them or on properties registered with @property. Measure again when the page scrolls under a resting pointer. Write a frame loop of your own only for what CSS cannot do: it moves by the time since the last frame, capped at about 50 ms, never by a fixed amount per frame, so it runs at the same speed on 30, 60 and 120 Hz screens, and it stops when nothing moves. Physics that needs equal steps takes them from that time, as its prompt says.
-- **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 meant to be read 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 or the user asks for it.
-
-## Where to look
-
-- [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 ${REPO}; read its README (the address followed by README.md) only when the user asks how a technique works.
-`;
-
-export function buildSkill(root) {
- const DemoPage = createRequire(import.meta.url)(join(root, 'assets/js/demo-page.js'));
- const home = readFileSync(join(root, 'index.html'), 'utf8');
- const base = (home.match(/<link rel="canonical" href="([^"]+\/)">/) || [])[1];
- if (!base) throw new Error('index.html has no canonical address ending in /');
- const CATS = homeConst(home, 'CATS'), PLACES = homeConst(home, 'PLACES');
- const placeName = Object.fromEntries(homeConst(home, 'PLACE_LIST').map(p => [p.key, p.name]));
- const total = CATS.reduce((n, cat) => n + cat.entries.length, 0);
- // The Famous effects page, which llms.txt lists after the categories with its own description.
- const famousFile = join(root, 'famous', 'index.html');
- if (!existsSync(famousFile)) throw new Error('famous/index.html is missing: llms.txt lists the Famous effects page');
- const famousLede = (readFileSync(famousFile, 'utf8').match(/<meta name="description" content="([^"]+)">/) || [])[1];
- if (!famousLede) throw new Error('famous/index.html has no description (<meta name="description" content="…">)');
-
- // Every category with its pages, each page with its address, places and anchor in its category file.
- const cats = CATS.map(cat => {
- const folder = cat.folder.replace(/\/$/, ''), file = `${folder.split('/').pop()}.md`;
- // The anchors of the file's title and its Contents heading come before the entries'.
- const seen = new Map();
- for (const heading of [`${cat.n} · ${cat.name}`, 'Contents']) anchor(heading, seen);
- const pages = cat.entries.map(([slug]) => {
- const page = readPage(root, folder, slug, DemoPage);
- const places = (PLACES[slug] || []).map(key => placeName[key]);
- if (!places.length || places.includes(undefined)) throw new Error(`${folder}/${slug}: no known place in PLACES`);
- return { ...page, slug, address: `${base}${folder}/${slug}/`, places, anchor: anchor(page.title, seen) };
- });
- return { ...cat, file, pages };
- });
-
- const files = {};
- files[`${SKILL}/SKILL.md`] = [
- '---',
- 'name: animation-handbook',
- `description: Builds web animations from Animation Handbook, a set of ${total} tested techniques with plain-words build prompts and settings (scroll effects, entrances and exits, page transitions, micro-interactions for buttons and forms, text effects, 3D and WebGL, ambient backgrounds). Use when the user asks to add, pick or improve an animation, transition, hover or click effect, loading state, scroll effect or background motion in a web page or web app, in any framework or plain HTML, CSS and JavaScript.`,
- 'license: MIT',
- '---',
- '',
- SKILL_BODY({ total, base, cats: {
- places: Object.values(placeName).join(', '),
- lines: cats.map(cat => `- [references/${cat.file}](references/${cat.file}): ${cat.name}, ${cat.pages.length} animations. ${cat.desc}`).join('\n')
- } })
- ].join('\n');
-
- const seen = new Map();
- anchor('Catalog', seen); // the file's title
- const sections = [...cats.map(cat => `${cat.n} · ${cat.name}`), 'By place'].map(h => ({ heading: h, anchor: anchor(h, seen) }));
- const byPlace = Object.entries(placeName).map(([key, name]) => {
- const names = cats.flatMap(cat => cat.pages.filter(p => (PLACES[p.slug] || []).includes(key)).map(p => p.title));
- return `- **${name}** (${names.length}): ${names.join(', ')}`;
- });
- 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, 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(', ')}.`), '']),
- '## 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 with what each does and the demo's values.`, '',
- '## Contents', '', ...cat.pages.map(p => `- [${p.title}](#${p.anchor})`), '',
- ...cat.pages.flatMap(entry)
- ].join('\n');
- }
-
- files['llms.txt'] = [
- '# Animation Handbook', '',
- `> A visual reference of ${total} web animation techniques, each with a live demo and a plain-words prompt for building it with an AI assistant.`, '',
- `Each page plays one technique live and gives a ready-made prompt that describes it in plain words, with no code. Most pages also have a few plain settings, such as speed or direction, and the prompt you copy lists your choices. Each technique's folder on GitHub has a README on how it works, the values that matter and production notes. To give an AI coding assistant all ${total} prompts and settings at once, install the Agent Skill: \`npx skills add matinmonshizadeh/animation-handbook\`.`, '',
- ...CATS.flatMap(cat => [`## ${cat.name}`, '',
- ...cat.entries.map(([slug, name, desc]) => `- [${name}](${base}${cat.folder.replace(/\/$/, '')}/${slug}/): ${desc}`), '']),
- // The Famous effects page: effects seen on well-known websites, each with the animations that make something similar.
- '## Famous effects', '',
- `- [Famous effects](${base}famous/): ${squeeze(decode(famousLede, 'famous/index.html'))}`, '',
- // 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 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 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');
- return files;
-}
-
-// Run as a command, not imported by the test: write the files that changed and print them all.
-// The command's path is compared with its real path, so a run through a junction or a link counts too.
-const self = (() => { try { return realpathSync(process.argv[1]); } catch { return ''; } })();
-if (self.toLowerCase() === fileURLToPath(import.meta.url).toLowerCase()) {
- const ROOT = fileURLToPath(new URL('..', import.meta.url));
- try {
- const files = buildSkill(ROOT);
- for (const [rel, text] of Object.entries(files)) {
- const file = join(ROOT, rel);
- const old = existsSync(file) ? readFileSync(file, 'utf8').replace(/\r\n/g, '\n') : null;
- if (old !== text) {
- mkdirSync(dirname(file), { recursive: true });
- writeFileSync(file, text);
- }
- console.log(`${rel}: ${lineCount(text)} lines, ${wordCount(text)} words${old === null ? ' (new)' : old === text ? '' : ' (written)'}`);
- }
- // The skill folder holds only what this tool writes: a stray file (a category that was renamed, say) is named here.
- const under = dir => readdirSync(dir, { withFileTypes: true }).flatMap(e =>
- e.isDirectory() ? under(join(dir, e.name)) : [relative(ROOT, join(dir, e.name)).split(sep).join('/')]);
- const stray = under(join(ROOT, SKILL)).filter(rel => !Object.hasOwn(files, rel));
- for (const rel of stray) console.error(`${rel}: not written by this tool; remove it`);
- if (stray.length) process.exitCode = 1;
- } catch (err) {
- console.error(err.message);
- process.exitCode = 1;
- }
-}
diff --git a/tools/update-sitemap.mjs b/tools/update-sitemap.mjs
index b5895a81..26f83e2e 100644
--- a/tools/update-sitemap.mjs
+++ b/tools/update-sitemap.mjs
@@ -1,6 +1,6 @@
#!/usr/bin/env node
-// Writes sitemap.xml, and the home page's plain list of links, from the home page's cards: a development tool, not part of
-// the site. Run it from a git checkout after adding or changing pages.
+// Writes sitemap.xml, the home page's plain list of links and llms.txt from the home page's cards: a development tool, not
+// part of the site. Run it from a git checkout after adding or changing pages.
// Usage: node tools/update-sitemap.mjs [--out <file>]
// The home page comes first, then the Famous effects page (famous/), then every page in the order of the CATS array in
// index.html (the home page's order), at the home page's canonical address. A page's lastmod is the date of the last
@@ -73,6 +73,34 @@ if (outAt < 0) {
console.log(`index.html: ${pages.length} plain links, ${withList === HOME ? 'as they were' : 'written again'}`);
}
+// llms.txt, at the root: the handbook as one plain list for AI tools that read a site without running its scripts. The title, a
+// summary with the count, every card under its group in home order with its live address and its line, then the Famous
+// effects page with its own description (white space squeezed). Written with the line endings it had. Not with --out.
+const REPO = 'https://github.com/matinmonshizadeh/animation-handbook';
+const ENTITIES = { amp: '&', lt: '<', gt: '>', quot: '"', apos: "'", nbsp: ' ' };
+const decode = s => s.replace(/&(?:#(\d+)|#[xX]([0-9a-fA-F]+)|([A-Za-z][A-Za-z0-9]*));/g, (all, dec, hex, name) => {
+ if (dec || hex) return String.fromCodePoint(parseInt(dec || hex, dec ? 10 : 16));
+ if (Object.hasOwn(ENTITIES, name)) return ENTITIES[name];
+ console.error(`famous/index.html: the entity ${all} is not one this tool reads (add it to ENTITIES in tools/update-sitemap.mjs)`);
+ process.exit(1);
+});
+const famousLede = (readFileSync(join(ROOT, FAMOUS, 'index.html'), 'utf8').match(/<meta name="description" content="([^"]+)">/) || [])[1];
+if (!famousLede) { console.error('famous/index.html has no description (<meta name="description" content="…">)'); process.exit(1); }
+const LLMS = join(ROOT, 'llms.txt');
+const llms = ['# Animation Handbook', '',
+ `> A visual reference of ${pages.length} web animation techniques, each with a live demo and a plain-words prompt for building it with an AI assistant.`, '',
+ "Each page plays one technique live and gives a ready-made prompt that describes it in plain words, with no code. Most pages also have a few plain settings, such as speed or direction, and the prompt you copy lists your choices. Each technique's folder on GitHub has a README on how it works, the values that matter and production notes.", '',
+ ...CATS.flatMap(cat => [`## ${cat.name}`, '',
+ ...cat.entries.map(([slug, name, desc]) => `- [${name}](${BASE}${cat.folder.replace(/\/$/, '')}/${slug}/): ${desc}`), '']),
+ '## Famous effects', '', `- [Famous effects](${BASE}${FAMOUS}): ${decode(famousLede).replace(/\s+/g, ' ').trim()}`, '',
+ '## Optional', '', `- [Source on GitHub](${REPO}): every demo's code and each technique's README`, ''].join('\n');
+if (outAt < 0) {
+ const oldLlms = existsSync(LLMS) ? readFileSync(LLMS, 'utf8') : '';
+ const text = oldLlms.includes('\r\n') ? llms.replace(/\n/g, '\r\n') : llms;
+ if (text !== oldLlms) writeFileSync(LLMS, text);
+ console.log(`llms.txt: ${pages.length} pages, ${text === oldLlms ? 'as it was' : 'written again'}`);
+}
+
const now = new Date();
const TODAY = [now.getFullYear(), now.getMonth() + 1, now.getDate()].map(n => String(n).padStart(2, '0')).join('-');
let changed;