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.
HTML ai-promptsanimationcss-animationsfrontendgithub-pagesjavascriptmicrointeractionsmotion-designno-dependenciesreferencescroll-animationui-animationweb-animationweb-developmentwebgl
feat: Gooey Menu (04.40)
matin350868f3a979
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.ymlindex b8d170bd..d154d8bf 100644--- a/.github/ISSUE_TEMPLATE/config.yml+++ b/.github/ISSUE_TEMPLATE/config.yml@@ -2,4 +2,4 @@ blank_issues_enabled: truecontact_links:- name: Browse the live handbookurl: https://matinmonshizadeh.github.io/animation-handbook/- about: See all 158 techniques running before filing an issue.+ about: See all 159 techniques running before filing an issue.diff --git a/README.md b/README.mdindex 7cfae9a2..922a99fe 100644--- a/README.md+++ b/README.md@@ -1,14 +1,14 @@<div align="center">-<a href="https://matinmonshizadeh.github.io/animation-handbook/"><img src="og-image.png" alt="Animation Handbook — 158 web animation techniques with live demos" width="820"></a>+<a href="https://matinmonshizadeh.github.io/animation-handbook/"><img src="og-image.png" alt="Animation Handbook — 159 web animation techniques with live demos" width="820"></a># Animation Handbook-**A visual reference of 158 web animation techniques — every entry is a live, dependency-free demo you can open in the browser and read how it works.**+**A visual reference of 159 web animation techniques — every entry is a live, dependency-free demo you can open in the browser and read how it works.**[**Open the live handbook →**](https://matinmonshizadeh.github.io/animation-handbook/)-[](https://matinmonshizadeh.github.io/animation-handbook/) [](https://github.com/matinmonshizadeh/animation-handbook/stargazers) [](LICENSE)   +[](https://matinmonshizadeh.github.io/animation-handbook/) [](https://github.com/matinmonshizadeh/animation-handbook/stargazers) [](LICENSE)   </div>@@ -37,14 +37,14 @@ Everything is plain HTML, CSS, and JavaScript: no build step, no frameworks, no| 01 | [Scroll-Based](#01) | 27 | Animations driven by scroll position — parallax, sticky, scrub, snap, and narrative storytelling. || 02 | [Entrance & Exit](#02) | 13 | Element-level animations for arriving and departing — fades, slides, reveals, flips, and text staggers. || 03 | [Page Transitions](#03) | 16 | Full-page transitions between routes or views — crossfades, slides, portals, morphs, and the browser-native API. |-| 04 | [Micro-Interactions](#04) | 38 | Short, user-triggered animations — hover, click, focus, loading states, and UI feedback patterns. |+| 04 | [Micro-Interactions](#04) | 39 | Short, user-triggered animations — hover, click, focus, loading states, and UI feedback patterns. || 05 | [Text & Typography](#05) | 18 | Animations specifically for type — kinetic motion, character-level effects, gradient flows, and word transformations. || 06 | [3D & Advanced](#06) | 23 | WebGL, shaders, particles, 3D transforms, and the performance-sensitive effects that push the browser's limits. || 07 | [Ambient & Background](#07) | 23 | Passive, looping effects that hold visual interest without demanding attention — gradients, particles, grain, and glows. |## Full catalog-All 158 techniques, each linked to its live demo.+All 159 techniques, each linked to its live demo.<a id="01"></a>@@ -137,7 +137,7 @@ All 158 techniques, each linked to its live demo.<a id="04"></a>-### 04 · Micro-Interactions · 38 techniques+### 04 · Micro-Interactions · 39 techniques<sub>Short, user-triggered animations — hover, click, focus, loading states, and UI feedback patterns.</sub>@@ -181,6 +181,7 @@ All 158 techniques, each linked to its live demo.- **[Hold to Confirm](animations/04-micro-interactions/hold-to-confirm/)** — A button fills up while you hold it and acts only once it is full. Best for delete buttons.- **[Expanding Search](animations/04-micro-interactions/expanding-search/)** — A search icon opens into a field, then closes when done. Best for toolbars.- **[Button Loading States](animations/04-micro-interactions/button-loading-states/)** — The button becomes a spinner, then a tick or a cross. Best for Save buttons.+- **[Gooey Menu](animations/04-micro-interactions/gooey-menu/)** — Small buttons ooze out of a round button like liquid. Best for quick actions.</details>diff --git a/animations/04-micro-interactions/README.md b/animations/04-micro-interactions/README.mdindex 6ece8893..12982306 100644--- a/animations/04-micro-interactions/README.md+++ b/animations/04-micro-interactions/README.md@@ -44,6 +44,7 @@ Short, user-triggered animations that provide feedback, confirm actions, and com| [Hold to Confirm](hold-to-confirm/) | A button fills up while you hold it and acts only once it is full. Best for delete buttons. || [Expanding Search](expanding-search/) | A search icon opens into a field, then closes when done. Best for toolbars. || [Button Loading States](button-loading-states/) | The button becomes a spinner, then a tick or a cross. Best for Save buttons. |+| [Gooey Menu](gooey-menu/) | Small buttons ooze out of a round button like liquid. Best for quick actions. |## Key conceptsdiff --git a/animations/04-micro-interactions/gooey-menu/README.md b/animations/04-micro-interactions/gooey-menu/README.mdnew file mode 100644index 00000000..1b4638ce--- /dev/null+++ b/animations/04-micro-interactions/gooey-menu/README.md@@ -0,0 +1,81 @@+# Gooey Menu++## What it is+A gooey menu is a round button that lets smaller buttons ooze out of it like drops of liquid, and pulls them back in when it is pressed again. The drops are plain circles moving apart; a filter blurs them and then sharpens the blurred edge again, so circles that come close melt into one shape and a neck of liquid stretches between them until it snaps.++## When to use it+- Floating action buttons in mobile apps that hold three or four quick actions+- Share menus (share, like, save) on posts, photos and products+- Playful brands, games and portfolios where a little personality fits+- Tools that should stay folded away until they are needed++## How it works+The stage has two layers. The lower one holds only circles of one color: a big one under the round button and, for each small button, a circle and a smaller "tail" circle. This layer, and nothing else, goes through an SVG filter:++```html+<svg width="0" height="0"><filter id="goo" color-interpolation-filters="sRGB">+ <feGaussianBlur stdDeviation="9"/>+ <feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 20 -9"/>+</filter></svg>+```++The blur spreads each circle's edge into a soft ramp. The color matrix keeps the color, multiplies the alpha by 20 and subtracts 9: where the blurred alpha is under about one half the pixel turns clear, and over it solid, so the soft edge snaps back to a hard one. Two circles that come close add their soft edges together past that line and read as one shape with a smooth neck; as they part, the neck thins and snaps. A bigger blur (How gooey) lets them reach farther. The demo scales the blur with the size of the menu, takes a fifth off it on phones, and for a bigger blur raises the 20 to 2.2 times the blur, still cutting at an alpha of 0.475, so the edge stays sharp.++The circles move with transitions on `transform` only:++```css+.goo { filter: url(#goo); } /* only as big as the open menu: the filter's cost grows with its area */+.goo i { border-radius: 50%; background: #ff9d5c; }+.blob { transform: translate(0, 0) scale(.5); /* closed: waiting inside the big circle */+ transition: transform 480ms cubic-bezier(.55, -.25, .75, .25) var(--back); }+.open .blob { transform: translate(var(--x), var(--y)) scale(1);+ transition: transform 600ms cubic-bezier(.3, 1.4, .55, 1) var(--out); }+.tail { transform: translate(0, 0) scale(.4);+ transition: transform 570ms cubic-bezier(.55, -.25, .75, .25) calc(var(--back) + 72ms); }+.open .tail { transform: translate(var(--x), var(--y)) scale(.6);+ transition: transform 810ms cubic-bezier(.25, .8, .3, 1) calc(var(--out) + 60ms); }+```++Opening, each circle pops a little past its place and settles (the curve's 1.4 goes above 1), while its tail follows later and slower, so for a moment the round button, the tail and the circle form one stretched drop. Closing, the circle first leans out a little (the curve's −0.25), then is pulled in faster and faster with its tail trailing behind. `--out` starts each circle 60ms after the one before, and `--back` runs the other way when closing, so the drops leave and return one after another. The big circle swells once each time with a short keyframe animation.++The upper layer holds the real buttons: a see-through round button whose plus turns into a cross, and three small buttons with icons, each moving with the same transform as its circle. The icons stay sharp because they are not in the filter, and the keyboard reaches them. Where each one settles comes from the stage's size: the layouts are written in units of a 64-unit round button, 50-unit small buttons and 20-unit gaps, and one unit is the stage's shorter side, less 28px, divided by 274 (the longest layout), kept between 0.88px and 1.2px so a small button is never under 44px. The round button sits where the open menu is centered, and the filtered layer covers the open menu and 22 units around it.++```js+function setOpen(on) {+ gm.classList.toggle('open', on);+ main.setAttribute('aria-expanded', String(on));+ main.setAttribute('aria-label', on ? 'Close menu' : 'Open menu');+}+main.addEventListener('click', () => setOpen(!isOpen()));+gm.addEventListener('keydown', e => { // Escape, from any of its buttons+ if (e.key === 'Escape' && isOpen()) { setOpen(false); main.focus({ preventScroll: true }); }+});+```++Closed, the small buttons are hidden (`visibility: hidden` once the closing has ended), so Tab skips them. Pressing one does its job (here a short message says Shared, Liked or Saved, and a status region reads it out), closes the menu and gives the focus back to the round button; a press beside the menu closes it too. Show me presses the round button and then Like without moving the focus, and a press, key, wheel, touch or Tab into the stage stops it. Under reduced motion the filter and the tails are off and nothing travels: the small buttons fade in and out at their places.++## Key parameters+| Parameter | Default | Effect |+|-----------|---------|--------|+| Layout | Arc | Row puts the small buttons in a line beside the round one; Arc fans them out above it; Column stacks them above it |+| How gooey | Medium | How much the circles are blurred before the edge is sharpened: low is 5, medium 9 and high 13 (times the menu's scale, and a fifth less on phones); higher keeps the drops joined for longer |+| Speed | Normal | How long a small button takes to pop out: slow is 950ms, normal 600ms and fast 380ms, each starting 90, 60 or 40ms after the one before |+| Shows the plain circles | Off | Turns the filter off and draws each circle as a ring, to show what moves underneath; it is a way to look, so it is not added to the copied prompt |+| Button color | Orange | The color of the circles; the icons stay dark |++## Production notes+- **Keep the filter small**: the browser blurs every pixel of the filtered layer on every frame that something in it moves. Give the filter a layer the size of the open menu, never the whole page, and keep icons and text off it. The demo sizes the layer to the open menu (to both menus while the layout changes) and blurs a fifth less on phones (screens up to 600px wide or 500px tall). At rest nothing is filtered again.+- **Safari**: SVG filters on HTML elements work in Chrome, Firefox and Safari, but they can be slower in Safari. Test on an iPhone; on slow phones lower the blur or use fewer drops.+- **Sharp icons**: an icon inside the filtered layer would be blurred and cut into a blob. Put icons on a layer above, as here, or name the color matrix's result (`result="goo"`) and end the filter with `<feComposite in="SourceGraphic" in2="goo" operator="atop"/>`, so the original drawing is painted back over the goo.+- **One color**: `color-interpolation-filters="sRGB"` keeps the color exact (the default, linearRGB, shifts it at the edges). A gradient on separate circles breaks at every neck, so give the whole layer one fill.+- **The cut**: a filtered circle ends a little inside its real size, more so with a bigger blur. Keep anything drawn on the buttons, such as a sheen or a border, a few pixels inside the edge, or it shows as a thin ring.+- **Accessibility**: the round button is a real `<button>` with `aria-expanded`, `aria-controls` and a label that says Open menu or Close menu; every small button has a name; closed ones are out of the Tab order; Escape closes the menu and returns the focus; the result of a choice is announced.+- **GSAP**: `gsap.to(blobs, { x: i => places[i][0], y: i => places[i][1], scale: 1, duration: 0.6, stagger: 0.06, ease: "back.out(1.7)" })`, and the same on the buttons; the filter stays on its layer.+- **Framer Motion**: give each circle `<motion.i animate={open ? { x, y, scale: 1 } : { x: 0, y: 0, scale: 0.5 }} transition={{ type: "spring", stiffness: 400, damping: 18, delay: i * 0.06 }} />` inside a `<div style={{ filter: "url(#goo)" }}>`.++## See also+- [Morphing Blob](../../06-3d-advanced/morphing-blob/) — the same goo filter on circles that drift by themselves+- [Hamburger Menu Toggle](../hamburger-menu-toggle/) — three lines turn into an X as the menu opens+- [Expanding Search](../expanding-search/) — a search icon opens into a field, then closes when done+- [Modal Expand](../modal-expand/) — a window grows out of the button you pressed+- [Button Press Scale](../button-press-scale/) — the button shrinks while it is presseddiff --git a/animations/04-micro-interactions/gooey-menu/index.html b/animations/04-micro-interactions/gooey-menu/index.htmlnew file mode 100644index 00000000..45fbbc94--- /dev/null+++ b/animations/04-micro-interactions/gooey-menu/index.html@@ -0,0 +1,304 @@+<!DOCTYPE html>+<html lang="en">+<head>+ <meta charset="UTF-8">+ <meta name="viewport" content="width=device-width, initial-scale=1.0">+ <title>Gooey Menu — Animation Handbook</title>+ <meta name="description" content="Small buttons ooze out of a round button like liquid. Best for quick actions.">+ <link rel="canonical" href="https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/gooey-menu/">+ <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="Gooey Menu — Animation Handbook">+ <meta property="og:description" content="Small buttons ooze out of a round button like liquid. Best for quick actions.">+ <meta property="og:url" content="https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/gooey-menu/">+ <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="Gooey Menu — Animation Handbook">+ <meta name="twitter:description" content="Small buttons ooze out of a round button like liquid. Best for quick actions.">+ <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": "Gooey Menu", "name": "Gooey Menu", "description": "Small buttons ooze out of a round button like liquid. Best for quick actions.", "url": "https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/gooey-menu/", "inLanguage": "en", "articleSection": "Micro-Interactions", "isPartOf": {"@type": "WebSite", "name": "Animation Handbook", "url": "https://matinmonshizadeh.github.io/animation-handbook/"}, "author": {"@type": "Person", "name": "matinmonshizadeh"}, "keywords": "web animation, CSS animation, Micro-Interactions, Gooey Menu"}</script>+ <style>+ :root{--ui-accent:#ff9d5c;--goo:#ff9d5c;--dur:600ms;--stag:60ms;--pop:cubic-bezier(.3,1.4,.55,1);--pull:cubic-bezier(.55,-.25,.75,.25)}+ *,*::before,*::after{box-sizing:border-box;margin:0;padding:0}+ /* A soft light in the liquid's color, brighter while the menu is open */+ .stage{position:relative;background:#0b0b0d}.stage:has(.open)::before{opacity:1}+ .stage::before{content:"";position:absolute;inset:0;background:radial-gradient(circle,color-mix(in srgb,var(--goo) 16%,transparent),transparent 58%);opacity:.5;transition:opacity var(--dur);pointer-events:none}+ /* The menu hangs from the round button's center; the script sets every size and offset (px) from the stage's size. The goo layer+ holds only plain circles, is as big as the open menu and goes through the filter #gm-f. */+ .gm{position:absolute;left:50%;top:50%;transform:translate(var(--mx),var(--my));transition:transform var(--dur) cubic-bezier(.65,0,.35,1)}+ .gm-goo{position:absolute;left:var(--bx);top:var(--by);width:var(--bw);height:var(--bh);filter:url(#gm-f)}+ .gm-o{position:absolute;left:calc(var(--bx)*-1);top:calc(var(--by)*-1)}+ .gm-goo i,.gm-main,.gm-it{position:absolute;--h:calc(var(--s)/-2);left:var(--h);top:var(--h);width:var(--s);height:var(--s);border-radius:50%}+ .gm-mb,.gm-main{--s:var(--d);transition:scale .2s}+ .gm-goo i{background:var(--goo)}+ .gm-b,.gm-t,.gm-it{--out:calc(var(--i)*var(--stag));--back:calc((2 - var(--i))*var(--stag))}+ /* Closed, each small circle waits inside the big one; open, it pops a little past its place (--x, --y) and settles while its tail+ follows later and slower, so a neck of liquid stretches between them. Closing pulls them back in, the last one first. */+ .gm-b,.gm-it{transform:translate(0,0) scale(.5)}+ .gm-b{transition:transform calc(var(--dur)*.8) var(--pull) var(--back),scale .2s}+ .gm-t{transform:translate(0,0) scale(.4);transition:transform calc(var(--dur)*.95) var(--pull) calc(var(--back) + var(--dur)*.12)}+ .open :is(.gm-b,.gm-it){transform:translate(var(--x),var(--y)) scale(1)}+ .open .gm-b{transition:transform var(--dur) var(--pop) var(--out),scale .2s}+ .open .gm-t{transform:translate(var(--x),var(--y)) scale(.6);transition:transform calc(var(--dur)*1.35) cubic-bezier(.25,.8,.3,1) calc(var(--out) + var(--dur)*.1)}+ .gm-mb.p1{animation:gm-p1 var(--dur)}.gm-mb.p2{animation:gm-p2 var(--dur)}+ @keyframes gm-p1{40%{transform:scale(1.1)}75%{transform:scale(.97)}}@keyframes gm-p2{40%{transform:scale(1.1)}75%{transform:scale(.97)}}+ /* The real buttons lie over the circles: see-through, with a dark icon and a sheen kept 3px inside the edge (the filtered circle+ ends a little inside it), each moving as its circle does */+ .gm-main,.gm-it{display:grid;place-items:center;padding:3px;border:0;color:#0b0b0d;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;+ background:radial-gradient(circle closest-side at 40% 34%,rgba(255,255,255,.42),rgba(255,255,255,0)) content-box}+ .gm-main{z-index:1}+ .gm svg{width:42%;height:42%;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}+ .gm-main svg{transition:transform var(--dur) var(--pop)}+ .open .gm-main svg{transform:rotate(135deg)}+ .gm-it{opacity:0;visibility:hidden;pointer-events:none;transition:transform calc(var(--dur)*.8) var(--pull) var(--back),opacity calc(var(--dur)*.3) var(--back),visibility 0s calc(var(--dur) + var(--stag)*2),scale .2s}+ .open .gm-it{opacity:1;visibility:visible;pointer-events:auto;transition:transform var(--dur) var(--pop) var(--out),opacity calc(var(--dur)*.4) calc(var(--out) + var(--dur)*.3),visibility 0s,scale .2s}+ @media(hover:hover){.gm:has([data-k="m"]:hover) [data-k="m"],.gm:has([data-k="0"]:hover) [data-k="0"],.gm:has([data-k="1"]:hover) [data-k="1"],.gm:has([data-k="2"]:hover) [data-k="2"]{scale:1.08}}+ .gm:has([data-k="m"]:is(.down,:active)) [data-k="m"],.gm:has([data-k="0"]:is(.down,:active)) [data-k="0"],.gm:has([data-k="1"]:is(.down,:active)) [data-k="1"],.gm:has([data-k="2"]:is(.down,:active)) [data-k="2"]{scale:.9}+ .hb-page .stage :is(.gm-main,.gm-it):focus-visible{outline:2px solid #f4f4f2;outline-offset:3px}+ /* Shows the plain circles: no filter, every circle drawn as a ring */+ .gm-xray .gm-goo{filter:none}.gm-xray :is(.gm-main,.gm-it){color:#f4f4f2}+ .gm-xray .gm-goo i{background:color-mix(in srgb,var(--goo) 28%,transparent);box-shadow:inset 0 0 0 2px var(--goo)}+ /* What a small button did, said once the buttons have mostly gone back in */+ .gm-say{position:absolute;left:50%;top:14px;display:flex;align-items:center;gap:8px;padding:7px 14px 7px 12px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:#1b1b20;+ color:#f4f4f2;font-size:14px;font-weight:600;white-space:nowrap;pointer-events:none;opacity:0;transform:translate(-50%,-6px);transition:opacity .25s,transform .25s}+ .gm-say::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--goo)}.gm-say.show{opacity:1;transform:translate(-50%,0);transition-delay:calc(var(--dur)*.6)}+ .gm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.gm-defs{position:absolute;width:0;height:0}+ .gm-still,.gm-still *{transition:none!important}+ /* Reduced motion: nothing travels. The circles and buttons wait at their places and fade in and out, with no filter and no tails. */+ @media(prefers-reduced-motion:reduce){+ .gm,.gm-main svg,.stage::before{transition:none}.gm-goo{filter:none}.gm-t{display:none}.gm-mb{animation:none!important}[data-k]{scale:none!important}+ .gm-b,.gm-it,.open :is(.gm-b,.gm-it){transform:translate(var(--x),var(--y))}+ .gm-b,.gm-it{opacity:0;transition:opacity .2s,visibility 0s .2s}.open :is(.gm-b,.gm-it){opacity:1;transition:opacity .2s}+ .gm-say,.gm-say.show{transform:translate(-50%,0);transition:opacity .25s .15s}.gm-say{transition-delay:0s}+ }+ </style>+ <link rel="stylesheet" href="../../../assets/css/demo-page.css?v=6">+ <script src="../../../assets/js/demo-page.js?v=6" 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="../button-loading-states/" rel="prev" aria-label="Previous: Button Loading States"><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>Button Loading States</span></a></span>+</nav>+<main class="hb-page">+ <header class="hb-head">+ <p class="hb-cat">04.40 · Micro-Interactions</p>+ <h1>Gooey Menu</h1>+ <p class="hb-lede">Small buttons ooze out of a round button like liquid. Best for quick actions.</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 or tap the round button to open the menu and again to close it, or press Show me.</p></div>+ </div>+ <div class="stage hb-dots" id="stage">+ <div class="gm" id="gm">+ <div class="gm-goo" aria-hidden="true"><div class="gm-o">+ <i class="gm-t" style="--i:0"></i><i class="gm-t" style="--i:1"></i><i class="gm-t" style="--i:2"></i>+ <i class="gm-b" data-k="0" style="--i:0"></i><i class="gm-b" data-k="1" style="--i:1"></i><i class="gm-b" data-k="2" style="--i:2"></i>+ <i class="gm-mb" id="gm-mb" data-k="m"></i>+ </div></div>+ <button class="gm-main" id="gm-main" type="button" data-k="m" aria-label="Open menu" aria-expanded="false" aria-controls="gm-items"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button>+ <div id="gm-items" role="group" aria-label="Quick actions">+ <button class="gm-it" type="button" data-k="0" style="--i:0" aria-label="Share" data-said="Shared"><svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><path d="m8.6 13.5 6.8 4m0-11-6.8 4"/></svg></button>+ <button class="gm-it" type="button" data-k="1" style="--i:1" aria-label="Like" data-said="Liked"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M19 14c1.5-1.5 3-3.2 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.8 0-3 .5-4.5 2-1.5-1.5-2.7-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4 3 5.5l7 7Z"/></svg></button>+ <button class="gm-it" type="button" data-k="2" style="--i:2" aria-label="Save" data-said="Saved"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2Z"/></svg></button>+ </div>+ </div>+ <p class="gm-say" id="gm-say" aria-hidden="true"></p>+ <p class="gm-sr" id="gm-sr" role="status"></p>+ <svg class="gm-defs" aria-hidden="true" focusable="false"><filter id="gm-f" color-interpolation-filters="sRGB"><feGaussianBlur id="gm-blur" stdDeviation="9"/><feColorMatrix id="gm-cm" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 20 -9"/></filter></svg>+ </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>+ <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>+ </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 try it again or press Show me.</p></div>+ </div>+ <div class="hb-settings">+ <div class="hb-setting">+ <p class="hb-setting-name" id="lay-lbl">Layout</p>+ <div class="seg" id="lay-seg" role="group" aria-labelledby="lay-lbl">+ <button type="button" data-lay="row" aria-pressed="false">Row</button>+ <button type="button" data-lay="arc" class="on" aria-pressed="true">Arc</button>+ <button type="button" data-lay="col" aria-pressed="false">Column</button>+ </div>+ <p class="hb-hint">Where the small buttons settle once they pop out.</p>+ </div>+ <div class="hb-setting">+ <p class="hb-setting-name" id="goo-lbl">How gooey</p>+ <div class="seg" id="goo-seg" role="group" aria-labelledby="goo-lbl">+ <button type="button" data-goo="5" aria-pressed="false">Low</button>+ <button type="button" data-goo="9" class="on" aria-pressed="true">Medium</button>+ <button type="button" data-goo="13" aria-pressed="false">High</button>+ </div>+ <p class="hb-hint">How far the liquid stretches before it lets go.</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="950" data-st="90" aria-pressed="false">Slow</button>+ <button type="button" data-ms="600" data-st="60" class="on" aria-pressed="true">Normal</button>+ <button type="button" data-ms="380" data-st="40" aria-pressed="false">Fast</button>+ </div>+ <p class="hb-hint">How quickly the buttons pop out and are pulled back.</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" data-hb-skip>+ <label class="hb-switch-row"><span>Shows the plain circles</span><input class="hb-switch" type="checkbox" role="switch" id="xray-tog" autocomplete="off"></label>+ <p class="hb-hint">Turns the goo off to show the circles that move underneath.</p>+ </div>+ <div class="hb-setting">+ <p class="hb-setting-name" id="color-lbl">Button color</p>+ <div class="swatches" id="color-sw" role="group" aria-labelledby="color-lbl">+ <button type="button" class="on" aria-pressed="true" aria-label="Orange" data-c="#ff9d5c" style="background:#ff9d5c"></button>+ <button type="button" aria-pressed="false" aria-label="Pink" data-c="#ff6f8b" style="background:#ff6f8b"></button>+ <button type="button" aria-pressed="false" aria-label="Purple" data-c="#d2a8ff" style="background:#d2a8ff"></button>+ <button type="button" aria-pressed="false" aria-label="Blue" data-c="#58a6ff" style="background:#58a6ff"></button>+ <button type="button" aria-pressed="false" aria-label="Green" data-c="#56d364" style="background:#56d364"></button>+ </div>+ <p class="hb-hint">The color of the liquid; the icons stay dark.</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 a gooey menu to [the round action button on your page]. Pressing it lets smaller buttons ooze out like drops of liquid and pop into place; pressing again pulls them back in. Draw plain circles of one color on a layer under the icons and run that layer through a filter that blurs it, then sharpens the blurred edge again, so circles that touch melt together. Move them only with transforms, keep the filtered layer small and blur less on phones. Make every button a real button the keyboard can reach, tell screen readers whether the menu is open, and let Escape close it. If the visitor has reduced motion turned on, fade the buttons in place without the stretch. Match the settings listed below.</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>+ </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>Quick actions</li><li>Share menus</li><li>Mobile apps</li><li>Playful brands</li></ul>+ <h3>Avoid on</h3>+ <ul class="hb-tags hb-avoid"><li>Long menus</li><li>Formal sites</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="#top">Back to top ↑</a></footer>+<script>+ const $=id=>document.getElementById(id),set=(el,name,v)=>el.style.setProperty(name,v),root=document.documentElement;+ const stage=$('stage'),gm=$('gm'),main=$('gm-main'),mb=$('gm-mb'),say=$('gm-say'),slowTog=$('slow-tog');+ const items=[...stage.querySelectorAll('.gm-it')],blobs=[...stage.querySelectorAll('.gm-b')],tails=[...stage.querySelectorAll('.gm-t')];+ const reduceMq=matchMedia('(prefers-reduced-motion:reduce)'),phoneMq=matchMedia('(max-width:600px),(max-height:500px)');+ // Where each small button settles, from the round button's center, in units of a menu with a 64-unit round button, 50-unit small+ // ones and 20-unit gaps (77 = 32 + 20 + 25 to the first, 70 = 50 + 20 to each next one; the arc's radius is 84).+ const PLACES={row:[[77,0],[147,0],[217,0]],arc:[[-72.7,-42],[0,-84],[72.7,-42]],col:[[0,-77],[0,-147],[0,-217]]};+ let lay='arc',goo=9,dur=600,stag=60,flip=false,moving=false,runTimers=[],sayTimer=0,boxTimer=0;+ // The open menu's box around the round button's center, in units: [left, right, top, bottom]+ const extent=name=>PLACES[name].reduce((b,[x,y])=>[Math.min(b[0],x-25),Math.max(b[1],x+25),Math.min(b[2],y-25),Math.max(b[3],y+25)],[-32,32,-32,32]);+ // A unit is k px: the longest layout (274 units) fits the stage with 14px to spare, from 0.88 (44px small buttons) to 1.2. The round button+ // sits where the open menu is centered. The filter works on the open menu's box and 22 units around it (on all layouts' boxes while the+ // buttons move to a new layout). The blur grows with the menu, a fifth lighter on phones; a bigger one gets a steeper alpha (m).+ function place(prev){+ const k=Math.min(1.2,Math.max(.88,(Math.min(stage.clientWidth,stage.clientHeight)-28)/274)),px=v=>(v*k).toFixed(1)+'px';+ if(prev&&prev!==lay){moving=true;clearTimeout(boxTimer);boxTimer=setTimeout(()=>{moving=false;place()},travel(1.35)*(slowTog.checked?3:1)+200)}+ const e=extent(lay),blur=goo*k*(phoneMq.matches?.8:1),m=Math.max(20,blur*2.2);+ const r=moving?Object.keys(PLACES).map(extent).reduce((a,c)=>[Math.min(a[0],c[0]),Math.max(a[1],c[1]),Math.min(a[2],c[2]),Math.max(a[3],c[3])]):e;+ set(gm,'--d',px(64));set(gm,'--s',px(50));set(gm,'--mx',px(-(e[0]+e[1])/2));set(gm,'--my',px(-(e[2]+e[3])/2));+ set(gm,'--bx',px(r[0]-22));set(gm,'--by',px(r[2]-22));set(gm,'--bw',px(r[1]-r[0]+44));set(gm,'--bh',px(r[3]-r[2]+44));+ PLACES[lay].forEach(([x,y],i)=>[items[i],blobs[i],tails[i]].forEach(el=>{set(el,'--x',px(x));set(el,'--y',px(y))}));+ $('gm-blur').setAttribute('stdDeviation',blur.toFixed(1));+ $('gm-cm').setAttribute('values','1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 '+m.toFixed(1)+' '+(.5-.475*m).toFixed(2));+ }+ const isOpen=()=>gm.classList.contains('open');+ // The round button and Show me open and close the menu here; the big circle swells once each time (p1 and p2 restart it)+ function setOpen(on){+ if(isOpen()===on)return;+ gm.classList.toggle('open',on);main.setAttribute('aria-expanded',String(on));main.setAttribute('aria-label',on?'Close menu':'Open menu');+ mb.classList.remove('p1','p2');mb.classList.add((flip=!flip)?'p1':'p2');if(on)hideSay();+ }+ function hideSay(){clearTimeout(sayTimer);say.classList.remove('show')}+ // A small button does its job (here it only says so) and the menu closes; the focus, if it was on that button, goes back to the round one+ function choose(i,fromRun){+ setOpen(false);+ say.textContent=items[i].dataset.said;say.classList.add('show');clearTimeout(sayTimer);sayTimer=setTimeout(hideSay,1300);+ if(fromRun)return;+ $('gm-sr').textContent=items[i].dataset.said+'.';if(document.activeElement===items[i])main.focus({preventScroll:true});+ }+ main.addEventListener('click',()=>setOpen(!isOpen()));+ items.forEach((b,i)=>b.addEventListener('click',()=>choose(i,false)));+ // Escape closes the menu from any of its buttons and gives the focus back to the round one; a press beside the menu closes it too+ gm.addEventListener('keydown',e=>{if(e.key==='Escape'&&isOpen()){e.preventDefault();setOpen(false);main.focus({preventScroll:true})}});+ stage.addEventListener('click',e=>{if(isOpen()&&!e.target.closest('.gm-main,.gm-it'))setOpen(false)});+ // Show me: one run at a time. later(fn, move, hold) waits move*(slow?3:1) + hold ms: Slow motion triples the movement, never the hold.+ function later(fn,move,hold){const id=setTimeout(()=>{runTimers=runTimers.filter(t=>t!==id);fn()},move*(slowTog.checked?3:1)+hold);runTimers.push(id)}+ const running=()=>runTimers.length>0;+ function stopRun(){runTimers.forEach(clearTimeout);runTimers=[];stage.querySelectorAll('.down').forEach(el=>el.classList.remove('down'))}+ // The time the circles take to arrive: the last tail starts two staggers late and takes f x Speed (a short fade under reduced motion)+ const travel=f=>reduceMq.matches?200:dur*f+2*stag;+ // A run starts closed, put there without animating: the transitions go off, the menu closes, a reflow makes it stick, they come back+ function toRest(){+ const els=[gm,main,...stage.querySelectorAll('.gm-goo i,.gm-it,.gm svg,.gm-say')];+ els.forEach(el=>el.style.setProperty('transition','none','important'));+ gm.classList.remove('open');main.setAttribute('aria-expanded','false');main.setAttribute('aria-label','Open menu');+ mb.classList.remove('p1','p2');hideSay();void stage.offsetWidth;+ els.forEach(el=>el.style.removeProperty('transition'));+ }+ // The round button is pressed at 250ms and opens the menu at 370ms. Once the drops are in place and 600ms have passed, Like is+ // pressed, the menu closes and says Liked. At Normal speed the stage is back at rest at about 3.6 s.+ $('btn-demo').addEventListener('click',()=>{+ stopRun();toRest();+ later(()=>main.classList.add('down'),0,250);+ later(()=>{main.classList.remove('down');setOpen(true)},0,370);+ later(()=>items[1].classList.add('down'),travel(1.35),970);+ later(()=>{items[1].classList.remove('down');choose(1,true)},travel(1.35),1120);+ });+ // The visitor pressed, typed, scrolled, touched or tabbed into the stage: the run stops and the menu stays as it is+ document.addEventListener('hb:input',()=>{if(running())stopRun()});+ stage.addEventListener('focusin',()=>{if(running())stopRun()});+ 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);+ }));+ }+ choices('lay-seg',d=>{const prev=lay;lay=d.lay;place(prev)});+ choices('goo-seg',d=>{goo=+d.goo;place()});+ choices('speed-seg',d=>{dur=+d.ms;stag=+d.st;set(root,'--dur',dur+'ms');set(root,'--stag',stag+'ms')});+ choices('color-sw',d=>set(root,'--goo',d.c));+ $('xray-tog').addEventListener('change',e=>stage.classList.toggle('gm-xray',e.target.checked));+ // The first sizes go in without animating; later ones (a turned phone, a resized window) glide+ stage.classList.add('gm-still');place();void stage.offsetWidth;stage.classList.remove('gm-still');+ new ResizeObserver(()=>place()).observe(stage);+ phoneMq.addEventListener('change',()=>place());+</script>+</body>+</html>diff --git a/animations/06-3d-advanced/morphing-blob/README.md b/animations/06-3d-advanced/morphing-blob/README.mdindex 9638e063..a1ad3e1e 100644--- a/animations/06-3d-advanced/morphing-blob/README.md+++ b/animations/06-3d-advanced/morphing-blob/README.md@@ -90,3 +90,4 @@ shape of the stage.- [Noise-Based Motion](../noise-based-motion/) — smooth noise ripples a blob's outline- [SVG Path Animation](../svg-path-animation/) — lines that draw themselves- [Ray Marching / SDF Scene](../ray-marching-sdf/) — shapes that melt together in 3D+- [Gooey Menu](../../04-micro-interactions/gooey-menu/) — the same goo on buttons that ooze out of a round buttondiff --git a/docs/launch-kit.md b/docs/launch-kit.mdindex dda098f3..0b3cd1ea 100644--- a/docs/launch-kit.md+++ b/docs/launch-kit.md@@ -10,7 +10,7 @@ quality is already there; this is the distribution layer. Work top to bottom.GitHub → repo **Settings** (or the ⚙️ next to "About" on the repo home page):**Description:**-> 158 web animation techniques, each a live demo with plain settings and a ready-made prompt for your AI assistant. No dependencies, no build step.+> 159 web animation techniques, each a live demo with plain settings and a ready-made prompt for your AI assistant. No dependencies, no build step.**Website:** `https://matinmonshizadeh.github.io/animation-handbook/`@@ -25,7 +25,7 @@ With the GitHub CLI (`gh`), this is one command:```bashgh repo edit matinmonshizadeh/animation-handbook \- --description "158 web animation techniques, each a live demo with plain settings and a ready-made prompt for your AI assistant. No dependencies, no build step." \+ --description "159 web animation techniques, each a live demo with plain settings and a ready-made prompt for your AI assistant. No dependencies, no build step." \--homepage "https://matinmonshizadeh.github.io/animation-handbook/" \--add-topic web-animation,css-animation,animation,frontend,web-development,javascript,motion-design,ui-animation,scroll-animation,microinteractions,webgl,ai-prompts,reference,no-dependencies,github-pages \--remove-topic awesome@@ -41,7 +41,7 @@ and share, which drives return visits.## 2. Verify SEO is live (after pushing)-- `https://matinmonshizadeh.github.io/animation-handbook/sitemap.xml` → should list 159 URLs+- `https://matinmonshizadeh.github.io/animation-handbook/sitemap.xml` → should list 160 URLs- `https://matinmonshizadeh.github.io/animation-handbook/robots.txt` → should load- Submit the sitemap to **Google Search Console** (add the property, then Sitemaps → submit `sitemap.xml`).- Test the social card at https://opengraph.xyz — paste the homepage URL, confirm the og-image shows.@@ -59,14 +59,14 @@ comments yourself in the first hours.### Show HN (news.ycombinator.com/submit)**Title:**-> Show HN: Animation Handbook – 158 web animations, each with a prompt for your AI+> Show HN: Animation Handbook – 159 web animations, each with a prompt for your AI**URL:** `https://matinmonshizadeh.github.io/animation-handbook/`**First comment (post immediately after submitting):**> I kept re-googling the same animation techniques and landing on either a> library's marketing page or a CodePen with no explanation. So I built a-> reference: 158 techniques, from scroll effects and page transitions to+> reference: 159 techniques, from scroll effects and page transitions to> micro-interactions, text, 3D, and ambient backgrounds. You find one by where it> goes on your page (buttons, text, backgrounds, page changes…) or by describing> it. Each one plays live, has a few plain settings, and gives you a ready-made@@ -78,10 +78,10 @@ comments yourself in the first hours.### Reddit — r/webdev (Showoff Saturday) and r/Frontend**Title:**-> I built a handbook of 158 web animations — watch each one live, tweak it, and copy a prompt for your AI assistant+> I built a handbook of 159 web animations — watch each one live, tweak it, and copy a prompt for your AI assistant**Body:**-> 158 techniques in 7 categories (scroll, entrance/exit, page transitions,+> 159 techniques in 7 categories (scroll, entrance/exit, page transitions,> micro-interactions, text, 3D, ambient). Find one by where it goes on your page or> by describing it, try a few plain settings, then copy a prompt that describes it in> plain words for ChatGPT, Claude or Cursor. Each technique is also one standalone@@ -93,7 +93,7 @@ comments yourself in the first hours.### dev.to / Hashnode article-**Title:** `158 web animations you can copy as a prompt for your AI assistant`+**Title:** `159 web animations you can copy as a prompt for your AI assistant`**Outline:**1. The problem — animation knowledge is scattered across libraries and CodePens, and an AI@@ -108,7 +108,7 @@ comments yourself in the first hours.### X / Bluesky thread-> 1/ I built Animation Handbook — 158 web animations you can watch live, tweak, and+> 1/ I built Animation Handbook — 159 web animations you can watch live, tweak, and> copy as a prompt for your AI assistant. No dependencies, no build step. 🧵 <docs/demo.gif>>> 2/ Find one by where it goes — buttons, text, backgrounds, page changes — or just@@ -126,7 +126,7 @@ awesome-web-animation) via PR.### Product Hunt-**Tagline:** `158 web animations, each with a prompt for your AI assistant`+**Tagline:** `159 web animations, each with a prompt for your AI assistant`Schedule for a Tuesday–Thursday 12:01am PT. Line up 5–10 people to comment/upvote early.---diff --git a/index.html b/index.htmlindex f247bf7a..b52d9fae 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 — 158 Web Animation Techniques with Live Demos</title>-<meta name="description" content="A visual reference of 158 web animation techniques — scroll effects, page transitions, micro-interactions, text animation, 3D, and ambient backgrounds. Every entry is a live, dependency-free demo with an explanation of how it works.">+<title>Animation Handbook — 159 Web Animation Techniques with Live Demos</title>+<meta name="description" content="A visual reference of 159 web animation techniques — scroll effects, page transitions, micro-interactions, text animation, 3D, and ambient backgrounds. Every entry is a live, dependency-free demo with an explanation of how it works."><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="matinmonshizadeh"><meta name="robots" content="index, follow, max-image-preview:large">@@ -18,8 +18,8 @@<!-- Open Graph --><meta property="og:type" content="website"><meta property="og:site_name" content="Animation Handbook">-<meta property="og:title" content="Animation Handbook — 158 Web Animation Techniques with Live Demos">-<meta property="og:description" content="A visual reference of 158 web animation techniques. Every entry is a live, dependency-free demo with an explanation of how it works.">+<meta property="og:title" content="Animation Handbook — 159 Web Animation Techniques with Live Demos">+<meta property="og:description" content="A visual reference of 159 web animation techniques. Every entry is a live, dependency-free demo with an explanation of how it works."><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">@@ -27,8 +27,8 @@<!-- Twitter --><meta name="twitter:card" content="summary_large_image">-<meta name="twitter:title" content="Animation Handbook — 158 Web Animation Techniques">-<meta name="twitter:description" content="A visual reference of 158 web animation techniques. Every entry is a live, dependency-free demo you can open in the browser.">+<meta name="twitter:title" content="Animation Handbook — 159 Web Animation Techniques">+<meta name="twitter:description" content="A visual reference of 159 web animation techniques. Every entry is a live, dependency-free demo you can open in the browser."><meta name="twitter:image" content="https://matinmonshizadeh.github.io/animation-handbook/og-image.png"><!-- Structured data: parsed by search + AI answer engines -->@@ -38,7 +38,7 @@"@type": "WebSite","name": "Animation Handbook","url": "https://matinmonshizadeh.github.io/animation-handbook/",- "description": "A visual reference of 158 web animation techniques, each with a live, dependency-free demo and an explanation of how it works.",+ "description": "A visual reference of 159 web animation techniques, each with a live, dependency-free demo and an explanation of how it works.","inLanguage": "en","author": { "@type": "Person", "name": "matinmonshizadeh" },"about": ["web animation", "CSS animation", "motion design", "frontend development"],@@ -843,6 +843,23 @@ button,input{font:inherit;color:inherit}@keyframes bl-gc{0%,54%{transform:scale(1);opacity:0}58%{opacity:1}61%{transform:scale(1.08)}65%,80%{transform:scale(1);opacity:1}88%,100%{transform:scale(.8);opacity:0}}@keyframes bl-sp{0%,18%{transform:rotate(0);opacity:0}22%{opacity:1}54%{transform:rotate(810deg);opacity:1}57%,100%{transform:rotate(810deg);opacity:0}}@keyframes bl-tk{0%,56%{transform:scale(.5);opacity:0}62%,80%{transform:scale(1);opacity:1}86%,100%{transform:scale(1);opacity:0}}+/* gooey menu: three drops ooze out of a round button into an arc and are pulled back in, melted together where they touch by a goo+ filter (#pvGoo, in the card's markup) on a layer just as big as the open menu; each drop's tail follows it later and slower, and the+ plus turns into a cross; 1cqh is 1% of the stage's height */+.pv-gooey{background:#08090c;container-type:size}+.pv-gooey .gf{position:absolute;width:0;height:0}+.pv-gooey .gw{position:absolute;left:calc(50% - 40cqh);top:calc(68% - 48cqh);width:80cqh;height:64cqh;filter:url(#pvGoo)}+.pv-gooey .gw i{position:absolute;left:32.5cqh;top:40.5cqh;width:15cqh;height:15cqh;border-radius:50%;background:var(--accent)}+.pv-gooey .gw .m{left:29cqh;top:37cqh;width:22cqh;height:22cqh}+.pv-gooey .k1{--x:-25cqh;--y:-14.5cqh}.pv-gooey .k2{--x:0cqh;--y:-29cqh;--dl:.08s}.pv-gooey .k3{--x:25cqh;--y:-14.5cqh;--dl:.16s}+.pv-gooey .d{animation:gy-d 3.6s var(--dl,0s) infinite}+.pv-gooey .t{animation:gy-t 3.6s var(--dl,0s) infinite}+.pv-gooey .pl{position:absolute;left:calc(50% - 4.5cqh);top:calc(68% - 4.5cqh);width:9cqh;height:9cqh;animation:gy-pl 3.6s var(--ease) infinite}+.pv-gooey .pl::before,.pv-gooey .pl::after{content:"";position:absolute;left:0;top:3.6cqh;width:9cqh;height:1.8cqh;border-radius:1cqh;background:#0b0b0d}+.pv-gooey .pl::after{transform:rotate(90deg)}+@keyframes gy-d{0%,10%{transform:translate(0,0) scale(.5);animation-timing-function:cubic-bezier(.3,1.4,.55,1)}30%,70%{transform:translate(var(--x),var(--y)) scale(1);animation-timing-function:cubic-bezier(.55,-.25,.75,.25)}86%,100%{transform:translate(0,0) scale(.5)}}+@keyframes gy-t{0%,13%{transform:translate(0,0) scale(.4);animation-timing-function:cubic-bezier(.25,.8,.3,1)}40%,73%{transform:translate(var(--x),var(--y)) scale(.6);animation-timing-function:cubic-bezier(.55,-.25,.75,.25)}90%,100%{transform:translate(0,0) scale(.4)}}+@keyframes gy-pl{0%,10%{transform:rotate(0)}28%,70%{transform:rotate(135deg)}86%,100%{transform:rotate(0)}}/* ── bespoke: 05 Text & Typography ── */.pv-kinetic{background:#0c0608;display:grid;place-items:center;overflow:hidden}@@ -1329,7 +1346,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>158 free animations · no coding needed</p>+ <p class="pill"><span class="pill-dot" aria-hidden="true"></span>159 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">@@ -1386,8 +1403,8 @@ 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 158 animations</span><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M6 13l6 6 6-6"/></svg></button></div>- <noscript><p class="noscript">This page shows its animations with JavaScript. All 158 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/<category>/<name>/</code>.</p></noscript>+ <div class="more" id="more"><button type="button" class="bigbtn" id="more-btn"><span id="more-label">Browse all 159 animations</span><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M6 13l6 6 6-6"/></svg></button></div>+ <noscript><p class="noscript">This page shows its animations with JavaScript. All 159 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/<category>/<name>/</code>.</p></noscript></section><section class="how" id="how" aria-labelledby="how-title">@@ -1405,7 +1422,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">158 web animations with live demos and copyable prompts.</p>+ <p class="foot-t">159 web animations with live demos and copyable prompts.</p><nav class="nav" aria-label="Footer"><a class="lnk" href="https://github.com/matinmonshizadeh/animation-handbook" target="_blank" rel="noopener noreferrer">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>@@ -1541,6 +1558,7 @@ const CATS=[['hold-to-confirm','Hold to Confirm','A button fills up while you hold it and acts only once it is full. Best for delete buttons.'],['expanding-search','Expanding Search','A search icon opens into a field, then closes when done. Best for toolbars.'],['button-loading-states','Button Loading States','The button becomes a spinner, then a tick or a cross. Best for Save buttons.'],+ ['gooey-menu','Gooey Menu','Small buttons ooze out of a round button like liquid. Best for quick actions.'],]},{@@ -1639,7 +1657,7 @@ const PV={'drag-to-reorder':'reorder','rolling-numbers':'rollnum','typing-indicator':'typing',- 'hold-to-confirm':'holdconf','expanding-search':'xsearch','button-loading-states':'btnload',+ 'hold-to-confirm':'holdconf','expanding-search':'xsearch','button-loading-states':'btnload','gooey-menu':'gooey','flip-card-3d':'flip3d','carousel-3d':'carousel3d','depth-map-photo':'depthmap','flocking':'flock','ascii-halftone':'ascii','physics-2d':'phys2d','matrix-rain':'matrix','plasma':'plasmapv','wave-layers':'wavelayers','snow-rain':'snowrain','fireworks':'fireworks','topographic-lines':'topo','light-rays':'rays','game-of-life':'life',@@ -1779,6 +1797,7 @@ const PLACES={'hold-to-confirm':['btn'],'expanding-search':['menu','btn'],'button-loading-states':['btn','load'],+ 'gooey-menu':['menu','btn'],// 05'kinetic-typography':['text','intro'],'typewriter-effect':['text','intro'],@@ -1861,6 +1880,8 @@ function pvMarkup(k){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>';+ case 'gooey': return '<svg class="gf"><filter id="pvGoo" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="3.5"/><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 20 -9"/></filter></svg>'++ '<span class="gw">'+[1,2,3].map(k=>'<i class="t k'+k+' anim"></i>').join('')+[1,2,3].map(k=>'<i class="d k'+k+' anim"></i>').join('')+'<i class="m"></i></span><span class="pl anim"></span>';case 'gradborder': return '<span class="gbx"><span class="gl"><i class="anim"></i></span><span class="rg"><i class="anim"></i></span><span class="in"><b></b><b></b><b></b></span></span>';case 'spotlight': return '<span class="sg"><span class="lt anim"></span>'+'<i></i>'.repeat(6)+'</span>';case 'cartfly': return '<span class="pd"></span><span class="bt anim"></span><span class="ct anim"><svg viewBox="0 0 24 24"><path d="M2.5 3.5h2.3l2.5 11a1.5 1.5 0 0 0 1.5 1.2h8.6a1.5 1.5 0 0 0 1.4-1.1l1.9-6.6H6"/><circle cx="9.5" cy="19.6" r="1.4"/><circle cx="17" cy="19.6" r="1.4"/></svg><span class="bd"><b class="n2 anim">2</b><b class="n3 anim">3</b></span></span><span class="fx anim"><span class="fy anim"><span class="fs anim"></span></span></span>';diff --git a/sitemap.xml b/sitemap.xmlindex 38230db2..4fe2db5c 100644--- a/sitemap.xml+++ b/sitemap.xml@@ -95,6 +95,7 @@<url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/hold-to-confirm/</loc><lastmod>2026-10-01</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url><url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/expanding-search/</loc><lastmod>2026-10-01</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url><url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/button-loading-states/</loc><lastmod>2026-10-01</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/gooey-menu/</loc><lastmod>2026-10-01</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url><url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/kinetic-typography/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url><url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/typewriter-effect/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url><url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/scramble-text/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>