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: Pixelate Transition (03.17), a new Page Transitions page

matin5d00352c648c
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
index 24dac99f..03213774 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 167 techniques running before filing an issue.
+ about: See all 168 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 6e1c4c18..644430eb 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 167 animations</a>
+ <a class="way" href="/animation-handbook/?view=all#results">Browse all 168 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 396b4fb6..d2f3757f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -17,6 +17,8 @@ The main steps of Animation Handbook, newest first, with the number of animation
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.
+- A new animation, Pixelate Transition (168 in all): the page breaks into big pixels, then sharpens into the next, with
+ See inside and Compare from the start.
## 1.0.0 — 2026-10-10
diff --git a/README.md b/README.md
index d00180e7..a90700dc 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 167 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 168 web animation techniques" width="820"></picture></a>
# Animation Handbook
-**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.**
+**A visual reference of 168 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-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)
+[![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-168-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 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.
+Here are 168 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.
@@ -61,7 +61,7 @@ Then ask for an animation in plain words, like "make the cards fade in as they s
|:--:|----------|:-----:|
| 01 | [Scroll-Based](#01) | 27 |
| 02 | [Entrance & Exit](#02) | 15 |
-| 03 | [Page Transitions](#03) | 16 |
+| 03 | [Page Transitions](#03) | 17 |
| 04 | [Micro-Interactions](#04) | 41 |
| 05 | [Text & Typography](#05) | 19 |
| 06 | [3D & Advanced](#06) | 26 |
@@ -69,7 +69,7 @@ Then ask for an animation in plain words, like "make the cards fade in as they s
## Full catalog
-All 167 techniques, each linked to its live demo.
+All 168 techniques, each linked to its live demo.
Each technique's code and README are in its folder under [animations/](animations/).
@@ -139,11 +139,11 @@ Each technique's code and README are in its folder under [animations/](animation
<a id="03"></a>
-### 03 · Page Transitions · 16 techniques
+### 03 · Page Transitions · 17 techniques
<sub>Full-page transitions between routes or views — crossfades, slides, portals, morphs, and the View Transitions API.</sub>
-<details><summary>Browse all 16 techniques in Page Transitions</summary>
+<details><summary>Browse all 17 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.
@@ -161,6 +161,7 @@ Each technique's code and README are in its folder under [animations/](animation
- **[Overlay Wipe](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/overlay-wipe/)** — A colored panel sweeps over the page as it changes. Best for portfolio sites.
- **[Page Curl](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/page-curl/)** — The page peels back from its corner like paper. Best for digital magazines.
- **[Cube Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/cube-transition/)** — The pages sit on a cube that turns to show the next. Best for photo stories.
+- **[Pixelate Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/pixelate-transition/)** — The page breaks into big pixels, then sharpens into the next. Best for galleries.
</details>
diff --git a/animations/03-page-transitions/README.md b/animations/03-page-transitions/README.md
index 5ae9616d..9dc3ede2 100644
--- a/animations/03-page-transitions/README.md
+++ b/animations/03-page-transitions/README.md
@@ -20,3 +20,4 @@ Full-page transitions between routes or views — crossfades, slides, portals, m
- [Overlay Wipe](overlay-wipe/) — A colored panel sweeps over the page as it changes. Best for portfolio sites.
- [Page Curl](page-curl/) — The page peels back from its corner like paper. Best for digital magazines.
- [Cube Transition](cube-transition/) — The pages sit on a cube that turns to show the next. Best for photo stories.
+- [Pixelate Transition](pixelate-transition/) — The page breaks into big pixels, then sharpens into the next. Best for galleries.
diff --git a/animations/03-page-transitions/cube-transition/index.html b/animations/03-page-transitions/cube-transition/index.html
index e303ab22..ec004a1b 100644
--- a/animations/03-page-transitions/cube-transition/index.html
+++ b/animations/03-page-transitions/cube-transition/index.html
@@ -53,7 +53,7 @@
<body class="hb" data-hb-kind="do" 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="../page-curl/" rel="prev" aria-label="Previous: Page Curl"><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>Page Curl</span></a></span>
+ <span class="hb-pager"><a href="../page-curl/" rel="prev" aria-label="Previous: Page Curl"><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>Page Curl</span></a><a href="../pixelate-transition/" rel="next" aria-label="Next: Pixelate Transition"><span><span class="hb-dir">Next: </span>Pixelate Transition</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/animations/03-page-transitions/dissolve/README.md b/animations/03-page-transitions/dissolve/README.md
index 66ec6ff7..ff6c3d9f 100644
--- a/animations/03-page-transitions/dissolve/README.md
+++ b/animations/03-page-transitions/dissolve/README.md
@@ -57,3 +57,4 @@ Each tile's inline style bakes the normalized delay into a real transition: `tra
- [Blur Transition](../blur-transition/) — a blur hides the change
- [Slide Transition](../slide-transition/) — pages move instead of dissolving
- [Shatter Effect](../../02-entrance-and-exit/shatter-effect/) — a card breaks into pieces that fly apart and fade
+- [Pixelate Transition](../pixelate-transition/) — the page breaks into big pixels, then sharpens into the next
diff --git a/animations/03-page-transitions/pixelate-transition/README.md b/animations/03-page-transitions/pixelate-transition/README.md
new file mode 100644
index 00000000..86050c2c
--- /dev/null
+++ b/animations/03-page-transitions/pixelate-transition/README.md
@@ -0,0 +1,50 @@
+# Pixelate Transition
+
+[Live demo](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/pixelate-transition/)
+
+## What it is
+A pixelate transition hides the change from one page or picture to the next behind big square blocks. The current page breaks into blocks of flat color that grow larger, the page swaps while it cannot be read, and the blocks shrink until the new page is sharp. It looks like a picture losing and regaining focus in an old video game.
+
+## When to use it
+- Photo galleries and portfolios, between one picture and the next
+- Game, music and retro-themed sites
+- Slideshows and story pages where each step is a full picture
+- A playful change between the sections of a landing page
+
+## How it works
+The pages are pictures drawn once onto hidden canvases. During a change, each frame draws the current page very small on a second canvas, one pixel per block, with smoothing on, so each pixel becomes the average color of its block; then it draws that small copy back up to the full size with smoothing off, so every pixel turns into one flat square:
+
+```js
+const bw = Math.ceil(w / b), bh = Math.ceil(h / b); // b: the block size this frame
+sctx.imageSmoothingEnabled = true; sctx.drawImage(page, 0, 0, bw, bh); // sctx draws on the small canvas
+ctx.imageSmoothingEnabled = false; ctx.drawImage(small, 0, 0, bw, bh, 0, 0, bw * b, bh * b);
+```
+
+The block size follows the change: it grows from one pixel to the largest size at the middle and shrinks back, and the page swaps exactly at the middle, when the blocks are largest. In steps holds the block size at a few sizes in turn instead of growing smoothly:
+
+```js
+const k = p < .5 ? p * 2 : (1 - p) * 2; // p: 0 to 1 over the change
+let b = 1 + (blockMax - 1) * k * k * (3 - 2 * k);
+if (stepped) b = Math.max(1, Math.round(b / blockMax * 4) / 4 * blockMax);
+```
+
+A change runs by the time that has passed, three times as long in slow motion, and nothing is drawn between changes. The page names are real buttons above the canvas, so they never pixelate and stay easy to read and to reach with the keyboard. The page titles are drawn in the site's font once it has loaded. Under reduced motion a change is a short, plain fade.
+
+## Key parameters
+| Parameter | Default | Effect |
+|-----------|---------|--------|
+| Block size | Medium | How big the squares are at the middle of a change: small is 8 pixels, medium 16 and large 28 |
+| Speed | Normal | How long a change takes: slow is 1.2 seconds, normal 0.8 seconds and fast 0.5 seconds |
+| How the blocks change | Smoothly | Smoothly grows and shrinks the blocks evenly; in steps holds them at a quarter, a half, three quarters and the full size in turn |
+
+## Production notes
+- **Two small drawings a frame.** Draw the page small and back up with `drawImage`; never read and average pixels in a loop. Keep the hidden page canvases at most twice the screen's pixels.
+- **Pictures, not live pages.** A canvas cannot pixelate HTML. For real pages, take a picture of each view first (html2canvas or a server-side screenshot), or pixelate only the hero picture and fade the rest. With the View Transitions API, the old and new views can be shown as pictures that a shader or canvas pixelates.
+- **WebGL.** A fragment shader that rounds each pixel's coordinates to its block (`floor(uv * blocks) / blocks`) pixelates a full-screen view in one pass; PixiJS has a ready-made pixelate filter.
+- **Keep text readable.** Leave navigation and buttons out of the pixelated area, and keep the change short: it hides the page for a moment by design.
+- **Reduced motion.** Use a short, plain crossfade instead.
+
+## See also
+- [Dissolve Transition](../dissolve/) — the page breaks into tiles that give way in an order
+- [Blur Transition](../blur-transition/) — the page goes out of focus and comes back as the next one
+- [ASCII / Halftone](../../06-3d-advanced/ascii-halftone/) — a picture drawn small and shown as characters or dots
diff --git a/animations/03-page-transitions/pixelate-transition/index.html b/animations/03-page-transitions/pixelate-transition/index.html
new file mode 100644
index 00000000..851c72b5
--- /dev/null
+++ b/animations/03-page-transitions/pixelate-transition/index.html
@@ -0,0 +1,310 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Pixelate Transition — Animation Handbook</title>
+ <meta name="description" content="The page breaks into big pixels, then sharpens into the next. Best for galleries.">
+ <link rel="canonical" href="https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/pixelate-transition/">
+ <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="Pixelate Transition — Animation Handbook">
+ <meta property="og:description" content="The page breaks into big pixels, then sharpens into the next. Best for galleries.">
+ <meta property="og:url" content="https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/pixelate-transition/">
+ <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="Pixelate Transition — Animation Handbook">
+ <meta name="twitter:description" content="The page breaks into big pixels, then sharpens into the next. Best for galleries.">
+ <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": "Pixelate Transition", "name": "Pixelate Transition", "description": "The page breaks into big pixels, then sharpens into the next. Best for galleries.", "url": "https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/pixelate-transition/", "inLanguage": "en", "articleSection": "Page Transitions", "isPartOf": {"@type": "WebSite", "name": "Animation Handbook", "url": "https://matinmonshizadeh.github.io/animation-handbook/"}, "author": {"@type": "Person", "name": "matinmonshizadeh"}, "keywords": "web animation, CSS animation, Page Transitions, Pixelate Transition"}</script>
+ <style>
+ :root{--bg:#0b0b0d;--ui-bg:#111114;--ui-border:rgba(255,255,255,.09);--ui-accent:#b98cff;--ui-text:#f4f4f2;--ui-muted:#8a8a92}
+ *,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
+ .stage{display:flex;flex-direction:column;overflow:hidden;background:var(--bg);color:var(--ui-text)}
+ .mini-nav{display:flex;gap:6px;padding:10px 12px;background:var(--ui-bg);border-bottom:1px solid var(--ui-border);flex-shrink:0}
+ .nav-btn{background:none;border:1px solid var(--ui-border);color:var(--ui-muted);font:inherit;font-size:13px;padding:0 12px;border-radius:4px;cursor:pointer;min-height:44px}
+ .nav-btn.active{border-color:var(--ui-accent);color:var(--ui-accent)}
+ @media(hover:hover){.nav-btn:hover{border-color:var(--ui-accent)}}
+ .page-area{flex:1;position:relative;overflow:hidden;min-height:0}
+ #cvs{position:absolute;inset:0;width:100%;height:100%;display:block}
+ /* See inside and Compare: plain words over the page */
+ .px-lbl{display:none;position:absolute;z-index:2;padding:3px 8px;border-radius:6px;background:rgba(11,11,13,.9);color:#f4f4f2;font:600 13px/1.25 var(--hb-font);white-space:nowrap;pointer-events:none}
+ .stage[data-hb-mode="inside"] .in,.stage[data-hb-mode="compare"] .half{display:block}
+ .in.copy{white-space:normal;text-align:right;max-width:calc(100% - 150px)}
+ .half{bottom:10px}.half.first{left:10px}.half.second{left:calc(50% + 10px)}
+ </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="do" 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="../cube-transition/" rel="prev" aria-label="Previous: Cube Transition"><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>Cube Transition</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">03.17 · Page Transitions</p>
+ <h1>Pixelate Transition</h1>
+ <p class="hb-lede">The page breaks into big pixels, then sharpens into the next. Best for galleries.</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">Click it</h2><p>Click Work or About at the top of the box, or press Show me.</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">
+ <nav class="mini-nav" id="nav" aria-label="Demo pages"></nav>
+ <div class="page-area" id="page-area">
+ <canvas id="cvs" role="img" aria-label="A small gallery site whose page breaks into big pixels and sharpens into the next page"></canvas>
+ <p class="px-lbl in copy" id="l-copy" aria-hidden="true" data-hb-caption>Small copy · one pixel per block</p>
+ <p class="px-lbl in up" id="l-up" aria-hidden="true" data-hb-caption>Scaled up, smoothing off</p>
+ <p class="px-lbl in swap" id="l-swap" aria-hidden="true" data-hb-caption>Swap here</p>
+ <p class="px-lbl half first" aria-hidden="true" data-hb-caption>Cuts at once</p>
+ <p class="px-lbl half second" aria-hidden="true" data-hb-caption>Pixelates</p>
+ </div>
+ </div>
+ <div class="hb-player">
+ <button class="hb-play" type="button" id="btn-demo" data-hb-demo><svg class="hb-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z"/></svg>Show me</button>
+ <button class="hb-play" type="button" id="btn-reset" data-hb-reset><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>Reset</button>
+ <label class="hb-toggle"><input class="hb-switch" type="checkbox" role="switch" id="slow-tog" data-hb-slowmo autocomplete="off"><span>Slow motion</span></label>
+ </div>
+ <div class="hb-mode-notes" aria-live="polite">
+ <p data-hb-for="inside" hidden>Inside, each block is one pixel of a small copy of the page, scaled up with smoothing off. The strip shows the blocks grow, swap the page at their largest, then shrink.</p>
+ <p data-hb-for="compare" hidden>Cuts at once swaps the page in a blink. Pixelates breaks it into blocks, swaps while it cannot be read, then sharpens, so the cut is hidden.</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, then click a page or press Show me.</p></div>
+ </div>
+ <div class="hb-settings">
+ <div class="hb-setting">
+ <p class="hb-setting-name" id="block-lbl">Block size</p>
+ <div class="seg" id="block-seg" role="group" aria-labelledby="block-lbl">
+ <button type="button" data-b="8" aria-pressed="false">Small</button>
+ <button type="button" data-b="16" class="on" aria-pressed="true">Medium</button>
+ <button type="button" data-b="28" aria-pressed="false">Large</button>
+ </div>
+ <p class="hb-hint">How big the squares get mid-change.</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-ms="1200" aria-pressed="false">Slow</button>
+ <button type="button" data-ms="800" class="on" aria-pressed="true">Normal</button>
+ <button type="button" data-ms="500" aria-pressed="false">Fast</button>
+ </div>
+ <p class="hb-hint">How long the change takes.</p>
+ </div>
+ <div class="hb-setting">
+ <p class="hb-setting-name" id="steps-lbl">How the blocks change</p>
+ <div class="seg" id="steps-seg" role="group" aria-labelledby="steps-lbl">
+ <button type="button" data-steps="0" class="on" aria-pressed="true">Smoothly</button>
+ <button type="button" data-steps="1" aria-pressed="false">In steps</button>
+ </div>
+ <p class="hb-hint">In steps looks like an old game console.</p>
+ </div>
+ </div>
+ </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 a pixelate transition to [the pictures or views you switch between]. When the visitor moves to the next one, break the current picture into square blocks that grow larger, swap to the new picture while the blocks are at their largest, then shrink the blocks until the new picture is sharp again. Make each block one flat color by drawing the picture very small on a canvas and scaling it back up with smoothing turned off. Keep the page names and buttons outside the pixelated area so they stay readable, and draw only while a change runs. If the visitor has reduced motion turned on, use a short, plain fade instead. Match the settings listed below.</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>Photo galleries</li><li>Game and retro sites</li><li>Slideshows</li></ul>
+ <h3>Avoid on</h3>
+ <ul class="hb-tags hb-avoid"><li>Everyday navigation</li><li>Text-heavy pages</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 nav=document.getElementById('nav'),area=document.getElementById('page-area'),cvs=document.getElementById('cvs'),ctx=cvs.getContext('2d');
+ const slowTog=document.getElementById('slow-tog'),reduceMQ=matchMedia('(prefers-reduced-motion: reduce)');
+ const LABELS={normal:'A small gallery site whose page breaks into big pixels and sharpens into the next page',
+ inside:'The page as big blocks with their grid, the small copy they come from, and a strip of block size over a change',
+ compare:'The same page change twice: a plain cut on the left, the pixelating change on the right'};
+ // Three pages of a made-up photography site, each a drawn picture with a title (in the site's font once it has loaded)
+ const PAGES=[
+ {name:'Home',draw:(g,w,h)=>{const sky=g.createLinearGradient(0,0,0,h);sky.addColorStop(0,'#28204a');sky.addColorStop(.6,'#c4567a');sky.addColorStop(1,'#f6a85c');g.fillStyle=sky;g.fillRect(0,0,w,h);
+ g.fillStyle='#ffe2a0';g.beginPath();g.arc(w*.7,h*.62,h*.16,0,6.283);g.fill();
+ g.fillStyle='#3b2c5a';g.beginPath();g.moveTo(0,h);g.lineTo(0,h*.72);g.lineTo(w*.22,h*.5);g.lineTo(w*.42,h*.7);g.lineTo(w*.62,h*.46);g.lineTo(w*.86,h*.68);g.lineTo(w,h*.6);g.lineTo(w,h);g.fill();
+ g.fillStyle='#1d1733';g.fillRect(0,h*.86,w,h*.14);return['Northlight','Photography by the sea']}},
+ {name:'Work',draw:(g,w,h)=>{g.fillStyle='#14161c';g.fillRect(0,0,w,h);
+ const cols=[['#ff7a59','#ffd36e'],['#4fd1c5','#2b6cb0'],['#b794f4','#ed64a6'],['#68d391','#2f855a'],['#f6ad55','#c05621'],['#63b3ed','#5a67d8']];
+ cols.forEach((c,i)=>{const x=w*(.08+(i%3)*.3),y=h*(.36+(i/3|0)*.31),tw=w*.26,th=h*.26,gr=g.createLinearGradient(x,y,x+tw,y+th);gr.addColorStop(0,c[0]);gr.addColorStop(1,c[1]);g.fillStyle=gr;g.fillRect(x,y,tw,th)});
+ return['Selected work','Six stories from the coast']}},
+ {name:'About',draw:(g,w,h)=>{const bg=g.createLinearGradient(0,0,w,h);bg.addColorStop(0,'#2a2016');bg.addColorStop(1,'#6b4a2b');g.fillStyle=bg;g.fillRect(0,0,w,h);
+ const cx=w*.72,cy=h*.6,s=h*.2;g.fillStyle='#1b1410';g.fillRect(cx-s*1.3,cy-s*.8,s*2.6,s*1.7);g.fillStyle='#d9c6a5';g.fillRect(cx-s*.5,cy-s*1.05,s,s*.3);
+ g.fillStyle='#0f0b08';g.beginPath();g.arc(cx,cy+s*.05,s*.62,0,6.283);g.fill();g.fillStyle='#4a7ab8';g.beginPath();g.arc(cx,cy+s*.05,s*.36,0,6.283);g.fill();
+ g.fillStyle='#bfe0ff';g.beginPath();g.arc(cx-s*.12,cy-s*.08,s*.1,0,6.283);g.fill();return['About the studio','Two people, one old camera']}}
+ ];
+ let blockMax=16,changeMs=800,stepped=false,mode='normal',current=0,dpr=1,W=0,H=0,raf=0,lastT=null,change=null,runTimers=[],runFrom=null,font='sans-serif';
+ const pics={}; // each page drawn once for a size (the whole area, or a Compare half): pics[page+':'+w] is a canvas
+ const small=document.createElement('canvas'),sctx=small.getContext('2d');
+ function pic(i,w,h){
+ const key=i+':'+w+'x'+h;if(pics[key])return pics[key];
+ const c=document.createElement('canvas'),g=c.getContext('2d');c.width=w;c.height=h;
+ const [title,sub]=PAGES[i].draw(g,w,h),fs=Math.max(18,Math.min(w*.09,h*.17));
+ g.fillStyle='#fff';g.font=`800 ${fs}px ${font}`;g.fillText(title,w*.07,h*.08+fs);
+ g.globalAlpha=.75;g.font=`500 ${fs*.42}px ${font}`;g.fillText(sub,w*.07,h*.08+fs*1.62);g.globalAlpha=1;
+ return pics[key]=c;
+ }
+ // The block size at a share p of a change: it grows to the largest at the middle, where the page swaps, then shrinks back; In
+ // steps holds it at a few sizes in turn, as old game consoles did
+ function blockAt(p){
+ const k=p<.5?p*2:(1-p)*2;let b=1+(blockMax-1)*k*k*(3-2*k);
+ if(stepped)b=Math.max(1,Math.round(b/blockMax*4)/4*blockMax);
+ return b;
+ }
+ // A page in a rectangle of the canvas (device pixels), as blocks of size b: drawn small, one pixel per block, then scaled back up
+ // with smoothing off, so each block is one flat color
+ function blocks(img,x,y,w,h,b){
+ if(b<1.01*dpr){ctx.drawImage(img,x,y,w,h);return}
+ const bw=Math.max(1,Math.ceil(w/b)),bh=Math.max(1,Math.ceil(h/b));
+ sctx.imageSmoothingEnabled=true;sctx.drawImage(img,0,0,bw,bh);
+ ctx.imageSmoothingEnabled=false;ctx.save();ctx.beginPath();ctx.rect(x,y,w,h);ctx.clip();ctx.drawImage(small,0,0,bw,bh,x,y,bw*b,bh*b);ctx.restore();
+ }
+ function draw(){
+ const w=cvs.width,h=cvs.height,p=change?change.p:null,b=(p===null?1:blockAt(p))*dpr,show=p!==null&&p>=.5?change.to:current;
+ ctx.clearRect(0,0,w,h);
+ const fade=!!change&&change.fade!==undefined; // a change under reduced motion: no block grows or shrinks, in any mode
+ if(mode==='compare'){
+ const half=Math.floor(w/2),ph=h,rest=p===null,rw=w-half-2*dpr;
+ // the cut swaps at the very moment the blocks are biggest; at rest the right holds that moment beside the page it cut to;
+ // under reduced motion the right fades from one page to the next at that block size
+ ctx.drawImage(pic(show,half,ph),0,0,half,ph);
+ if(fade){blocks(pic(change.from,rw,ph),half+2*dpr,0,rw,ph,blockMax*dpr);ctx.globalAlpha=change.fade;blocks(pic(change.to,rw,ph),half+2*dpr,0,rw,ph,blockMax*dpr);ctx.globalAlpha=1}
+ else blocks(pic(show,rw,ph),half+2*dpr,0,rw,ph,rest?blockMax*dpr:b);
+ ctx.fillStyle='#000';ctx.fillRect(half,0,2*dpr,h);
+ }else if(mode==='inside')drawInside(show,fade?null:p);
+ else if(change&&change.fade!==undefined){ctx.drawImage(pic(change.from,w,h),0,0);ctx.globalAlpha=change.fade;ctx.drawImage(pic(change.to,w,h),0,0);ctx.globalAlpha=1}
+ else blocks(pic(show,w,h),0,0,w,h,b);
+ }
+ // See inside: the page as blocks (the chosen size at rest) with their grid, the small copy in an inset (its size at rest, kept
+ // through a change) with an arrow to the box, and a strip of block size over a change, its top marked where the page swaps
+ function drawInside(show,p){
+ const w=cvs.width,h=cvs.height,b=(p===null?blockMax:Math.max(1,blockAt(p)))*dpr,img=pic(show,w,h);
+ blocks(img,0,0,w,h,b);
+ if(b>=6*dpr){ctx.strokeStyle='rgba(255,255,255,.18)';ctx.lineWidth=1;ctx.beginPath();for(let x=b;x<w;x+=b){ctx.moveTo(x,0);ctx.lineTo(x,h)}for(let y=b;y<h;y+=b){ctx.moveTo(0,y);ctx.lineTo(w,y)}ctx.stroke()}
+ const bw=Math.ceil(w/b),bh=Math.ceil(h/b),rw=Math.ceil(w/(blockMax*dpr)),rh=Math.ceil(h/(blockMax*dpr)),cell=Math.max(2,Math.floor(Math.min(110*dpr/rw,70*dpr/rh))),iw=rw*cell,ih=rh*cell,ix=w-iw-10*dpr,iy=36*dpr;
+ ctx.fillStyle='rgba(11,11,13,.9)';ctx.fillRect(ix-4*dpr,iy-4*dpr,iw+8*dpr,ih+8*dpr);
+ sctx.imageSmoothingEnabled=true;sctx.drawImage(img,0,0,bw,bh);ctx.imageSmoothingEnabled=false;ctx.drawImage(small,0,0,bw,bh,ix,iy,iw,ih);
+ const ax=ix-6*dpr,ay=iy+ih+6*dpr,tx=w*.42,ty=h*.6;
+ ctx.strokeStyle='#ffce5a';ctx.lineWidth=2.5*dpr;ctx.lineCap='round';ctx.beginPath();ctx.moveTo(ax,ay);ctx.lineTo(tx,ty);
+ const a=Math.atan2(ty-ay,tx-ax);ctx.moveTo(tx-10*dpr*Math.cos(a-.5),ty-10*dpr*Math.sin(a-.5));ctx.lineTo(tx,ty);ctx.lineTo(tx-10*dpr*Math.cos(a+.5),ty-10*dpr*Math.sin(a+.5));ctx.stroke();
+ const sx=10*dpr,sw=Math.min(w*.4,180*dpr),sh=34*dpr,sy=h-sh-10*dpr;
+ ctx.fillStyle='rgba(11,11,13,.9)';ctx.fillRect(sx-6*dpr,sy-6*dpr,sw+12*dpr,sh+12*dpr);
+ ctx.strokeStyle='#b98cff';ctx.lineWidth=2*dpr;ctx.beginPath();
+ for(let i=0;i<=60;i++){const q=i/60,y=sy+sh-(blockAt(q)-1)/(blockMax-1)*sh;i?ctx.lineTo(sx+q*sw,y):ctx.moveTo(sx+q*sw,y)}ctx.stroke();
+ ctx.setLineDash([4*dpr,4*dpr]);ctx.strokeStyle='rgba(255,255,255,.6)';ctx.beginPath();ctx.moveTo(sx+sw/2,sy);ctx.lineTo(sx+sw/2,sy+sh);ctx.stroke();ctx.setLineDash([]);
+ const q=p===null?.5:p;ctx.fillStyle='#fff';ctx.beginPath();ctx.arc(sx+q*sw,sy+sh-(blockAt(q)-1)/(blockMax-1)*sh,5*dpr,0,6.283);ctx.fill();
+ // the small copy's name to its left, Scaled up under it beside where the arrow starts, Swap here over the strip's top; the
+ // labels are all measured before any moves, so the page lays out once a frame
+ const L=['l-copy','l-up','l-swap'].map(id=>{const el=document.getElementById(id);return{el,w:el.offsetWidth,h:el.offsetHeight}});
+ const at=[[ix/dpr-12-L[0].w,iy/dpr],[(ix+iw)/dpr-L[1].w,(iy+ih)/dpr+12],[(sx+sw/2)/dpr-L[2].w/2,sy/dpr-30]];
+ L.forEach((l,i)=>{l.el.style.left=Math.max(6,Math.min(W-l.w-6,at[i][0]))+'px';l.el.style.top=Math.max(6,Math.min(H-l.h-6,at[i][1]))+'px'});
+ }
+ // A change runs by the time that passed (three times as long in slow motion) and draws only while it runs
+ function loop(ts){
+ raf=change?requestAnimationFrame(loop):0;if(!change)return;
+ if(lastT===null){lastT=ts;draw();return}
+ const dt=Math.min(ts-lastT,50);lastT=ts;
+ const dur=(reduceMQ.matches?250:changeMs)*(slowTog.checked?3:1);
+ if(change.fade!==undefined)change.fade=Math.min(1,change.fade+dt/dur);
+ change.p=Math.min(1,change.p+dt/dur);
+ if(change.p>=1){current=change.to;const then=change.then;change=null;draw();if(then)then();return}
+ draw();
+ }
+ function navigate(to,then){
+ if(change||to===current)return;
+ change={from:current,to,p:0,then};if(reduceMQ.matches)change.fade=0;
+ updateNav(to);lastT=null;cancelAnimationFrame(raf);raf=requestAnimationFrame(loop);
+ }
+ const navBtns=PAGES.map((p,i)=>{const b=document.createElement('button');b.type='button';b.className='nav-btn';b.textContent=p.name;b.addEventListener('click',()=>navigate(i));nav.appendChild(b);return b});
+ function updateNav(n){navBtns.forEach((b,i)=>{b.classList.toggle('active',i===n);b.setAttribute('aria-current',i===n?'page':'false')})}
+ // Show me: the next page, a hold of 1.2 s, and back to where it started; every pause waits on a timer. A run is on from its
+ // first change until the way back ends (runFrom is the page it started from); pressed during a run (the mode switch presses it
+ // too) it puts the page back where that run started and runs again, so a run always ends on the page it began on
+ function later(fn,ms){const id=setTimeout(()=>{runTimers=runTimers.filter(t=>t!==id);fn()},ms);runTimers.push(id)}
+ function stopRun(){runTimers.forEach(clearTimeout);runTimers=[];runFrom=null;if(change)change.then=null}
+ document.getElementById('btn-demo').addEventListener('click',()=>{
+ if(runFrom!==null){const home=runFrom;stopRun();change=null;cancelAnimationFrame(raf);raf=0;current=home;updateNav(home);draw()}
+ else if(change)return; // the visitor's own change is on
+ const start=current;runFrom=start;
+ navigate((start+1)%PAGES.length,()=>later(()=>navigate(start,()=>{runFrom=null}),1200));
+ });
+ document.getElementById('btn-reset').addEventListener('click',()=>{stopRun();change=null;cancelAnimationFrame(raf);raf=0;current=0;updateNav(0);draw()});
+ document.addEventListener('hb:input',()=>{if(runFrom!==null)stopRun()});
+ // A run never moves the focus, so focus arriving in the stage while one runs (a Tab to the page names) is the visitor's
+ document.querySelector('.stage').addEventListener('focusin',e=>{if(e.isTrusted&&runFrom!==null)stopRun()});
+ // The mode switch draws the mode at once
+ document.addEventListener('hb:mode',e=>{mode=e.detail.mode;cvs.setAttribute('aria-label',LABELS[mode]);if(W)draw()});
+ function resize(){
+ const w=area.clientWidth,h=area.clientHeight;if(!w||!h||(w===W&&h===H))return;W=w;H=h;
+ dpr=Math.min(devicePixelRatio||1,2);cvs.width=Math.round(W*dpr);cvs.height=Math.round(H*dpr);small.width=cvs.width;small.height=cvs.height;
+ for(const k in pics)delete pics[k];
+ draw();
+ }
+ 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);if(W)draw();
+ }));
+ }
+ choices('block-seg',d=>{blockMax=+d.b});
+ choices('speed-seg',d=>{changeMs=+d.ms});
+ choices('steps-seg',d=>{stepped=d.steps==='1'});
+ // Under reduced motion a change is a short plain fade, and both views are still pictures
+ if(reduceMQ.matches){
+ document.querySelector('[data-hb-for="inside"]').textContent='Shown still: each block is one pixel of a small copy of the page, scaled up with smoothing off; the strip shows the blocks grow, swap the page at their largest and shrink.';
+ document.querySelector('[data-hb-for="compare"]').textContent='Shown still: both halves show the same page at the moment it swaps, Cuts at once as a plain page and Pixelates caught at its largest blocks.';
+ }
+ updateNav(0);
+ new ResizeObserver(resize).observe(area);
+ resize();
+ // The titles use the site's font: once it has loaded, the pages are drawn again
+ document.fonts.ready.then(()=>{font=getComputedStyle(document.body).fontFamily;for(const k in pics)delete pics[k];if(W)draw()});
+</script>
+</body>
+</html>
diff --git a/index.html b/index.html
index f02d6524..05881cd7 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 — 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.">
+<title>Animation Handbook — 168 Web Animation Techniques with Live Demos</title>
+<meta name="description" content="A free visual reference of 168 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 — 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:title" content="Animation Handbook — 168 Web Animation Techniques with Live Demos">
+<meta property="og:description" content="A free visual reference of 168 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 — 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:title" content="Animation Handbook — 168 Web Animation Techniques with Live Demos">
+<meta name="twitter:description" content="A free visual reference of 168 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 167 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 168 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"],
@@ -774,6 +774,16 @@ button,input{font:inherit;color:inherit}
@keyframes p-cbda{0%,15%{opacity:0}45%,65%{opacity:.65}95%,100%{opacity:0}}
@keyframes p-cbdb{0%,15%{opacity:.65}45%,65%{opacity:0}95%,100%{opacity:.65}}
+.pv-pixelate{background:#14161c;overflow:hidden}
+.pv-pixelate>*{position:absolute;inset:0;width:100%;height:100%;opacity:0;animation:pixelate-a 6s steps(1,end) infinite}
+.pv-pixelate .pa{background:radial-gradient(circle at 70% 62%,#ffe2a0 0 13%,#0000 13.5%),linear-gradient(162deg,#0000 58%,#3b2c5a 58.5% 86%,#1d1733 86.5%),linear-gradient(#28204a,#c4567a 60%,#f6a85c)}
+.pv-pixelate .ma{animation-name:pixelate-ma}.pv-pixelate .mb{animation-name:pixelate-mb}
+.pv-pixelate .pb{background:linear-gradient(135deg,#ff7a59,#ffd36e) 8% 34%/24% 26% no-repeat,linear-gradient(135deg,#4fd1c5,#2b6cb0) 38% 34%/24% 26% no-repeat,linear-gradient(135deg,#b794f4,#ed64a6) 68% 34%/24% 26% no-repeat,linear-gradient(135deg,#68d391,#2f855a) 8% 66%/24% 26% no-repeat,linear-gradient(135deg,#f6ad55,#c05621) 38% 66%/24% 26% no-repeat,linear-gradient(135deg,#63b3ed,#5a67d8) 68% 66%/24% 26% no-repeat,#14161c;animation-name:pixelate-b}
+@keyframes pixelate-a{0%{opacity:1}30%{opacity:0}92%{opacity:1}}
+@keyframes pixelate-ma{0%{opacity:0}30%{opacity:1}38%{opacity:0}86%{opacity:1}92%{opacity:0}}
+@keyframes pixelate-mb{0%{opacity:0}38%{opacity:1}46%{opacity:0}80%{opacity:1}86%{opacity:0}}
+@keyframes pixelate-b{0%{opacity:0}46%{opacity:1}80%{opacity:0}}
+
/* ── bespoke: 04 Micro-Interactions ── */
.pv-hoverbtn,.pv-press{background:#08090c;display:grid;place-items:center}
.pv-hoverbtn .btn{padding:10px 22px;border-radius:6px;border:1px solid var(--accent);color:var(--accent);font-family:var(--text);font-size:12px;animation:m-hover 2.6s var(--ease) infinite}
@@ -1653,7 +1663,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>167 free animations · no coding needed</p>
+ <p class="pill"><span class="pill-dot" aria-hidden="true"></span>168 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">
@@ -1718,14 +1728,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 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="more" id="more"><button type="button" class="bigbtn" id="more-btn"><span id="more-label">Browse all 168 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 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>
+ <noscript><p class="noscript">This page shows its animations with JavaScript. All 168 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">
@@ -1743,7 +1753,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">167 web animations with live demos and copyable prompts.</p>
+ <p class="foot-t">168 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>
@@ -1836,6 +1846,7 @@ const CATS=[
['overlay-wipe','Overlay Wipe','A colored panel sweeps over the page as it changes. Best for portfolio sites.'],
['page-curl','Page Curl','The page peels back from its corner like paper. Best for digital magazines.'],
['cube-transition','Cube Transition','The pages sit on a cube that turns to show the next. Best for photo stories.'],
+ ['pixelate-transition','Pixelate Transition','The page breaks into big pixels, then sharpens into the next. Best for galleries.'],
]
},
{
@@ -2003,7 +2014,7 @@ const PV={
'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',
- 'circle-reveal':'circlerev','overlay-wipe':'owipe','page-curl':'pcurl','cube-transition':'cubepage',
+ 'circle-reveal':'circlerev','overlay-wipe':'owipe','page-curl':'pcurl','cube-transition':'cubepage','pixelate-transition':'pixelate',
'click-ripple':'ripple','loading-spinner':'spinner','shimmer-effect':'shimmer','skeleton-loader':'shimmer',
'hover-state':'hoverbtn','focus-ring':'focusring','button-press-scale':'press','toggle-switch':'toggle',
'progress-animation':'segbar','checkmark-draw':'check','form-field-morph':'floatlabel','badge-pulse':'badge',
@@ -2090,6 +2101,7 @@ const PLACES={
'overlay-wipe':['page'],
'page-curl':['page','imgcard'],
'cube-transition':['page','imgcard'],
+ 'pixelate-transition':['page','imgcard'],
// 04
'hover-state':['btn','imgcard'],
'click-ripple':['btn'],
@@ -2267,6 +2279,7 @@ const FIND={
'overlay-wipe':['page shape','newpage click','reveal slide'],
'page-curl':['page card','newpage click drag','turn reveal'],
'cube-transition':['page card','newpage click drag','turn slide'],
+ 'pixelate-transition':['page card','newpage click','pieces glitch'],
// 04
'hover-state':['card button text','hover','color grow slide draw'],
'click-ripple':['button menu','click','wave grow fade'],
@@ -2443,6 +2456,7 @@ function pvMarkup(k){
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>';
+ case 'pixelate': return '<span class="pa anim"></span><svg class="ma anim" viewBox="0 0 8 5" preserveAspectRatio="none"><rect x="0" y="0" width="1.02" height="1.02" fill="#2b2250"/><rect x="1" y="0" width="1.02" height="1.02" fill="#2b2250"/><rect x="2" y="0" width="1.02" height="1.02" fill="#2b2250"/><rect x="3" y="0" width="1.02" height="1.02" fill="#2b2250"/><rect x="4" y="0" width="1.02" height="1.02" fill="#2b2250"/><rect x="5" y="0" width="1.02" height="1.02" fill="#2b2250"/><rect x="6" y="0" width="1.02" height="1.02" fill="#2b2250"/><rect x="7" y="0" width="1.02" height="1.02" fill="#2b2250"/><rect x="0" y="1" width="1.02" height="1.02" fill="#3a2758"/><rect x="1" y="1" width="1.02" height="1.02" fill="#3a2758"/><rect x="2" y="1" width="1.02" height="1.02" fill="#4a2b60"/><rect x="3" y="1" width="1.02" height="1.02" fill="#4a2b60"/><rect x="4" y="1" width="1.02" height="1.02" fill="#4a2b60"/><rect x="5" y="1" width="1.02" height="1.02" fill="#4a2b60"/><rect x="6" y="1" width="1.02" height="1.02" fill="#3a2758"/><rect x="7" y="1" width="1.02" height="1.02" fill="#3a2758"/><rect x="0" y="2" width="1.02" height="1.02" fill="#9a4a74"/><rect x="1" y="2" width="1.02" height="1.02" fill="#b04f78"/><rect x="2" y="2" width="1.02" height="1.02" fill="#c4567a"/><rect x="3" y="2" width="1.02" height="1.02" fill="#c4567a"/><rect x="4" y="2" width="1.02" height="1.02" fill="#d87a6e"/><rect x="5" y="2" width="1.02" height="1.02" fill="#ffd994"/><rect x="6" y="2" width="1.02" height="1.02" fill="#d87a6e"/><rect x="7" y="2" width="1.02" height="1.02" fill="#c4567a"/><rect x="0" y="3" width="1.02" height="1.02" fill="#3b2c5a"/><rect x="1" y="3" width="1.02" height="1.02" fill="#e08a64"/><rect x="2" y="3" width="1.02" height="1.02" fill="#3b2c5a"/><rect x="3" y="3" width="1.02" height="1.02" fill="#3b2c5a"/><rect x="4" y="3" width="1.02" height="1.02" fill="#e8966a"/><rect x="5" y="3" width="1.02" height="1.02" fill="#f3b07a"/><rect x="6" y="3" width="1.02" height="1.02" fill="#3b2c5a"/><rect x="7" y="3" width="1.02" height="1.02" fill="#3b2c5a"/><rect x="0" y="4" width="1.02" height="1.02" fill="#231a3c"/><rect x="1" y="4" width="1.02" height="1.02" fill="#231a3c"/><rect x="2" y="4" width="1.02" height="1.02" fill="#231a3c"/><rect x="3" y="4" width="1.02" height="1.02" fill="#231a3c"/><rect x="4" y="4" width="1.02" height="1.02" fill="#231a3c"/><rect x="5" y="4" width="1.02" height="1.02" fill="#231a3c"/><rect x="6" y="4" width="1.02" height="1.02" fill="#231a3c"/><rect x="7" y="4" width="1.02" height="1.02" fill="#231a3c"/></svg><svg class="mb anim" viewBox="0 0 8 5" preserveAspectRatio="none"><rect x="0" y="0" width="1.02" height="1.02" fill="#14161c"/><rect x="1" y="0" width="1.02" height="1.02" fill="#14161c"/><rect x="2" y="0" width="1.02" height="1.02" fill="#14161c"/><rect x="3" y="0" width="1.02" height="1.02" fill="#14161c"/><rect x="4" y="0" width="1.02" height="1.02" fill="#14161c"/><rect x="5" y="0" width="1.02" height="1.02" fill="#14161c"/><rect x="6" y="0" width="1.02" height="1.02" fill="#14161c"/><rect x="7" y="0" width="1.02" height="1.02" fill="#14161c"/><rect x="0" y="1" width="1.02" height="1.02" fill="#14161c"/><rect x="1" y="1" width="1.02" height="1.02" fill="#ff8a5c"/><rect x="2" y="1" width="1.02" height="1.02" fill="#ffb764"/><rect x="3" y="1" width="1.02" height="1.02" fill="#14161c"/><rect x="4" y="1" width="1.02" height="1.02" fill="#3fa9c0"/><rect x="5" y="1" width="1.02" height="1.02" fill="#14161c"/><rect x="6" y="1" width="1.02" height="1.02" fill="#c08ae8"/><rect x="7" y="1" width="1.02" height="1.02" fill="#d66fb0"/><rect x="0" y="2" width="1.02" height="1.02" fill="#14161c"/><rect x="1" y="2" width="1.02" height="1.02" fill="#ffa060"/><rect x="2" y="2" width="1.02" height="1.02" fill="#ffc868"/><rect x="3" y="2" width="1.02" height="1.02" fill="#14161c"/><rect x="4" y="2" width="1.02" height="1.02" fill="#2f86b8"/><rect x="5" y="2" width="1.02" height="1.02" fill="#14161c"/><rect x="6" y="2" width="1.02" height="1.02" fill="#c98ad8"/><rect x="7" y="2" width="1.02" height="1.02" fill="#e07ab4"/><rect x="0" y="3" width="1.02" height="1.02" fill="#14161c"/><rect x="1" y="3" width="1.02" height="1.02" fill="#5cc286"/><rect x="2" y="3" width="1.02" height="1.02" fill="#3c9b62"/><rect x="3" y="3" width="1.02" height="1.02" fill="#14161c"/><rect x="4" y="3" width="1.02" height="1.02" fill="#f39a4c"/><rect x="5" y="3" width="1.02" height="1.02" fill="#14161c"/><rect x="6" y="3" width="1.02" height="1.02" fill="#5fa8e8"/><rect x="7" y="3" width="1.02" height="1.02" fill="#6a76d8"/><rect x="0" y="4" width="1.02" height="1.02" fill="#14161c"/><rect x="1" y="4" width="1.02" height="1.02" fill="#4caf74"/><rect x="2" y="4" width="1.02" height="1.02" fill="#2f855a"/><rect x="3" y="4" width="1.02" height="1.02" fill="#14161c"/><rect x="4" y="4" width="1.02" height="1.02" fill="#d27a38"/><rect x="5" y="4" width="1.02" height="1.02" fill="#14161c"/><rect x="6" y="4" width="1.02" height="1.02" fill="#5b9ae0"/><rect x="7" y="4" width="1.02" height="1.02" fill="#5a67d8"/></svg><span class="pb anim"></span>';
case 'pcurl': return '<span class="pg"><b></b><b></b><b></b></span><span class="nb anim"></span><span class="pg pb anim"><b></b><b></b><b></b></span><span class="fl anim"></span>';
case 'owipe': return '<span class="pg"><b></b><b></b><b></b></span><span class="pbg anim"><span class="pg"><b></b><b></b><b></b></span></span><span class="w w1 anim"></span><span class="w w2 anim"></span>';
case 'sig4': return '<span class="s4r anim"></span><span class="s4r r2 anim"></span><span class="s4r r3 anim"></span><span class="s4d"></span>';
@@ -2781,7 +2795,7 @@ let shown=[];
// under the place label or between two states). Nothing here runs without reduced motion.
const STILL={
cover:.1,curtain:.6,kinetic:.25,carousel:.1,typewriter:.55,textclip:.7,svgpath:.7,smoke:.3,leak:.7,
- flash:.41,blurpage:.2,toggle:.7,shake:.8,hideheader:.72,hilite:.7,splitflap:.7,handwrite:.75,tparticles:.36,circlerev:.25,owipe:.165,pcurl:.44,cubepage:.3,reorder:.4,ascii:.2,phys2d:.6,shatter:.15,izoom:.02
+ flash:.41,blurpage:.2,toggle:.7,shake:.8,hideheader:.72,hilite:.7,splitflap:.7,handwrite:.75,tparticles:.36,circlerev:.25,owipe:.165,pcurl:.44,cubepage:.3,reorder:.4,ascii:.2,phys2d:.6,shatter:.15,izoom:.02,pixelate:.34
};
function hold(card){
const anims=card.querySelector('.pv').getAnimations({subtree:true});
diff --git a/llms.txt b/llms.txt
index 6f39a989..f47257ac 100644
--- a/llms.txt
+++ b/llms.txt
@@ -1,8 +1,8 @@
# Animation Handbook
-> 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.
+> A visual reference of 168 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 167 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 168 prompts and settings at once, install the Agent Skill: `npx skills add matinmonshizadeh/animation-handbook`.
## Scroll-Based
@@ -70,6 +70,7 @@ Each page plays one technique live and gives a ready-made prompt that describes
- [Overlay Wipe](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/overlay-wipe/): A colored panel sweeps over the page as it changes. Best for portfolio sites.
- [Page Curl](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/page-curl/): The page peels back from its corner like paper. Best for digital magazines.
- [Cube Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/cube-transition/): The pages sit on a cube that turns to show the next. Best for photo stories.
+- [Pixelate Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/pixelate-transition/): The page breaks into big pixels, then sharpens into the next. Best for galleries.
## Micro-Interactions
@@ -199,10 +200,10 @@ 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 167 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 168 in one list, with what each does and where it goes, and an index by place
- [references/01-scroll-based.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/01-scroll-based.md): the 27 Scroll-Based entries, each with its prompt and its settings, with the demo's values
- [references/02-entrance-and-exit.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/02-entrance-and-exit.md): the 15 Entrance & Exit entries, each with its prompt and its settings, with the demo's values
-- [references/03-page-transitions.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/03-page-transitions.md): the 16 Page Transitions entries, each with its prompt and its settings, with the demo's values
+- [references/03-page-transitions.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/03-page-transitions.md): the 17 Page Transitions entries, each with its prompt and its settings, with the demo's values
- [references/04-micro-interactions.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/04-micro-interactions.md): the 41 Micro-Interactions entries, each with its prompt and its settings, with the demo's values
- [references/05-text-typography.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/05-text-typography.md): the 19 Text & Typography entries, each with its prompt and its settings, with the demo's values
- [references/06-3d-advanced.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/references/06-3d-advanced.md): the 26 3D & Advanced entries, each with its prompt and its settings, with the demo's values
diff --git a/og-image.png b/og-image.png
index cf2e4897..2f59c586 100644
Binary files a/og-image.png and b/og-image.png differ
diff --git a/sitemap.xml b/sitemap.xml
index dad998c3..7735beb8 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -60,6 +60,7 @@
<url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/overlay-wipe/</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/page-curl/</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/cube-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/pixelate-transition/</loc><lastmod>2026-10-15</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>
<url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/hover-state/</loc><lastmod>2026-10-15</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>
<url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/click-ripple/</loc><lastmod>2026-10-15</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>
<url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/focus-ring/</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 4c80c8e6..28d43607 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 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.
+description: Builds web animations from Animation Handbook, a set of 168 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 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.
+[Animation Handbook](https://matinmonshizadeh.github.io/animation-handbook/) is a free reference of 168 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,10 +36,10 @@ 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 167 in one list, grouped by category, with an index by place.
+- [references/catalog.md](references/catalog.md): all 168 in one list, grouped by category, with an index by place.
- [references/01-scroll-based.md](references/01-scroll-based.md): Scroll-Based, 27 animations. Animations driven by scroll position — parallax, sticky, scrub, snap, and storytelling.
- [references/02-entrance-and-exit.md](references/02-entrance-and-exit.md): Entrance & Exit, 15 animations. Element-level animations for arriving and departing — fades, slides, reveals, flips, and text staggers.
-- [references/03-page-transitions.md](references/03-page-transitions.md): Page Transitions, 16 animations. Full-page transitions between routes or views — crossfades, slides, portals, morphs, and the View Transitions API.
+- [references/03-page-transitions.md](references/03-page-transitions.md): Page Transitions, 17 animations. Full-page transitions between routes or views — crossfades, slides, portals, morphs, and the View Transitions API.
- [references/04-micro-interactions.md](references/04-micro-interactions.md): Micro-Interactions, 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.
- [references/06-3d-advanced.md](references/06-3d-advanced.md): 3D & Advanced, 26 animations. WebGL, shaders, particles, 3D transforms, simulations, and other heavier effects.
diff --git a/skills/animation-handbook/references/03-page-transitions.md b/skills/animation-handbook/references/03-page-transitions.md
index 29aec71e..22eaa52d 100644
--- a/skills/animation-handbook/references/03-page-transitions.md
+++ b/skills/animation-handbook/references/03-page-transitions.md
@@ -1,6 +1,6 @@
# 03 · Page Transitions
-Full-page transitions between routes or views — crossfades, slides, portals, morphs, and the View Transitions API. 16 animations from Animation Handbook, in the home page's order. Each entry gives the live demo, how it runs, what it is good for and what to avoid it on, the prompt from its page word for word, and its settings with what each does and the demo's values.
+Full-page transitions between routes or views — crossfades, slides, portals, morphs, and the View Transitions API. 17 animations from Animation Handbook, in the home page's order. Each entry gives the live demo, how it runs, what it is good for and what to avoid it on, the prompt from its page word for word, and its settings with what each does and the demo's values.
## Contents
@@ -20,6 +20,7 @@ Full-page transitions between routes or views — crossfades, slides, portals, m
- [Overlay Wipe](#overlay-wipe)
- [Page Curl](#page-curl)
- [Cube Transition](#cube-transition)
+- [Pixelate Transition](#pixelate-transition)
## View Transitions API
@@ -327,3 +328,22 @@ Add a cube transition to [the pages or slides you want to switch between]. Treat
- Turn direction: **Sideways** · Up and down. Sideways turns around a vertical line, a later page coming in from the right; up and down turns around a horizontal line, a later page coming in from below.
- Speed: Slow · **Normal** · Fast. How long the cube takes to turn: slow is 1100ms, normal 750ms and fast 500ms.
- Depth: Shallow · **Normal** · Deep. How close the viewer is to the cube: shallow puts them 3.2 sides away, normal 1.6 and deep 0.9, so the near edge looms larger.
+
+## Pixelate Transition
+
+The page breaks into big pixels, then sharpens into the next. Best for galleries.
+
+- Live demo: https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/pixelate-transition/
+- How it runs: reacts to the visitor
+- Good for: Photo galleries · Game and retro sites · Slideshows
+- Avoid on: Everyday navigation · Text-heavy pages
+
+**Prompt**
+
+Add a pixelate transition to [the pictures or views you switch between]. When the visitor moves to the next one, break the current picture into square blocks that grow larger, swap to the new picture while the blocks are at their largest, then shrink the blocks until the new picture is sharp again. Make each block one flat color by drawing the picture very small on a canvas and scaling it back up with smoothing turned off. Keep the page names and buttons outside the pixelated area so they stay readable, and draw only while a change runs. If the visitor has reduced motion turned on, use a short, plain fade instead. Match the settings listed below.
+
+**Settings** (the choice in bold is where the demo starts; each line ends with what the setting does, with the demo's values):
+
+- Block size: Small · **Medium** · Large. How big the squares are at the middle of a change: small is 8 pixels, medium 16 and large 28.
+- Speed: Slow · **Normal** · Fast. How long a change takes: slow is 1.2 seconds, normal 0.8 seconds and fast 0.5 seconds.
+- How the blocks change: **Smoothly** · In steps. Smoothly grows and shrinks the blocks evenly; in steps holds them at a quarter, a half, three quarters and the full size in turn.
diff --git a/skills/animation-handbook/references/catalog.md b/skills/animation-handbook/references/catalog.md
index f9d83459..7111846c 100644
--- a/skills/animation-handbook/references/catalog.md
+++ b/skills/animation-handbook/references/catalog.md
@@ -1,6 +1,6 @@
# Catalog
-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.
+All 168 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)
@@ -58,7 +58,7 @@ Element-level animations for arriving and departing — fades, slides, reveals,
## 03 · Page Transitions
-Full-page transitions between routes or views — crossfades, slides, portals, morphs, and the View Transitions API. 16 animations, in [03-page-transitions.md](03-page-transitions.md).
+Full-page transitions between routes or views — crossfades, slides, portals, morphs, and the View Transitions API. 17 animations, in [03-page-transitions.md](03-page-transitions.md).
- [View Transitions API](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/view-transitions-api/): The browser animates the change between two pages for you. Best for web apps. Places: Page changes.
- [Shared Element Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/shared-element-transition/): A picture grows from the list into the next page's header. Best for galleries. Places: Page changes, Images & cards.
@@ -76,6 +76,7 @@ Full-page transitions between routes or views — crossfades, slides, portals, m
- [Overlay Wipe](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/overlay-wipe/): A colored panel sweeps over the page as it changes. Best for portfolio sites. Places: Page changes.
- [Page Curl](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/page-curl/): The page peels back from its corner like paper. Best for digital magazines. Places: Page changes, Images & cards.
- [Cube Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/cube-transition/): The pages sit on a cube that turns to show the next. Best for photo stories. Places: Page changes, Images & cards.
+- [Pixelate Transition](https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/pixelate-transition/): The page breaks into big pixels, then sharpens into the next. Best for galleries. Places: Page changes, Images & cards.
## 04 · Micro-Interactions
@@ -212,10 +213,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** (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
+- **Images & cards** (46): Parallax Depth-of-Field, Parallax Scrolling, Reverse-Scrolling Columns, Stacking Cards, Snap Scrolling, Reveal on Scroll, Stagger Reveal, Horizontal Scroll, Zoom Into Image, Scroll Image Sequence, Scroll Velocity Skew, Clip-Path Reveal, Blur In, Flip In, Shatter Effect, Ink Spread Reveal, Shared Element Transition, Blur Transition, Dissolve Transition, FLIP Technique, Page Curl, Cube Transition, Pixelate Transition, Hover State Animation, Skeleton Loader, Modal Expand, Swipe to Dismiss, Animated Gradient Border, Spotlight Hover Glow, Image Trail, 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** (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
+- **Page changes** (18): Shatter Effect, View Transitions API, Shared Element Transition, Morph Transition, Crossfade Transition, Slide Transition, Zoom Transition, Flash / Light Leak Transition, Blur Transition, Elastic Transition, Portal / Tunnel Zoom, Dissolve Transition, FLIP Technique, Circle Reveal, Overlay Wipe, Page Curl, Cube Transition, Pixelate Transition