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.

feat: Ink Spread Reveal (02.15), a new Entrance & Exit page

matin9efa6d7e7517
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
index 15341020..24dac99f 100644
--- a/.github/ISSUE_TEMPLATE/config.yml
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -5,7 +5,7 @@ contact_links:
about: "Saw an animation on a website and don't know its name? Answer three short questions and see the ones that match."
- name: Browse the live handbook
url: https://matinmonshizadeh.github.io/animation-handbook/
- about: See all 166 techniques running before filing an issue.
+ about: See all 167 techniques running before filing an issue.
- name: Ask a question or share an idea
url: https://github.com/matinmonshizadeh/animation-handbook/discussions
about: Questions, ideas and things you made with the handbook go to Discussions.
diff --git a/404.html b/404.html
index 18198bd3..6e1c4c18 100644
--- a/404.html
+++ b/404.html
@@ -133,7 +133,7 @@ button,input{font:inherit;color:inherit}
</form>
<nav class="ways" aria-label="Ways back">
<a class="way" href="/animation-handbook/">Go to the home page</a>
- <a class="way" href="/animation-handbook/?view=all#results">Browse all 166 animations</a>
+ <a class="way" href="/animation-handbook/?view=all#results">Browse all 167 animations</a>
<a class="way" href="/animation-handbook/?view=find">Find an animation by what you saw</a>
</nav>
</main>
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e042f6ce..396b4fb6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,6 +15,8 @@ The main steps of Animation Handbook, newest first, with the number of animation
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
+ Compare from the start.
## 1.0.0 — 2026-10-10
diff --git a/README.md b/README.md
index 9652b8a8..6beff0f8 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,10 @@
<div align="center">
-<a href="https://matinmonshizadeh.github.io/animation-handbook/"><picture><source media="(prefers-reduced-motion: reduce) and (max-width: 600px)" srcset="docs/hero-phone-still.webp"><source media="(prefers-reduced-motion: reduce)" srcset="docs/hero-still.webp"><source media="(max-width: 600px)" srcset="docs/hero-phone.webp"><img src="docs/hero.webp" alt="Six animations from the handbook playing at once: Text Particles, Synthwave Grid, Liquid Glass, Shatter Effect, Holographic Card, and Dynamic Island, six of its 166 web animation techniques" width="820"></picture></a>
+<a href="https://matinmonshizadeh.github.io/animation-handbook/"><picture><source media="(prefers-reduced-motion: reduce) and (max-width: 600px)" srcset="docs/hero-phone-still.webp"><source media="(prefers-reduced-motion: reduce)" srcset="docs/hero-still.webp"><source media="(max-width: 600px)" srcset="docs/hero-phone.webp"><img src="docs/hero.webp" alt="Six animations from the handbook playing at once: Text Particles, Synthwave Grid, Liquid Glass, Shatter Effect, Holographic Card, and Dynamic Island, six of its 167 web animation techniques" width="820"></picture></a>
# Animation Handbook
-**A visual reference of 166 web animation techniques: watch each one play live, change most of them with plain settings, and copy a ready-made prompt for your AI assistant. Free to use, with no sign-up.**
+**A visual reference of 167 web animation techniques: watch each one play live, change most of them with plain settings, and copy a ready-made prompt for your AI assistant. Free to use, with no sign-up.**
[**Open the live handbook →**](https://matinmonshizadeh.github.io/animation-handbook/)
@@ -14,7 +14,7 @@ Add it to your AI coding assistant (run in your project folder; needs Node.js):
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-166-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)
+[![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-167-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>
@@ -22,7 +22,7 @@ npx skills add matinmonshizadeh/animation-handbook
## What this is
-Here are 166 web animation techniques in one place, each shown working. Every page plays its animation live and gives you a ready-made prompt to paste into your AI assistant, so you can add the animation to your own site without writing the code yourself. Most pages also let you change the animation with a few plain settings, and the prompt you copy lists your choices. Each folder's `README.md` explains how the technique works, the values that matter, and the production gotchas, for anyone who wants to build it by hand.
+Here are 167 web animation techniques in one place, each shown working. Every page plays its animation live and gives you a ready-made prompt to paste into your AI assistant, so you can add the animation to your own site without writing the code yourself. Most pages also let you change the animation with a few plain settings, and the prompt you copy lists your choices. Each folder's `README.md` explains how the technique works, the values that matter, and the production gotchas, for anyone who wants to build it by hand.
Everything is plain HTML, CSS, and JavaScript: no build step, no frameworks, no CDN. Open any page's `index.html` from a copy of this repository and its demo runs offline; [Run it locally](#run-it-locally) covers the parts that need a local server. Built to *inspire* and *teach*, not to sell a library.
@@ -60,7 +60,7 @@ Then ask for an animation in plain words, like "make the cards fade in as they s
| # | Category | Count |
|:--:|----------|:-----:|
| 01 | [Scroll-Based](#01) | 27 |
-| 02 | [Entrance & Exit](#02) | 14 |
+| 02 | [Entrance & Exit](#02) | 15 |
| 03 | [Page Transitions](#03) | 16 |
| 04 | [Micro-Interactions](#04) | 41 |
| 05 | [Text & Typography](#05) | 19 |
@@ -69,7 +69,7 @@ Then ask for an animation in plain words, like "make the cards fade in as they s
## Full catalog
-All 166 techniques, each linked to its live demo.
+All 167 techniques, each linked to its live demo.
Each technique's code and README are in its folder under [animations/](animations/).
@@ -113,11 +113,11 @@ Each technique's code and README are in its folder under [animations/](animation
<a id="02"></a>
-### 02 · Entrance & Exit · 14 techniques
+### 02 · Entrance & Exit · 15 techniques
<sub>Element-level animations for arriving and departing — fades, slides, reveals, flips, and text staggers.</sub>
-<details><summary>Browse all 14 techniques in Entrance & Exit</summary>
+<details><summary>Browse all 15 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.
@@ -133,6 +133,7 @@ Each technique's code and README are in its folder under [animations/](animation
- **[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.
- **[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.
- **[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.
+- **[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.
</details>
diff --git a/animations/02-entrance-and-exit/README.md b/animations/02-entrance-and-exit/README.md
index cc80e870..22c30776 100644
--- a/animations/02-entrance-and-exit/README.md
+++ b/animations/02-entrance-and-exit/README.md
@@ -18,3 +18,4 @@ Element-level entrance and exit animations — how individual pieces of UI arriv
- [Bounce In](bounce-in/) — Lands with a springy bounce. Best for badges and success messages.
- [Rotate In](rotate-in/) — Spins into place while it grows. Best for icons, stars and badges.
- [Shatter Effect](shatter-effect/) — Breaks into pieces that fly apart and fade. Best for galleries and bold exits.
+- [Ink Spread Reveal](ink-spread-reveal/) — Ink drops spread and merge until the picture shows. Best for art and intros.
diff --git a/animations/02-entrance-and-exit/clip-path-reveal/README.md b/animations/02-entrance-and-exit/clip-path-reveal/README.md
index 5385df7b..c21e4b92 100644
--- a/animations/02-entrance-and-exit/clip-path-reveal/README.md
+++ b/animations/02-entrance-and-exit/clip-path-reveal/README.md
@@ -59,3 +59,4 @@ const CLIPS = {
- [Slide Up Reveal](../slide-up-reveal/) — text rises from behind an invisible edge
- [Split Text Reveal](../split-text-reveal/) — text appears piece by piece
- [Fade In / Fade Out](../fade-in-out/) — a plain fade instead of a shape
+- [Ink Spread Reveal](../ink-spread-reveal/) — blots of ink spread and merge to uncover a picture
diff --git a/animations/02-entrance-and-exit/ink-spread-reveal/README.md b/animations/02-entrance-and-exit/ink-spread-reveal/README.md
new file mode 100644
index 00000000..47883c27
--- /dev/null
+++ b/animations/02-entrance-and-exit/ink-spread-reveal/README.md
@@ -0,0 +1,72 @@
+# Ink Spread Reveal
+
+[Live demo](https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/ink-spread-reveal/)
+
+## What it is
+An ink spread reveal uncovers a picture the way ink spreads on damp paper. The picture starts hidden under a plain paper-colored layer, drops land one after another, and each spreads into a blot with an uneven edge; the blots grow, merge and finally show the whole picture. Each blot races outward at first and slows as it soaks in, which is what makes it read as ink rather than as a shape growing.
+
+## When to use it
+- The opening picture of an art, illustration or portfolio site
+- A featured artwork or photo that deserves a slower entrance
+- Intros for stories, posters and event pages with a hand-made look
+- Section openers on pages about painting, calligraphy or print
+
+## How it works
+The picture sits under an SVG mask. The mask holds one white blot per drop: white shows the picture and everything else stays paper. Each blot is made once, from a circle whose radius wanders with a few slow waves and a few small fast ones, so its edge looks uneven and feathery; Splashy adds small drops thrown around it. A seeded random sequence makes the same blots on every redraw.
+
+```js
+// One blot of radius 1: a circle whose radius wanders with six waves, the slow ones larger. wob is how far it may wander.
+function unitBlot(rand, wob, dots) {
+ const waves = [2, 3, 5, 9, 14, 23].map((n, i) => [n, (rand() * 2 - 1) / (i < 3 ? 1 : 2.6), rand() * 6.283]);
+ const sum = waves.reduce((s, w) => s + Math.abs(w[1]), 0) || 1;
+ waves.forEach(w => { w[1] *= wob * 1.8 / sum; });
+ const pts = []; let min = 1;
+ for (let i = 0; i < 96; i++) {
+ const a = i / 96 * 6.283; let k = 1;
+ for (const [n, amp, ph] of waves) k += amp * Math.sin(n * a + ph);
+ min = Math.min(min, k); pts.push([Math.cos(a) * k, Math.sin(a) * k]);
+ }
+ const splash = [...Array(dots)].map(() => { const a = rand() * 6.283, d = 1.08 + rand() * .3; return [Math.cos(a) * d, Math.sin(a) * d, .022 + rand() * .04]; });
+ return { pts, splash, min };
+}
+```
+
+Each blot's full size is worked out so the blots cover the whole picture together: every spot of the picture belongs to its nearest drop, and that drop's blot is made large enough to reach the farthest of its spots, even where its outline dips in (the radius is divided by the outline's smallest reach). The blot then grows by scaling that same shape from where its drop lands, with an ease that starts fast and slows down, each drop a moment after the one before:
+
+```js
+grows.forEach(el => el.animate([{ transform: 'scale(0)' }, { transform: 'scale(1)' }],
+ { duration: 1800, delay: +el.dataset.i * 360, easing: 'cubic-bezier(.15,.7,.25,1)', fill: 'both' }));
+```
+
+```html
+<svg viewBox="0 0 900 440">
+ <defs><mask id="ink"><g transform="translate(216 185)"><g class="grow" data-i="0"><path fill="#fff" d="…"/></g></g></mask></defs>
+ <rect class="paper" width="900" height="440"/>
+ <g class="edge"><!-- the same blots a little larger, dark --></g>
+ <g mask="url(#ink)"><!-- the picture --></g>
+</svg>
+```
+
+A dark copy of each blot, 4% larger, sits under the picture and shows as a rim just ahead of it. When the last blot has grown, Loop holds the picture, fades it back to paper and plays again. Under reduced motion the whole picture fades in instead.
+
+## Key parameters
+| Parameter | Default | Effect |
+|-----------|---------|--------|
+| Where the ink lands | Several drops | 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 | Normal | 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 | Ragged | 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 | 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 |
+
+## Production notes
+- **A mask is repainted.** Animating the shapes inside an SVG mask repaints the masked picture on every frame. That is fine for one picture of this size; for a full-screen hero on slow phones, draw the blots on a canvas and use it as a `mask-image`, or reveal a canvas copy of the picture directly.
+- **Scale, never redraw.** Build each blot's outline once and grow it with `transform: scale()`. Rewriting the path every frame makes the browser parse and lay it out again.
+- **Cover the corners.** Blots that look big enough in the middle often leave the corners as paper. Size each blot from the spots it has to reach, or let the last drop be the largest.
+- **Reduced motion.** Fade the picture in instead of growing blots.
+- **GSAP** grows the blots with `gsap.fromTo(".grow", { scale: 0 }, { scale: 1, duration: 1.8, ease: "power3.out", stagger: 0.36, transformOrigin: "0 0" })`; set the origin so each grows from its drop. **Framer Motion** animates each blot `<motion.path>` inside a `<mask>` from `scale: 0` to `scale: 1` with `transition={{ delay: i * 0.36, ease: [0.15, 0.7, 0.25, 1] }}`.
+- **Real ink.** A scanned ink blot or a short ink video used as a luminance mask looks richest; keep it small and fall back to the drawn blots.
+
+## See also
+- [Clip-Path Reveal](../clip-path-reveal/) — a clean shape grows to uncover a picture
+- [Circle Reveal](../../03-page-transitions/circle-reveal/) — one circle grows from a click to show the next page
+- [Curtain Reveal](../curtain-reveal/) — a colored panel covers it, then slides away
+- [Fade In / Fade Out](../fade-in-out/) — the plain fade this becomes under reduced motion
diff --git a/animations/02-entrance-and-exit/ink-spread-reveal/index.html b/animations/02-entrance-and-exit/ink-spread-reveal/index.html
new file mode 100644
index 00000000..516f0679
--- /dev/null
+++ b/animations/02-entrance-and-exit/ink-spread-reveal/index.html
@@ -0,0 +1,360 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Ink Spread Reveal — Animation Handbook</title>
+ <meta name="description" content="Ink drops spread and merge until the picture shows. Best for art and intros.">
+ <link rel="canonical" href="https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/ink-spread-reveal/">
+ <link rel="icon" type="image/png" sizes="96x96" href="../../../favicon.png">
+ <link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
+ <link rel="apple-touch-icon" href="../../../apple-touch-icon.png">
+ <meta property="og:type" content="article">
+ <meta property="og:site_name" content="Animation Handbook">
+ <meta property="og:title" content="Ink Spread Reveal — Animation Handbook">
+ <meta property="og:description" content="Ink drops spread and merge until the picture shows. Best for art and intros.">
+ <meta property="og:url" content="https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/ink-spread-reveal/">
+ <meta property="og:image" content="https://matinmonshizadeh.github.io/animation-handbook/og-image.png">
+ <meta name="twitter:card" content="summary_large_image">
+ <meta name="twitter:title" content="Ink Spread Reveal — Animation Handbook">
+ <meta name="twitter:description" content="Ink drops spread and merge until the picture shows. Best for art and intros.">
+ <meta name="twitter:image" content="https://matinmonshizadeh.github.io/animation-handbook/og-image.png">
+ <script type="application/ld+json">{"@context": "https://schema.org", "@type": "TechArticle", "headline": "Ink Spread Reveal", "name": "Ink Spread Reveal", "description": "Ink drops spread and merge until the picture shows. Best for art and intros.", "url": "https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/ink-spread-reveal/", "inLanguage": "en", "articleSection": "Entrance & Exit", "isPartOf": {"@type": "WebSite", "name": "Animation Handbook", "url": "https://matinmonshizadeh.github.io/animation-handbook/"}, "author": {"@type": "Person", "name": "matinmonshizadeh"}, "keywords": "web animation, CSS animation, Entrance & Exit, Ink Spread Reveal"}</script>
+ <style>
+ :root{--ui-accent:#5fd88a;--paper:#efe6d2;--ink:#1c1a26}
+ *,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
+ .stage{position:relative;overflow:hidden;background:var(--paper)}
+ /* One scene, or two side by side in Compare; each draws its own picture, paper and blots at its own size */
+ .scenes{position:absolute;inset:0;display:grid;grid-template-columns:minmax(0,1fr)}
+ .scene{position:relative;min-width:0;overflow:hidden}
+ .scene>svg{position:absolute;inset:0;width:100%;height:100%;display:block}
+ .paper{fill:var(--paper)}
+ .edge path{fill:var(--ink)}
+ /* A blot grows by scaling its own shape, from where its drop lands; it starts at nothing, so the box starts as paper */
+ .grow{transform:scale(0)}
+ .twin,.faint,.see,.side,.cap{display:none}
+ /* See inside: the picture faint under the paper, each blot outlined and numbered, its final size dashed, the ink edge as a ring */
+ .stage[data-hb-mode="inside"] .faint{display:inline;opacity:.3}
+ .stage[data-hb-mode="inside"] .see{display:inline}
+ .stage[data-hb-mode="inside"] .edge path{fill:rgba(28,26,38,.78)}
+ .stage[data-hb-mode="inside"] .cap{display:block}
+ .see path{fill:none;vector-effect:non-scaling-stroke}
+ .see .line path{stroke:#fff;stroke-width:2.5}
+ .see .dash{stroke:var(--ink);stroke-width:2;stroke-dasharray:8 6}
+ .see .drop{fill:#fff;stroke:var(--ink);stroke-width:2}
+ .cap,.side{position:absolute;z-index:3;padding:3px 8px;border-radius:6px;background:rgba(20,18,28,.9);color:#f4f4f2;
+ font:600 13px/1.2 var(--hb-font);white-space:nowrap;pointer-events:none}
+ .cap.num{padding:3px 8px;border-radius:999px}
+ /* Compare: on the left a copy that grows clean circles, on the right the page as set; each half named at its top */
+ .stage[data-hb-mode="compare"] .scenes{grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;background:#2a2a30}
+ .stage[data-hb-mode="compare"] .twin,.stage[data-hb-mode="compare"] .side{display:block}
+ .side{top:10px;left:10px}
+ @media(max-width:600px){.cap.c-dash{display:none!important}}
+ </style>
+ <link rel="stylesheet" href="../../../assets/css/demo-page.css?v=10">
+ <script src="../../../assets/js/demo-page.js?v=10" defer></script>
+</head>
+<body class="hb" data-hb-kind="once" data-hb-autoplay>
+<nav class="hb-bar" aria-label="Animation Handbook">
+ <a class="hb-home" href="../../../"><svg class="hb-mark" viewBox="0 0 32 32" aria-hidden="true"><g class="g"><circle cx="11.16" cy="20.84" r="6.1"/><circle cx="15.12" cy="16.88" r="6.1"/><circle cx="18.51" cy="13.49" r="6.1"/></g><circle class="b" cx="21.2" cy="10.8" r="6.6"/></svg><span>Animation Handbook</span></a>
+ <span class="hb-pager"><a href="../shatter-effect/" rel="prev" aria-label="Previous: Shatter Effect"><svg class="hb-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="m15 18-6-6 6-6"/></svg><span><span class="hb-dir">Previous: </span>Shatter Effect</span></a></span>
+ <a class="hb-star" href="https://github.com/matinmonshizadeh/animation-handbook" target="_blank" rel="noopener" aria-label="Star on GitHub"><svg class="hb-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z"/></svg><span>Star on GitHub</span></a>
+</nav>
+<main class="hb-page">
+ <header class="hb-head">
+ <p class="hb-cat">02.15 · Entrance &amp; Exit</p>
+ <h1>Ink Spread Reveal</h1>
+ <p class="hb-lede">Ink drops spread and merge until the picture shows. Best for art and intros.</p>
+ </header>
+
+ <section class="hb-step hb-watch" aria-labelledby="hb-watch-title">
+ <div class="hb-step-head">
+ <span class="hb-num" aria-hidden="true">1</span>
+ <div><h2 id="hb-watch-title">Watch it</h2><p>It plays by itself. Turn on slow motion to watch each drop soak in.</p></div>
+ </div>
+ <div class="seg hb-modes" role="group" aria-label="What the box shows" data-hb-modes>
+ <button type="button" data-hb-mode="normal" class="on" aria-pressed="true">Normal</button>
+ <button type="button" data-hb-mode="inside" aria-pressed="false">See inside</button>
+ <button type="button" data-hb-mode="compare" aria-pressed="false">Compare</button>
+ </div>
+ <div class="stage" id="stage" role="img" aria-label="A drawing of a mountain by the sea, uncovered by drops of ink that spread and merge">
+ <div class="scenes" id="scenes"><div class="scene" id="scene"><p class="side" data-hb-caption>Ink blots</p></div></div>
+ <p class="cap num" id="cap-1" data-hb-caption>1 · lands first</p>
+ <p class="cap num" id="cap-2" data-hb-caption>2</p>
+ <p class="cap num" id="cap-3" data-hb-caption>3</p>
+ <p class="cap c-dash" id="cap-dash" data-hb-caption>Dashed: where it stops</p>
+ <p class="cap" id="cap-faint" data-hb-caption>Faint: still hidden</p>
+ </div>
+ <div class="hb-player">
+ <button class="hb-play" type="button" id="btn-play" data-hb-replay><svg class="hb-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/></svg>Replay</button>
+ <label class="hb-toggle"><input class="hb-switch" type="checkbox" role="switch" id="loop-tog" data-hb-loop autocomplete="off"><span>Loop</span></label>
+ <label class="hb-toggle"><input class="hb-switch" type="checkbox" role="switch" id="slow-tog" data-hb-slowmo="css" autocomplete="off"><span>Slow motion</span></label>
+ </div>
+ <div class="hb-mode-notes" aria-live="polite">
+ <p data-hb-for="inside" hidden>Inside, the picture waits faintly under the paper. Each numbered blot is a window in the paper that grows to its dashed outline, with the dark ink edge as a ring just ahead.</p>
+ <p data-hb-for="compare" hidden>On the left, Clean circles: the drops grow round and neat, which looks mechanical. On the right, Ink blots: ragged blots spread and merge, which looks like ink.</p>
+ </div>
+ </section>
+
+ <section class="hb-step hb-try" aria-labelledby="hb-try-title">
+ <div class="hb-step-head">
+ <span class="hb-num" aria-hidden="true">2</span>
+ <div><h2 id="hb-try-title">Try it</h2><p>Change a setting and the animation plays again.</p></div>
+ </div>
+ <div class="hb-settings">
+ <div class="hb-setting">
+ <p class="hb-setting-name" id="drops-lbl">Where the ink lands</p>
+ <div class="seg" id="drops-seg" role="group" aria-labelledby="drops-lbl">
+ <button type="button" data-drops="one" aria-pressed="false">One drop</button>
+ <button type="button" data-drops="several" class="on" aria-pressed="true">Several drops</button>
+ <button type="button" data-drops="corner" aria-pressed="false">From a corner</button>
+ </div>
+ <p class="hb-hint">Where the first drops fall.</p>
+ </div>
+ <div class="hb-setting">
+ <p class="hb-setting-name" id="speed-lbl">Speed</p>
+ <div class="seg" id="speed-seg" role="group" aria-labelledby="speed-lbl">
+ <button type="button" data-speed="slow" aria-pressed="false">Slow</button>
+ <button type="button" data-speed="normal" class="on" aria-pressed="true">Normal</button>
+ <button type="button" data-speed="fast" aria-pressed="false">Fast</button>
+ </div>
+ <p class="hb-hint">How long the ink takes to cover it.</p>
+ </div>
+ <div class="hb-setting">
+ <p class="hb-setting-name" id="edge-lbl">Edge</p>
+ <div class="seg" id="edge-seg" role="group" aria-labelledby="edge-lbl">
+ <button type="button" data-edge="smooth" aria-pressed="false">Smooth</button>
+ <button type="button" data-edge="ragged" class="on" aria-pressed="true">Ragged</button>
+ <button type="button" data-edge="splashy" aria-pressed="false">Splashy</button>
+ </div>
+ <p class="hb-hint">Splashy throws small drops around each blot.</p>
+ </div>
+ </div>
+ <details class="hb-options">
+ <summary><span class="hb-more-label">More options</span><span class="hb-less">Fewer options</span><svg class="hb-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg></summary>
+ <div class="hb-settings">
+ <div class="hb-setting">
+ <label class="hb-switch-row"><span>Dark ink edge</span><input class="hb-switch" type="checkbox" role="switch" id="rim-tog" checked autocomplete="off"></label>
+ <p class="hb-hint">A dark rim runs just ahead of the picture.</p>
+ </div>
+ </div>
+ </details>
+ </section>
+
+ <section class="hb-step hb-prompt-step" aria-labelledby="hb-prompt-title">
+ <div class="hb-step-head">
+ <span class="hb-num" aria-hidden="true">3</span>
+ <div><h2 id="hb-prompt-title">Copy the prompt</h2><p>Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.</p></div>
+ </div>
+ <div class="hb-card">
+ <p class="hb-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.</p>
+ <div class="hb-chips-box" hidden>
+ <p class="hb-chips-title">Your settings</p>
+ <ul class="hb-chips"></ul>
+ </div>
+ <div class="hb-copy-row">
+ <button class="hb-copy" type="button"><svg class="hb-ic hb-i-copy" viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg><svg class="hb-ic hb-i-done" viewBox="0 0 24 24" aria-hidden="true"><path d="M20 6 9 17l-5-5"/></svg><span class="hb-copy-label" aria-live="polite">Copy prompt</span></button>
+ <p class="hb-hint">Replace the words in brackets with your own element. Your settings are added at the end.</p>
+ </div>
+ </div>
+ <div class="hb-star-row"><p>Free and open source. If this helped, a star on GitHub helps other people find it.</p><a class="hb-star-btn" href="https://github.com/matinmonshizadeh/animation-handbook" target="_blank" rel="noopener"><svg class="hb-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z"/></svg>Star on GitHub</a></div>
+ </section>
+
+ <section class="hb-about" aria-labelledby="hb-what-title">
+ <div class="hb-what">
+ <h2 id="hb-what-title">What it is</h2>
+ <div class="hb-what-text"><p>The full explanation is in <a href="README.md">README.md</a>.</p></div>
+ </div>
+ <div class="hb-fit">
+ <h2>Good for</h2>
+ <ul class="hb-tags hb-good"><li>Art and portfolio sites</li><li>Page intros</li><li>Featured pictures</li></ul>
+ <h3>Avoid on</h3>
+ <ul class="hb-tags hb-avoid"><li>Forms</li><li>Rows of small pictures</li></ul>
+ </div>
+ </section>
+
+ <section class="hb-related" aria-labelledby="hb-related-title" hidden>
+ <h2 id="hb-related-title">Similar animations</h2>
+ <div class="hb-rel-list"></div>
+ </section>
+</main>
+<footer class="hb-foot"><span>Animation Handbook</span><a href="https://github.com/matinmonshizadeh/animation-handbook" target="_blank" rel="noopener">Source on GitHub</a><a href="#top">Back to top ↑</a></footer>
+<script>
+ const stage=document.getElementById('stage'),scenesEl=document.getElementById('scenes');
+ const loopTog=document.getElementById('loop-tog'),rimTog=document.getElementById('rim-tog');
+ const reduce=matchMedia('(prefers-reduced-motion: reduce)'),phone=matchMedia('(max-width:600px),(max-height:500px)');
+ // Where each drop lands, as shares of the scene's width and height, in the order they land
+ const DROPS={one:[[.5,.5]],several:[[.24,.42],[.77,.34],[.52,.7]],corner:[[.08,.12],[.34,.4],[.68,.72]]};
+ // How long one blot grows and the time between two drops (ms)
+ const SPEEDS={slow:[2600,520],normal:[1800,360],fast:[1100,220]};
+ // How far an outline wanders from a circle (a share of the radius) and how many splash drops each blot throws
+ const EDGES={smooth:[0,0],ragged:[.11,0],splashy:[.11,9]};
+ const EASE='cubic-bezier(.15,.7,.25,1)'; // fast at first, then slower and slower, like ink soaking in
+ // See inside and Compare rest on a posed moment, each blot grown this share of its full size (the first drop the most), so
+ // the parts show and paper is still left; reduced motion holds every view there too
+ const POSE=[.62,.44,.27];
+ const LABELS={normal:'A drawing of a mountain by the sea, uncovered by drops of ink that spread and merge',
+ inside:'The reveal taken apart: the picture faint under the paper, and each numbered blot growing to its dashed outline',
+ compare:'The reveal twice: clean circles on the left, ragged ink blots on the right'};
+ let drops='several',speed='normal',edge='ragged',mode='normal',view='paper',anims=[],timers=[];
+ const later=(fn,ms)=>timers.push(setTimeout(fn,ms));
+ const stopTimers=()=>{timers.forEach(clearTimeout);timers=[]};
+ // The same picture for every scene: a mountain by the sea at dawn, drawn in a 400 by 250 box that fills the scene (the edges
+ // that do not fit are cut off). id keeps each copy's gradients apart.
+ const art=(id,W,H)=>`<svg viewBox="0 0 400 250" preserveAspectRatio="xMidYMid slice" width="${W}" height="${H}">
+ <defs><linearGradient id="sky-${id}" x2="0" y2="1"><stop offset="0" stop-color="#2f5d9e"/><stop offset=".6" stop-color="#f0a77a"/><stop offset="1" stop-color="#ffd9a0"/></linearGradient>
+ <linearGradient id="sea-${id}" x2="0" y2="1"><stop offset="0" stop-color="#2b86c0"/><stop offset="1" stop-color="#123f66"/></linearGradient></defs>
+ <rect width="400" height="160" fill="url(#sky-${id})"/><circle cx="292" cy="122" r="40" fill="#fff3d2" opacity=".35"/><circle cx="292" cy="122" r="22" fill="#fff1c9"/>
+ <path fill="#6273a6" d="M0 152L58 96 104 122 168 50 232 120 272 98 334 142 400 108V160H0Z"/><path fill="#f4f1ea" d="M150 70L168 50 190 72 180 68 171 77 160 69Z"/>
+ <path fill="#2f4a3a" d="M0 160V118Q44 100 86 126T140 160Z"/><rect y="158" width="400" height="92" fill="url(#sea-${id})"/>
+ <g fill="#ffe3a6" opacity=".85"><rect x="268" y="166" width="48" height="3" rx="1.5"/><rect x="276" y="176" width="32" height="3" rx="1.5"/><rect x="284" y="186" width="18" height="2.5" rx="1.2"/></g>
+ <path fill="none" stroke="#9fd3f2" stroke-width="1.6" opacity=".7" d="M30 182q8-4 16 0t16 0M150 196q8-4 16 0t16 0M60 222q8-4 16 0t16 0M330 214q8-4 16 0t16 0"/>
+ <path fill="#f6f1e6" d="M118 186V158L138 186Z"/><path fill="#7a3b2a" d="M108 188H146L141 195H113Z"/>
+ <path fill="none" stroke="#3a3346" stroke-width="1.6" stroke-linecap="round" d="M206 70q5-4 9 0q4-4 9 0M228 86q4-3 7 0q3-3 7 0"/>
+ <path fill="#e8c88f" d="M0 250V216Q90 200 172 228T260 250Z"/></svg>`;
+ // A seeded random sequence, so both halves of Compare and every redraw get the same blots
+ function rng(s){return()=>{s=s+0x6D2B79F5|0;let t=Math.imul(s^s>>>15,1|s);t=t+Math.imul(t^t>>>7,61|t)^t;return((t^t>>>14)>>>0)/4294967296}}
+ // One blot of radius 1: a circle whose radius wanders with a few slow waves and a few small fast ones (the feathery edge), and
+ // for Splashy a few drops thrown around it. min is the smallest radius the outline reaches.
+ function unitBlot(rand,wob,dots){
+ const waves=[2,3,5,9,14,23].map((n,i)=>[n,(rand()*2-1)/(i<3?1:2.6),rand()*6.283]);
+ const sum=waves.reduce((s,w)=>s+Math.abs(w[1]),0)||1;
+ waves.forEach(w=>{w[1]*=wob*1.8/sum});
+ const pts=[];let min=1;
+ for(let i=0;i<96;i++){const a=i/96*6.283;let k=1;for(const [n,amp,ph] of waves)k+=amp*Math.sin(n*a+ph);min=Math.min(min,k);pts.push([Math.cos(a)*k,Math.sin(a)*k])}
+ const splash=[...Array(dots)].map(()=>{const a=rand()*6.283,d=1.08+rand()*.3;return [Math.cos(a)*d,Math.sin(a)*d,.022+rand()*.04]});
+ return {pts,splash,min};
+ }
+ // The blot's outline at radius R (and k times larger plus add pixels, for the ink edge), as one path
+ function pathOf(b,R,k=1,add=0){
+ const r=R*k+add,f=v=>(v*r).toFixed(1);
+ let d='M'+b.pts.map(p=>f(p[0])+' '+f(p[1])).join('L')+'Z';
+ for(const [x,y,s] of b.splash){const q=(s*r).toFixed(1);d+=`M${f(x)} ${f(y)}m-${q} 0a${q} ${q} 0 1 0 ${(2*s*r).toFixed(1)} 0a${q} ${q} 0 1 0 -${(2*s*r).toFixed(1)} 0Z`}
+ return d;
+ }
+ // Each scene: the page's own (main) and, for Compare, a copy (twin) that grows clean circles with no ink edge. The copy has no
+ // ids of its own outside its drawing, is out of the keyboard's way and hidden from screen readers.
+ const main={el:document.getElementById('scene'),twin:false};
+ const twinEl=main.el.cloneNode(true);twinEl.removeAttribute('id');twinEl.classList.add('twin');twinEl.inert=true;twinEl.setAttribute('aria-hidden','true');
+ twinEl.querySelector('.side').textContent='Clean circles';main.el.before(twinEl);
+ const twin={el:twinEl,twin:true};
+ const shown=()=>mode==='compare'?[twin,main]:[main];
+ // Draws a scene for its size: the paper, the ink edge, the picture seen through the blots, and See inside's outlines. Every blot
+ // gets the radius that, with the others, covers the whole scene at full size: each spot of the scene belongs to its nearest
+ // drop, and that drop's blot reaches the farthest of its spots even where its outline dips in.
+ function build(sc){
+ const W=sc.el.clientWidth||1,H=sc.el.clientHeight||1,id=sc.twin?'twin':'main',rand=rng(7);
+ const [wob,dots0]=sc.twin?[0,0]:EDGES[edge],dots=phone.matches?Math.ceil(dots0/2):dots0;
+ const c=DROPS[drops].map(([x,y])=>[x*W,y*H]),far=c.map(()=>1);
+ for(let i=0;i<=12;i++)for(let j=0;j<=8;j++){const x=i/12*W,y=j/8*H,d=c.map(p=>Math.hypot(p[0]-x,p[1]-y)),n=d.indexOf(Math.min(...d));far[n]=Math.max(far[n],d[n])}
+ sc.blots=c.map((p,i)=>{const b=unitBlot(rand,wob,dots);return {x:p[0],y:p[1],R:far[i]*1.06/b.min,b}});
+ sc.W=W;sc.H=H;
+ const g=(cls,i,d)=>`<g transform="translate(${sc.blots[i].x.toFixed(1)} ${sc.blots[i].y.toFixed(1)})"><g class="grow" data-i="${i}"><path class="${cls}" d="${d}"/></g></g>`;
+ const each=fn=>sc.blots.map(fn).join('');
+ const rim=!sc.twin&&rimTog.checked;
+ sc.el.querySelector('svg')?.remove();
+ sc.el.insertAdjacentHTML('afterbegin',`<svg viewBox="0 0 ${W} ${H}" aria-hidden="true"><defs><mask id="ink-${id}" maskUnits="userSpaceOnUse" x="0" y="0" width="${W}" height="${H}">
+ ${each((b,i)=>g('',i,pathOf(b.b,b.R)).replace('<path class=""','<path fill="#fff"'))}</mask></defs>
+ <rect class="paper" width="${W}" height="${H}"/><g class="faint">${art('f'+id,W,H)}</g>
+ <g class="edge"${rim?'':' display="none"'}>${each((b,i)=>g('',i,pathOf(b.b,b.R,1.04,3)))}</g>
+ <g class="reveal" mask="url(#ink-${id})">${art(id,W,H)}</g>
+ <g class="see">${each(b=>`<path class="dash" d="${pathOf(b.b,b.R)}" transform="translate(${b.x.toFixed(1)} ${b.y.toFixed(1)})"/>`)}
+ <g class="line">${each((b,i)=>g('',i,pathOf(b.b,b.R)))}</g>${each(b=>`<circle class="drop" cx="${b.x.toFixed(1)}" cy="${b.y.toFixed(1)}" r="4"/>`)}</g></svg>`);
+ sc.grows=[...sc.el.querySelectorAll('.grow')];
+ sc.fades=[...sc.el.querySelectorAll('.reveal,.edge')];
+ }
+ // See inside's labels, placed from the blots: a number beside each drop, the dashed line's label on a stretch of the first dashed
+ // outline that is inside the box, and Faint where the paper still hides the most at the resting moment. None goes outside the box.
+ function placeLabels(){
+ const sc=main,W=sc.W,H=sc.H,put=(el,x,y)=>{el.style.left=Math.max(6,Math.min(W-el.offsetWidth-6,x))+'px';el.style.top=Math.max(6,Math.min(H-el.offsetHeight-6,y))+'px'};
+ [1,2,3].forEach(n=>{const el=document.getElementById('cap-'+n),b=sc.blots[n-1];el.style.display=b?'':'none';if(b)put(el,b.x+10,b.y-34)});
+ // the dashed label sits on a stretch of a dashed outline inside the box; with one drop the outline lies outside it, and
+ // the label goes too
+ const dash=document.getElementById('cap-dash');dash.hidden=false;
+ const p=sc.blots.flatMap(b=>b.b.pts.map(([x,y])=>[b.x+x*b.R,b.y+y*b.R])).find(([x,y])=>x>12&&x<W-dash.offsetWidth-12&&y>40&&y<H-40);
+ dash.hidden=!p;if(p)put(dash,p[0]+8,p[1]+6);
+ const s=POSE,spots=[];
+ for(let i=1;i<10;i++)for(let j=1;j<7;j++)spots.push([i/10*W,j/7*H]);
+ const open=([x,y])=>Math.min(...sc.blots.map((b,i)=>Math.hypot(b.x-x,b.y-y)/Math.max(1,b.R*s[i])));
+ const best=spots.reduce((a,q)=>open(q)>open(a)?q:a);
+ const faint=document.getElementById('cap-faint');put(faint,best[0]-faint.offsetWidth/2,best[1]-12);
+ }
+ // The share of a blot's growing time at which it has reached size y (0 to 1), by the same ease as the animation: the ease's
+ // own t for that height found by halving, then its time there
+ const bez=(t,a,b)=>3*a*t*(1-t)*(1-t)+3*b*t*t*(1-t)+t*t*t;
+ function timeFor(y){let lo=0,hi=1;for(let k=0;k<24;k++){const m=(lo+hi)/2;bez(m,.7,1)<y?lo=m:hi=m}return bez((lo+hi)/2,.15,.25)}
+ const total=()=>{const [grow,gap]=SPEEDS[speed];return grow+gap*(DROPS[drops].length-1)};
+ // The blots of every scene on show, each starting when its drop lands. at: the time to start from, or 'pose' for each blot at
+ // its posed size; still: hold there
+ function blots(at,still){
+ anims.forEach(a=>a.cancel());anims=[];
+ const [grow,gap]=SPEEDS[speed];
+ for(const sc of shown())sc.grows.forEach(el=>{
+ const i=+el.dataset.i,a=el.animate([{transform:'scale(0)'},{transform:'scale(1)'}],{duration:grow,delay:i*gap,easing:EASE,fill:'both'});
+ a.currentTime=at==='pose'?i*gap+grow*timeFor(POSE[i]):Math.min(at,total());
+ if(still)a.pause();
+ anims.push(a);
+ });
+ }
+ function layout(){shown().forEach(build);if(mode==='inside')placeLabels()}
+ // One play from plain paper; under reduced motion the whole picture fades in instead. When it ends, Loop holds the picture,
+ // fades it back to paper and plays again; See inside and Compare go back to their resting moment.
+ function play(){
+ stopTimers();layout();view='play';
+ if(reduce.matches){blots(total(),true);fade(0,1,600,end);return}
+ blots(0,false);
+ Promise.all(anims.map(a=>a.finished)).then(end,()=>{});
+ }
+ function fade(from,to,ms,then){
+ const f=shown().flatMap(sc=>sc.fades.map(el=>el.animate([{opacity:from},{opacity:to}],{duration:ms,fill:'forwards'})));
+ anims.push(...f);
+ Promise.all(f.map(a=>a.finished)).then(then,()=>{});
+ }
+ function end(){
+ view='full';
+ if(loopTog.checked&&!reduce.matches)later(()=>{if(!loopTog.checked)return;view='fade';fade(1,0,600,play)},1200);
+ else if(mode!=='normal')later(rest,800);
+ }
+ // At rest: Normal shows the whole picture (or paper, before the first play), and with Loop on goes on looping from there;
+ // See inside and Compare their resting moment
+ function rest(){
+ stopTimers();layout();
+ if(mode==='normal'){blots(view==='paper'?0:total(),true);if(loopTog.checked&&!reduce.matches&&view!=='paper')end();return}
+ view='pose';blots('pose',true);
+ }
+ document.addEventListener('hb:mode',e=>{
+ mode=e.detail.mode;stage.setAttribute('aria-label',LABELS[mode]);notes();
+ // A play under way goes on from where it is, drawn for the new size of its scene
+ if(view==='play'&&anims[0]&&!reduce.matches){const t=anims[0].currentTime;layout();blots(t,false);Promise.all(anims.map(a=>a.finished)).then(end,()=>{})}
+ else rest();
+ });
+ // The notes follow the settings: with Smooth edges both halves of Compare grow round blots (the same ones with the ink edge
+ // off), and with the ink edge off See inside has no ring to name; the markup's words hold for the defaults
+ const said={inside:document.querySelector('[data-hb-for="inside"]').textContent,compare:document.querySelector('[data-hb-for="compare"]').textContent};
+ function notes(){
+ const rim=rimTog.checked,still=reduce.matches;
+ document.querySelector('[data-hb-for="compare"]').textContent=edge==='smooth'
+ ?(rim?'Edge is set to Smooth, so both halves grow round blots and only Ink blots has the dark ink edge. Pick Ragged or Splashy in Try it to see uneven edges.'
+ :'Edge is set to Smooth and the ink edge is off, so Clean circles and Ink blots match. Pick Ragged or Splashy in Try it to see the difference.')
+ :still?'Shown still, part of the way: on the left, Clean circles have grown round and neat; on the right, Ink blots have spread with ragged edges.'
+ :said.compare;
+ document.querySelector('[data-hb-for="inside"]').textContent=still?'Shown still, part of the way: the picture waits faintly under the paper, and each numbered blot will grow to its dashed outline.'
+ :rim?said.inside:'Inside, the picture waits faintly under the paper. Each numbered blot is a window in the paper that grows to its dashed outline.';
+ }
+ // Loop on plays at once; Loop off during the fade back to paper shows the whole picture again
+ loopTog.addEventListener('change',()=>{if(loopTog.checked)play();else if(view==='fade'){view='full';rest()}});
+ new ResizeObserver(()=>{if(view!=='play')rest()}).observe(stage);
+ document.getElementById('btn-play').addEventListener('click',play);
+ function choices(id,pick){
+ const buttons=document.querySelectorAll('#'+id+' button');
+ buttons.forEach(b=>b.addEventListener('click',()=>{
+ buttons.forEach(x=>{x.classList.toggle('on',x===b);x.setAttribute('aria-pressed',String(x===b))});
+ pick(b.dataset);notes();
+ }));
+ }
+ choices('drops-seg',d=>{drops=d.drops});choices('speed-seg',d=>{speed=d.speed});choices('edge-seg',d=>{edge=d.edge});
+ rimTog.addEventListener('change',notes);
+ notes();layout();
+</script>
+</body>
+</html>
diff --git a/animations/02-entrance-and-exit/shatter-effect/index.html b/animations/02-entrance-and-exit/shatter-effect/index.html
index c5c31c1c..a96ffcea 100644
--- a/animations/02-entrance-and-exit/shatter-effect/index.html
+++ b/animations/02-entrance-and-exit/shatter-effect/index.html
@@ -50,7 +50,7 @@
<body class="hb" data-hb-kind="once" data-hb-autoplay>
<nav class="hb-bar" aria-label="Animation Handbook">
<a class="hb-home" href="../../../"><svg class="hb-mark" viewBox="0 0 32 32" aria-hidden="true"><g class="g"><circle cx="11.16" cy="20.84" r="6.1"/><circle cx="15.12" cy="16.88" r="6.1"/><circle cx="18.51" cy="13.49" r="6.1"/></g><circle class="b" cx="21.2" cy="10.8" r="6.6"/></svg><span>Animation Handbook</span></a>
- <span class="hb-pager"><a href="../rotate-in/" rel="prev" aria-label="Previous: Rotate In"><svg class="hb-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="m15 18-6-6 6-6"/></svg><span><span class="hb-dir">Previous: </span>Rotate In</span></a></span>
+ <span class="hb-pager"><a href="../rotate-in/" rel="prev" aria-label="Previous: Rotate In"><svg class="hb-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="m15 18-6-6 6-6"/></svg><span><span class="hb-dir">Previous: </span>Rotate In</span></a><a href="../ink-spread-reveal/" rel="next" aria-label="Next: Ink Spread Reveal"><span><span class="hb-dir">Next: </span>Ink Spread Reveal</span><svg class="hb-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="m9 18 6-6-6-6"/></svg></a></span>
<a class="hb-star" href="https://github.com/matinmonshizadeh/animation-handbook" target="_blank" rel="noopener" aria-label="Star on GitHub"><svg class="hb-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z"/></svg><span>Star on GitHub</span></a>
</nav>
<main class="hb-page">
diff --git a/index.html b/index.html
index c91f00b5..f02d6524 100644
--- a/index.html
+++ b/index.html
@@ -4,8 +4,8 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="google-site-verification" content="2PnJemecfPix7j08I3cojuzPTfwKpwxxFMADFxv4wk8">
-<title>Animation Handbook — 166 Web Animation Techniques with Live Demos</title>
-<meta name="description" content="A free visual reference of 166 web animation techniques, from scroll effects to 3D: each plays live and comes with a ready-made prompt for your AI assistant.">
+<title>Animation Handbook — 167 Web Animation Techniques with Live Demos</title>
+<meta name="description" content="A free visual reference of 167 web animation techniques, from scroll effects to 3D: each plays live and comes with a ready-made prompt for your AI assistant.">
<meta name="keywords" content="web animation, CSS animation, animation examples, scroll animation, page transitions, micro-interactions, kinetic typography, WebGL, frontend animation reference, motion design, animation handbook">
<meta name="author" content="Matin Monshizadeh">
<meta name="robots" content="index, follow, max-image-preview:large">
@@ -19,8 +19,8 @@
<!-- Open Graph -->
<meta property="og:type" content="website">
<meta property="og:site_name" content="Animation Handbook">
-<meta property="og:title" content="Animation Handbook — 166 Web Animation Techniques with Live Demos">
-<meta property="og:description" content="A free visual reference of 166 web animation techniques, from scroll effects to 3D: each plays live and comes with a ready-made prompt for your AI assistant.">
+<meta property="og:title" content="Animation Handbook — 167 Web Animation Techniques with Live Demos">
+<meta property="og:description" content="A free visual reference of 167 web animation techniques, from scroll effects to 3D: each plays live and comes with a ready-made prompt for your AI assistant.">
<meta property="og:url" content="https://matinmonshizadeh.github.io/animation-handbook/">
<meta property="og:image" content="https://matinmonshizadeh.github.io/animation-handbook/og-image.png">
<meta property="og:image:width" content="1200">
@@ -28,8 +28,8 @@
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image">
-<meta name="twitter:title" content="Animation Handbook — 166 Web Animation Techniques with Live Demos">
-<meta name="twitter:description" content="A free visual reference of 166 web animation techniques, from scroll effects to 3D: each plays live and comes with a ready-made prompt for your AI assistant.">
+<meta name="twitter:title" content="Animation Handbook — 167 Web Animation Techniques with Live Demos">
+<meta name="twitter:description" content="A free visual reference of 167 web animation techniques, from scroll effects to 3D: each plays live and comes with a ready-made prompt for your AI assistant.">
<meta name="twitter:image" content="https://matinmonshizadeh.github.io/animation-handbook/og-image.png">
<!-- Structured data: parsed by search + AI answer engines -->
@@ -39,7 +39,7 @@
"@type": "WebSite",
"name": "Animation Handbook",
"url": "https://matinmonshizadeh.github.io/animation-handbook/",
- "description": "A free visual reference of 166 web animation techniques, from scroll effects to 3D: each plays live and comes with a ready-made prompt for your AI assistant.",
+ "description": "A free visual reference of 167 web animation techniques, from scroll effects to 3D: each plays live and comes with a ready-made prompt for your AI assistant.",
"inLanguage": "en",
"author": { "@type": "Person", "name": "Matin Monshizadeh" },
"about": ["web animation", "CSS animation", "motion design", "frontend development"],
@@ -669,6 +669,13 @@ button,input{font:inherit;color:inherit}
30%{transform:translate(calc(var(--x)*59%),calc(var(--y)*39% + 57.6%)) rotate(calc(var(--r)*.8));opacity:.4}
36%{transform:translate(calc(var(--x)*73%),calc(var(--y)*48% + 100%)) rotate(var(--r));opacity:0}37%,100%{transform:none;opacity:1}}
+.pv-inkspread{background:#efe6d2;overflow:hidden}
+.pv-inkspread i{position:absolute;width:58%;aspect-ratio:1;border-radius:47% 53% 41% 59%/55% 44% 56% 45%;background:#1c1a26;transform:scale(0);animation:inkspread-blot 5s cubic-bezier(.15,.7,.25,1) infinite}
+.pv-inkspread .b1{left:-4%;top:6%}.pv-inkspread .b2{left:46%;top:-14%;border-radius:58% 42% 52% 48%/46% 58% 42% 54%;animation-delay:.35s}.pv-inkspread .b3{left:22%;top:38%;border-radius:44% 56% 60% 40%/50% 46% 54% 50%;animation-delay:.7s}
+.pv-inkspread .pic{position:absolute;inset:0;opacity:0;background:radial-gradient(circle at 72% 40%,#fff1c9 0 6%,#0000 6.5%),linear-gradient(160deg,#0000 52%,#6273a6 52.5% 63%,#0000 63.5%),linear-gradient(#2f5d9e,#f0a77a 55%,#2b86c0 56%,#123f66);animation:inkspread-pic 5s ease-out infinite}
+@keyframes inkspread-blot{0%{transform:scale(0);opacity:1}45%,80%{transform:scale(1);opacity:1}92%,100%{transform:scale(1);opacity:0}}
+@keyframes inkspread-pic{0%,28%{opacity:0}62%,84%{opacity:1}96%,100%{opacity:0}}
+
/* ── bespoke: 03 Page Transitions ── */
.pv-vt,.pv-xfade,.pv-slidepage,.pv-zoompage{background:#08090c;position:relative;overflow:hidden}
.pv-vt .pg,.pv-xfade .pg,.pv-slidepage .pg,.pv-zoompage .pg{position:absolute;inset:0;display:grid;place-items:center}
@@ -1646,7 +1653,7 @@ button,input{font:inherit;color:inherit}
<section class="wrap home-hero" aria-labelledby="hero-title">
<span class="float fl1" aria-hidden="true"></span><span class="float fl2" aria-hidden="true"></span><span class="float fl3" aria-hidden="true"></span>
<span class="float fl4" aria-hidden="true"></span><span class="float fl5" aria-hidden="true"></span><span class="float fl6" aria-hidden="true"></span>
- <p class="pill"><span class="pill-dot" aria-hidden="true"></span>166 free animations · no coding needed</p>
+ <p class="pill"><span class="pill-dot" aria-hidden="true"></span>167 free animations · no coding needed</p>
<h1 class="h1" id="hero-title">What do you want to animate?</h1>
<p class="sub">Pick a place, or describe it in your own words. Every animation plays live, and each one comes with a ready-made prompt for your AI assistant.</p>
<form class="search" id="search-form" role="search" action="./" method="get">
@@ -1711,14 +1718,14 @@ button,input{font:inherit;color:inherit}
<p class="empty-s">Try a simpler word, or pick one of these:</p>
<p class="pop"><button type="button" data-q="fade in">fade in</button><button type="button" data-q="typing text">typing text</button><button type="button" data-q="loading spinner">loading spinner</button><button type="button" data-q="parallax">parallax</button><button type="button" data-q="confetti">confetti</button></p>
</div>
- <div class="more" id="more"><button type="button" class="bigbtn" id="more-btn"><span id="more-label">Browse all 166 animations</span><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M6 13l6 6 6-6"/></svg></button></div>
+ <div class="more" id="more"><button type="button" class="bigbtn" id="more-btn"><span id="more-label">Browse all 167 animations</span><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M6 13l6 6 6-6"/></svg></button></div>
<div class="fd-not" id="find-not" hidden>
<h3 class="fd-not-t">Not here?</h3>
<p class="fd-not-s" id="find-not-s">Tell us what you saw. We use it to add the animation or to fix the finder.</p>
<p class="fd-not-acts"><a class="fd-btn" id="find-gh" href="https://github.com/matinmonshizadeh/animation-handbook/issues/new?template=animation_not_here.yml" target="_blank" rel="noopener">Tell us on GitHub</a><button type="button" class="pillbtn" id="find-words">Describe it in words</button></p>
<p class="fd-fine">The form is on GitHub and needs a free account.</p>
</div>
- <noscript><p class="noscript">This page shows its animations with JavaScript. All 166 are still easy to reach: see the <a href="https://github.com/matinmonshizadeh/animation-handbook#categories">category list on GitHub</a> or the <a href="sitemap.xml">full sitemap</a>. Each demo is a page of its own under <code>/animations/&lt;category&gt;/&lt;name&gt;/</code>.</p></noscript>
+ <noscript><p class="noscript">This page shows its animations with JavaScript. All 167 are still easy to reach: see the <a href="https://github.com/matinmonshizadeh/animation-handbook#categories">category list on GitHub</a> or the <a href="sitemap.xml">full sitemap</a>. Each demo is a page of its own under <code>/animations/&lt;category&gt;/&lt;name&gt;/</code>.</p></noscript>
</section>
<section class="how" id="how" aria-labelledby="how-title">
@@ -1736,7 +1743,7 @@ button,input{font:inherit;color:inherit}
<footer class="wrap foot">
<a class="brand" href="./"><svg class="mark" viewBox="0 0 32 32" aria-hidden="true"><circle class="ring" cx="11.16" cy="20.84" r="6.1"/><circle class="ring" cx="15.12" cy="16.88" r="6.1"/><circle class="ring" cx="18.51" cy="13.49" r="6.1"/><circle class="ball" cx="21.2" cy="10.8" r="6.6"/></svg><span>Animation Handbook</span></a>
- <p class="foot-t">166 web animations with live demos and copyable prompts.</p>
+ <p class="foot-t">167 web animations with live demos and copyable prompts.</p>
<nav class="nav" aria-label="Footer"><a class="lnk" href="famous/">Famous effects</a><a class="lnk" href="https://github.com/matinmonshizadeh/animation-handbook" target="_blank" rel="noopener">GitHub</a><a class="lnk" href="#top">Back to top</a></nav>
</footer>
<div class="toast" id="toast" role="status" aria-live="polite"><span class="ok" aria-hidden="true"><svg class="i" viewBox="0 0 24 24"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span><span class="toast-t"></span></div>
@@ -1805,6 +1812,7 @@ const CATS=[
['bounce-in','Bounce In','Lands with a springy bounce. Best for badges and success messages.'],
['rotate-in','Rotate In','Spins into place while it grows. Best for icons, stars and badges.'],
['shatter-effect','Shatter Effect','Breaks into pieces that fly apart and fade. Best for galleries and bold exits.'],
+ ['ink-spread-reveal','Ink Spread Reveal','Ink drops spread and merge until the picture shows. Best for art and intros.'],
]
},
{
@@ -1991,7 +1999,7 @@ const PV={
'fade-in-out':'fade','slide-in':'slidein','slide-up-reveal':'slideup','scale-in':'scalein',
'clip-path-reveal':'clipreveal','curtain-reveal':'curtain','split-text-reveal':'split',
'letter-by-letter-stagger':'letters','word-by-word-reveal':'words','blur-in':'blurin',
- 'flip-in':'flipin','bounce-in':'bouncein','rotate-in':'rotatein','shatter-effect':'shatter',
+ 'flip-in':'flipin','bounce-in':'bouncein','rotate-in':'rotatein','shatter-effect':'shatter','ink-spread-reveal':'inkspread',
'view-transitions-api':'vt','shared-element-transition':'shared','morph-transition':'morph','crossfade':'xfade',
'slide-transition':'slidepage','zoom-transition':'zoompage','flash-transition':'flash','blur-transition':'blurpage',
'elastic-transition':'elastic','portal-zoom':'portal','dissolve':'dissolve','flip-technique':'flip',
@@ -2064,6 +2072,7 @@ const PLACES={
'bounce-in':['intro','load'],
'rotate-in':['intro'],
'shatter-effect':['imgcard','page'],
+ 'ink-spread-reveal':['imgcard','intro'],
// 03
'view-transitions-api':['page'],
'shared-element-transition':['page','imgcard'],
@@ -2240,6 +2249,7 @@ const FIND={
'bounce-in':['card loader button','click load scroll','bounce grow'],
'rotate-in':['button shape','load click scroll','turn grow'],
'shatter-effect':['card page','click load newpage','pieces'],
+ 'ink-spread-reveal':['card page','load scroll click','reveal grow'],
// 03
'view-transitions-api':['page','newpage click','fade slide grow'],
'shared-element-transition':['card page','newpage click','grow morph slide'],
@@ -2429,6 +2439,7 @@ function pvMarkup(k){
return '<span class="cd">'+['sa','sb'].map(s=>'<span class="set '+s+' anim">'+B.map((q,k)=>{const t=[[50,42],q,B[(k+1)%8]],c=[0,1].map(a=>t.reduce((m,v)=>m+v[a]/3,0)),l=Math.hypot(c[0]-50,c[1]-42);
return '<i class="anim" style="clip-path:polygon('+t.map(v=>{const m=Math.hypot(v[0]-c[0],v[1]-c[1]);return (v[0]+(v[0]-c[0])/m*1.5).toFixed(1)+'% '+(v[1]+(v[1]-c[1])/m*1.5).toFixed(1)+'%';}).join()+
');transform-origin:'+c[0].toFixed(1)+'% '+c[1].toFixed(1)+'%;--x:'+((c[0]-50)/l).toFixed(2)+';--y:'+((c[1]-42)/l).toFixed(2)+';--r:'+R[k]+'deg"></i>';}).join('')+'</span>').join('')+'</span>';}
+ case 'inkspread': return '<i class="b1 anim"></i><i class="b2 anim"></i><i class="b3 anim"></i><span class="pic anim"></span>';
case 'sig3': return '<span class="s3 pa anim"></span><span class="s3 pb anim"></span>';
case 'circlerev': return '<span class="pg"><b></b><b></b><b></b></span><span class="c anim"></span><span class="pg pb anim"><b></b><b></b><b></b></span><span class="t anim"></span>';
case 'cubepage': return '<div class="sc"><span class="f a anim"><span class="pg"><b></b><b></b><b></b></span><i class="d anim"></i></span><span class="f b anim"><span class="pg"><b></b><b></b><b></b></span><i class="d anim"></i></span></div>';
diff --git a/llms.txt b/llms.txt
index 85c7c56a..6f39a989 100644
--- a/llms.txt
+++ b/llms.txt
@@ -1,8 +1,8 @@
# Animation Handbook
-> A visual reference of 166 web animation techniques, each with a live demo and a plain-words prompt for building it with an AI assistant.
+> A visual reference of 167 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 166 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. To give an AI coding assistant all 167 prompts and settings at once, install the Agent Skill: `npx skills add matinmonshizadeh/animation-handbook`.
## Scroll-Based
@@ -50,6 +50,7 @@ Each page plays one technique live and gives a ready-made prompt that describes
- [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.
- [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.
- [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.
+- [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.
## Page Transitions
@@ -198,9 +199,9 @@ Each page plays one technique live and gives a ready-made prompt that describes
## Skill files
- [SKILL.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/SKILL.md): how to find a technique, choose its settings for the user's page and build it, with the rules for real pages
-- [references/catalog.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/catalog.md): all 166 in one list, with what each does and where it goes, and an index by place
+- [references/catalog.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/catalog.md): all 167 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 14 Entrance & Exit 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 16 Page Transitions entries, each with its prompt and its settings, with the demo's values
- [references/04-micro-interactions.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/04-micro-interactions.md): the 41 Micro-Interactions entries, each with its prompt and its settings, with the demo's values
- [references/05-text-typography.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/05-text-typography.md): the 19 Text & Typography entries, each with its prompt and its settings, with the demo's values
diff --git a/og-image.png b/og-image.png
index 8eeb5c67..cf2e4897 100644
Binary files a/og-image.png and b/og-image.png differ
diff --git a/sitemap.xml b/sitemap.xml
index 5b409de7..dad998c3 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -43,6 +43,7 @@
<url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/bounce-in/</loc><lastmod>2026-10-15</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>
<url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/rotate-in/</loc><lastmod>2026-10-15</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>
<url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/shatter-effect/</loc><lastmod>2026-10-15</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>
+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/ink-spread-reveal/</loc><lastmod>2026-10-15</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>
<url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/view-transitions-api/</loc><lastmod>2026-10-15</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>
<url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/shared-element-transition/</loc><lastmod>2026-10-15</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>
<url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/morph-transition/</loc><lastmod>2026-10-15</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>
diff --git a/skills/animation-handbook/SKILL.md b/skills/animation-handbook/SKILL.md
index 8e591207..4c80c8e6 100644
--- a/skills/animation-handbook/SKILL.md
+++ b/skills/animation-handbook/SKILL.md
@@ -1,12 +1,12 @@
---
name: animation-handbook
-description: Builds web animations from Animation Handbook, a set of 166 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.
+description: Builds web animations from Animation Handbook, a set of 167 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 166 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.
+[Animation Handbook](https://matinmonshizadeh.github.io/animation-handbook/) is a free reference of 167 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
@@ -36,9 +36,9 @@ Keep these even where a prompt does not say them, and follow them where a prompt
## Where to look
-- [references/catalog.md](references/catalog.md): all 166 in one list, grouped by category, with an index by place.
+- [references/catalog.md](references/catalog.md): all 167 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, 14 animations. Element-level animations for arriving and departing — fades, slides, reveals, flips, and text staggers.
+- [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, 16 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, 41 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.
diff --git a/skills/animation-handbook/references/02-entrance-and-exit.md b/skills/animation-handbook/references/02-entrance-and-exit.md
index 0b67d59f..df46c622 100644
--- a/skills/animation-handbook/references/02-entrance-and-exit.md
+++ b/skills/animation-handbook/references/02-entrance-and-exit.md
@@ -1,6 +1,6 @@
# 02 · Entrance & Exit
-Element-level animations for arriving and departing — fades, slides, reveals, flips, and text staggers. 14 animations from Animation Handbook, in the home page's order. Each entry gives the live demo, how it runs, what it is good for and what to avoid it on, the prompt from its page word for word, and its settings with what each does and the demo's values.
+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
@@ -18,6 +18,7 @@ Element-level animations for arriving and departing — fades, slides, reveals,
- [Bounce In](#bounce-in)
- [Rotate In](#rotate-in)
- [Shatter Effect](#shatter-effect)
+- [Ink Spread Reveal](#ink-spread-reveal)
## Fade In / Fade Out
@@ -312,3 +313,23 @@ Add a shatter effect to [the card or picture you want to break]. When it plays,
- 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/catalog.md b/skills/animation-handbook/references/catalog.md
index bf0874f0..f9d83459 100644
--- a/skills/animation-handbook/references/catalog.md
+++ b/skills/animation-handbook/references/catalog.md
@@ -1,6 +1,6 @@
# Catalog
-All 166 animations of Animation Handbook, in the home page's order and grouped by category. Each line gives the name linked to its live demo, what it does and what it is best for, 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.
+All 167 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)
@@ -38,7 +38,7 @@ Animations driven by scroll position — parallax, sticky, scrub, snap, and stor
## 02 · Entrance & Exit
-Element-level animations for arriving and departing — fades, slides, reveals, flips, and text staggers. 14 animations, in [02-entrance-and-exit.md](02-entrance-and-exit.md).
+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.
@@ -54,6 +54,7 @@ Element-level animations for arriving and departing — fades, slides, reveals,
- [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
@@ -211,10 +212,10 @@ 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** (44): 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, Shared Element Transition, Blur Transition, Dissolve Transition, FLIP Technique, Page Curl, Cube Transition, Hover State Animation, Skeleton Loader, Modal Expand, Swipe to Dismiss, Animated Gradient Border, Spotlight Hover Glow, Image Trail, 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, Grain / Film Noise Overlay, Light Leak
+- **Images & cards** (45): 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, Hover State Animation, Skeleton Loader, Modal Expand, Swipe to Dismiss, Animated Gradient Border, Spotlight Hover Glow, Image Trail, 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, Grain / Film Noise Overlay, Light Leak
- **Backgrounds** (39): 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, 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
- **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** (28): 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, 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
+- **Page intros** (29): 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
- **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** (17): 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
diff --git a/tests/finder.test.js b/tests/finder.test.js
index ff1b41e8..9515a1b5 100644
--- a/tests/finder.test.js
+++ b/tests/finder.test.js
@@ -621,7 +621,7 @@ const CASES = [
[6, '', 'scroll', 'pin', ['Pin Animation', 'Sticky Section', 'Scrollytelling']],
[7, 'card', 'scroll', 'grow', ['Zoom Into Image']],
[8, '', 'scroll', 'layers', ['Parallax Scrolling', 'Parallax Depth-of-Field']],
- [9, 'page', 'click', '', ['Circle Reveal', 'Overlay Wipe', 'Portal / Tunnel Zoom']],
+ [9, 'page', 'click', '', ['Circle Reveal', 'Overlay Wipe', 'Portal / Tunnel Zoom', 'Ink Spread Reveal']],
[10, 'text', 'load', 'reveal', ['Curtain Reveal', 'Text Clip-Path Reveal']],
[11, 'page', 'scroll', 'slide', ['Smooth (Inertia) Scroll']],
[12, 'card', 'scroll', 'turn', ['Scroll Image Sequence', 'Scrub Animation', 'Scroll-Driven 3D Rotation']],