Skip to content

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

docs: README review fixes: Run it locally after the catalog and bound to this computer, the disk paragraph and Browser support say exactly what happens, the font authors' name, and summaries that read Browse all N techniques in …

matin3557180674bc
diff --git a/README.md b/README.md
index c3f0b71c..ccab3c3d 100644
--- a/README.md
+++ b/README.md
@@ -30,20 +30,6 @@ Everything is plain HTML, CSS, and JavaScript: no build step, no frameworks, no
<a href="https://matinmonshizadeh.github.io/animation-handbook/"><img src="docs/demo.gif" alt="Screen recording: pressing Buttons on the home page brings up cards with live animations, Success Confetti opens and plays its demo, and Copy prompt shows Copied" width="820"></a>
</div>
-## Run it locally
-
-Clone the repository and serve its folder with any static file server, such as the one that comes with Python:
-
-```bash
-git clone https://github.com/matinmonshizadeh/animation-handbook.git
-cd animation-handbook
-python -m http.server 8000
-```
-
-Then open http://localhost:8000/ in your browser. If `python` is not found, as on many macOS and Linux systems, use `python3`.
-
-Without a server you can still open any page's `index.html` straight from the folder: every demo runs, and the links between pages work. Two parts need the server. Each page reads its *What it is* text and its *Similar animations* from its README, so opened from disk it shows a link to the README instead. And on the home page, pressing a card's Copy prompt button turns it into "Open to copy", which opens the animation's page so you can copy the prompt there.
-
## Categories
| # | Category | Count |
@@ -68,7 +54,7 @@ Each technique's code and README are in its folder under [animations/](animation
<sub>Animations driven by scroll position — parallax, sticky, scrub, snap, and storytelling.</sub>
-<details><summary>Browse the 27 Scroll-Based techniques</summary>
+<details><summary>Browse all 27 techniques in Scroll-Based</summary>
- **[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.
- **[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.
@@ -106,7 +92,7 @@ Each technique's code and README are in its folder under [animations/](animation
<sub>Element-level animations for arriving and departing — fades, slides, reveals, flips, and text staggers.</sub>
-<details><summary>Browse the 14 Entrance & Exit techniques</summary>
+<details><summary>Browse all 14 techniques in Entrance & Exit</summary>
- **[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.
- **[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.
@@ -131,7 +117,7 @@ Each technique's code and README are in its folder under [animations/](animation
<sub>Full-page transitions between routes or views — crossfades, slides, portals, morphs, and the View Transitions API.</sub>
-<details><summary>Browse the 16 Page Transitions techniques</summary>
+<details><summary>Browse all 16 techniques in Page Transitions</summary>
- **[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.
- **[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.
@@ -158,7 +144,7 @@ Each technique's code and README are in its folder under [animations/](animation
<sub>Short, user-triggered animations — hover, click, focus, loading states, and UI feedback patterns.</sub>
-<details><summary>Browse the 41 Micro-Interactions techniques</summary>
+<details><summary>Browse all 41 techniques in Micro-Interactions</summary>
- **[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.
- **[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.
@@ -210,7 +196,7 @@ Each technique's code and README are in its folder under [animations/](animation
<sub>Animations specifically for type — kinetic motion, character-level effects, gradient flows, and word transformations.</sub>
-<details><summary>Browse the 19 Text & Typography techniques</summary>
+<details><summary>Browse all 19 techniques in Text & Typography</summary>
- **[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.
- **[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.
@@ -240,7 +226,7 @@ Each technique's code and README are in its folder under [animations/](animation
<sub>WebGL, shaders, particles, 3D transforms, simulations, and other heavier effects.</sub>
-<details><summary>Browse the 26 3D & Advanced techniques</summary>
+<details><summary>Browse all 26 techniques in 3D & Advanced</summary>
- **[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.
- **[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.
@@ -277,7 +263,7 @@ Each technique's code and README are in its folder under [animations/](animation
<sub>Passive, looping effects that hold visual interest without demanding attention — gradients, particles, grain, and glows.</sub>
-<details><summary>Browse the 23 Ambient & Background techniques</summary>
+<details><summary>Browse all 23 techniques in Ambient & Background</summary>
- **[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.
- **[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.
@@ -317,14 +303,29 @@ Each technique's code and README are in its folder under [animations/](animation
**Works for everyone.** Every page works on phones, by touch, and with the keyboard (where an effect follows the pointer, the arrow keys move it too), and it respects the reduced-motion setting.
+## Run it locally
+
+Clone the repository and serve its folder with any static file server, such as the one that comes with Python:
+
+```bash
+git clone https://github.com/matinmonshizadeh/animation-handbook.git
+cd animation-handbook
+python -m http.server 8000 --bind 127.0.0.1
+```
+
+Then open http://127.0.0.1:8000/ in your browser. If `python` is not found, as on many macOS and Linux systems, use `python3`.
+
+Without a server you can still open any page's `index.html` straight from the folder: every demo runs, and the links between pages work. Two parts need the server. Each page reads its *What it is* text and its *Similar animations* from its README, so opened from disk it shows a link to the README in place of *What it is* and leaves *Similar animations* out. And on the home page, a card's Copy prompt button turns into "Open to copy" when pressed; pressing it again opens the animation's page at its prompt, where you can copy it.
+
## Browser support
-The handbook is made for current versions of Chrome, Edge, Firefox, and Safari. A few pages depend on a feature that an older browser or some devices lack, and do something simpler without it:
+The handbook is made for current versions of Chrome, Edge, Firefox, and Safari. A few pages depend on a feature that an older browser or some devices lack. This is what each one does without it:
- **WebGL.** Eight pages in 3D & Advanced draw with it: 3D Model Orbit, Depth-Map Photo, Fluid Simulation, GPGPU Particle System, Image Distortion on Hover, Ray Marching / SDF, Volumetric Smoke, and WebGL Shader Animation. Without it, Depth-Map Photo moves its layers on a plain 2D canvas instead, and the other seven show a short note in place of the animation. GPGPU Particle System needs WebGL 2 with floating-point color buffers, and shows its note without them.
- **View Transitions API.** Where a browser does not have it, the View Transitions API page switches between its pages with a simple fade, whatever transition style and speed you choose.
- **CSS scroll-driven animations.** Only Stacking Cards uses them, to shrink each card as the next one covers it. Where they are missing, a small script does the same as you scroll.
-- **Frosted glass (CSS `backdrop-filter`).** Glassmorphism Animated and Liquid Glass are built on it, and Scrollspy Navigation, seven Ambient & Background demos, and the top bar of every animation page use it for a light blur behind a menu, a text card, or the bar. Without it, each panel keeps its see-through tint but nothing behind it blurs; the Off choice of Glassmorphism Animated's Frost setting shows that look. Liquid Glass also bends the picture at its edges, but only in Chrome, Edge, and other Chromium browsers on a computer or Android; elsewhere it is frosted glass.
+- **Frosted glass (CSS `backdrop-filter`).** Glassmorphism Animated and Liquid Glass are built on it, and Scrollspy Navigation, seven Ambient & Background demos, and the top bar of every animation page use it for a light blur behind a menu, a text card, or the bar. Without it, each panel keeps its see-through tint but nothing behind it blurs; the Off choice of Glassmorphism Animated's Frost setting shows that look.
+- **Liquid Glass's bend.** Liquid Glass also bends the picture at its edges, but only in Chrome, Edge, and other Chromium browsers on a computer or Android; elsewhere it is frosted glass.
## Contributing
@@ -336,7 +337,7 @@ If this handbook helped you, a ⭐ makes it easier for others to find.
## Credits
-The site font is Schibsted Grotesk by The Schibsted Grotesk Project Authors, under the SIL Open Font License 1.1 — see [assets/fonts/OFL.txt](assets/fonts/OFL.txt).
+The site font is Schibsted Grotesk by The Schibsted-Grotesk Project Authors, under the SIL Open Font License 1.1 — see [assets/fonts/OFL.txt](assets/fonts/OFL.txt).
## License
diff --git a/tests/pages.test.js b/tests/pages.test.js
index aa09ce25..da878c0f 100644
--- a/tests/pages.test.js
+++ b/tests/pages.test.js
@@ -572,10 +572,10 @@ test('the counts written in the root README match the cards', () => {
// Each category's count, in the Categories table, in its heading in the Full catalog and in the summary that opens its list.
const rows = table(sections(readme)['Categories']);
const headings = [...readme.matchAll(/^### (\d{2}) · (.+?) · (\d+) techniques$/gm)];
- const summaries = [...readme.matchAll(/^<details><summary>Browse the (\d+) (.+?) techniques<\/summary>$/gm)];
+ const summaries = [...readme.matchAll(/^<details><summary>Browse all (\d+) techniques in (.+?)<\/summary>$/gm)];
assert.equal(rows.length, cats.length, 'README: one Categories row per category');
assert.equal(headings.length, cats.length, 'README: one Full catalog heading per category');
- assert.equal(summaries.length, cats.length, 'README: one "Browse the N … techniques" summary per category');
+ assert.equal(summaries.length, cats.length, 'README: one "Browse all N techniques in …" summary per category');
for (const cat of cats) {
const row = rows.find(r => r[0] === cat.n), heading = headings.find(h => h[1] === cat.n);
const summary = summaries.find(s => decode(s[2]) === cat.name);
@@ -583,8 +583,11 @@ test('the counts written in the root README match the cards', () => {
assert.equal(Number(row[2]), cat.entries.length, `README: the Categories count of ${cat.n} ${cat.name}`);
assert.ok(heading && heading[2] === cat.name, `README: a Full catalog heading for ${cat.n} ${cat.name}`);
assert.equal(Number(heading[3]), cat.entries.length, `README: the heading "${heading[0]}"`);
- assert.ok(summary, `README: a "Browse the N ${cat.name} techniques" summary`);
+ assert.ok(summary, `README: a "Browse all N techniques in ${cat.name}" summary`);
assert.equal(Number(summary[1]), cat.entries.length, `README: the summary "${summary[0]}"`);
+ // The line under each heading is the category's description on the home page.
+ const line = between(readme, heading[0], '<details>').match(/<sub>([^<]*)<\/sub>/);
+ assert.ok(line && decode(line[1]) === cat.desc, `README: the line under "${heading[0]}" is the home page's description of ${cat.name}`);
}
});