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: Typing Indicator (04.35)
matin33d5459f93e3
diff --git a/README.md b/README.mdindex c84216e1..db99de70 100644--- a/README.md+++ b/README.md@@ -157,6 +157,7 @@ All 129 techniques, each linked to its live demo.- **[Pull to Refresh](animations/04-micro-interactions/pull-to-refresh/)** — Pulling a list down shows a spinner, then new items. Best for feeds.- **[Drag to Reorder](animations/04-micro-interactions/drag-to-reorder/)** — Drag an item and the others slide aside to make room. Best for to-do lists.- **[Rolling Numbers](animations/04-micro-interactions/rolling-numbers/)** — Each digit rolls to its new value, like a car's mileage counter. Best for counters and prices.+- **[Typing Indicator](animations/04-micro-interactions/typing-indicator/)** — Three dots in a chat bubble move in turn while someone types. Best for chat apps.</details>diff --git a/animations/04-micro-interactions/README.md b/animations/04-micro-interactions/README.mdindex fe33c561..46b3c9a1 100644--- a/animations/04-micro-interactions/README.md+++ b/animations/04-micro-interactions/README.md@@ -37,6 +37,7 @@ Short, user-triggered animations that provide feedback, confirm actions, and com| [Pull to Refresh](pull-to-refresh/) | Pulling a list down shows a spinner, then new items. Best for feeds. || [Drag to Reorder](drag-to-reorder/) | Drag an item and the others slide aside to make room. Best for to-do lists. || [Rolling Numbers](rolling-numbers/) | Each digit rolls to its new value, like a car's mileage counter. Best for counters and prices. |+| [Typing Indicator](typing-indicator/) | Three dots in a chat bubble move in turn while someone types. Best for chat apps. |## Key conceptsdiff --git a/animations/04-micro-interactions/rolling-numbers/index.html b/animations/04-micro-interactions/rolling-numbers/index.htmlindex 17c7104d..24e8637d 100644--- a/animations/04-micro-interactions/rolling-numbers/index.html+++ b/animations/04-micro-interactions/rolling-numbers/index.html@@ -47,7 +47,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="../drag-to-reorder/" rel="prev" aria-label="Previous: Drag to Reorder"><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>Drag to Reorder</span></a></span>+ <span class="hb-pager"><a href="../drag-to-reorder/" rel="prev" aria-label="Previous: Drag to Reorder"><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>Drag to Reorder</span></a><a href="../typing-indicator/" rel="next" aria-label="Next: Typing Indicator"><span><span class="hb-dir">Next: </span>Typing Indicator</span><svg class="hb-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="m9 18 6-6-6-6"/></svg></a></span></nav><main class="hb-page"><header class="hb-head">diff --git a/animations/04-micro-interactions/typing-indicator/README.md b/animations/04-micro-interactions/typing-indicator/README.mdnew file mode 100644index 00000000..700c53cb--- /dev/null+++ b/animations/04-micro-interactions/typing-indicator/README.md@@ -0,0 +1,45 @@+# Typing Indicator++## What it is+A typing indicator tells people in a conversation that the other person is writing a reply. It is a small chat bubble on their side of the conversation holding three dots that move one after another in a loop, by bouncing, brightening or rising and falling like a wave. When the reply arrives, the message takes the bubble's place.++## When to use it+- Chat and messaging apps, between two people or in a group+- Support chat, so customers know someone is answering+- AI assistants, between the question and the first words of the answer+- Comment threads and shared documents where someone is replying live++## How it works+The bubble is an ordinary message bubble holding three dots. All three run the same CSS animation, and each starts a little later than the one before it, so they move in turn; the delays are shares of the round's length, so the pattern keeps its shape at any speed:++```css+.dot{width:9px;height:9px;border-radius:50%;background:var(--dot);animation:ty-bounce var(--dur) ease-in-out infinite both}+.dot:nth-child(2){animation-delay:calc(var(--dur)*.15)}+.dot:nth-child(3){animation-delay:calc(var(--dur)*.3)}+@keyframes ty-bounce{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(var(--hop));opacity:1}}+```++Bounce lifts each dot and lets it fall back, then all three rest for the last part of the round, which reads as bursts of typing. Fade brightens and grows each dot instead of moving it, and wave has no rest: the dots rise and fall without a pause. Only `transform` and `opacity` change, so the dots stay smooth on any device.++The distances are custom properties (`--hop`, `--lift` and `--small`); under `prefers-reduced-motion: reduce` they are set to no movement at all, so the same keyframes only brighten the dots in turn. Pause and Slow motion act on the CSS animations themselves: the page holds them with `animation-play-state` and slows them with each animation's `playbackRate`. A new speed scales each dot's current time by the same factor as its length, so the dots carry on from where they are instead of jumping.++## Key parameters+| Parameter | Default | Effect |+|-----------|---------|--------|+| How the dots move | Bounce | Bounce hops each dot 7px up and rests between rounds; fade brightens each dot and grows it from 70% to full size; wave raises and lowers the dots without a rest |+| Speed | Normal | How long one round of the three dots takes: slow is 1.8 seconds, normal 1.2 seconds and fast 0.8 seconds |+| Bubble color | Gray | The color of the other person's bubbles: gray, blue, green or purple; the dots turn light gray or white to stay clear on it |++## Production notes+- **Show it only while typing is real**: send a "typing" signal as the person types, hide the bubble a few seconds after the last key press, and replace it with the message when it arrives, so a bubble never hangs on screen for nothing.+- **Avoid flicker**: wait a moment before showing it and keep it up for at least a second once shown, so short bursts of typing do not make it blink on and off.+- **Keep the conversation still**: give the bubble the height of a one-line message, so the thread does not jump when it comes and goes.+- **Accessibility**: give the bubble a text alternative such as "Maya is typing", and if you announce it in a live region, announce it once, not on every key press.+- **Reduced motion**: keep the dots in place; a gentle change of brightness is enough to show that something is happening.+- **Library equivalents**: chat kits such as Stream Chat and Sendbird's UIKit come with a typing indicator, Lottie files are common for illustrated versions, and Framer Motion can stagger the three dots with a `delay` per dot.++## See also+- [Loading Spinner](../loading-spinner/) — six small shapes that loop while something loads+- [Skeleton Loader](../skeleton-loader/) — gray shapes that hold the place of content while it loads+- [Toast Notification](../toast-notification/) — short messages that slide into a corner+- [Wavy Text](../../05-text-typography/wavy-text/) — a wave that rolls through a word, letter by letterdiff --git a/animations/04-micro-interactions/typing-indicator/index.html b/animations/04-micro-interactions/typing-indicator/index.htmlnew file mode 100644index 00000000..6970e8e7--- /dev/null+++ b/animations/04-micro-interactions/typing-indicator/index.html@@ -0,0 +1,181 @@+<!DOCTYPE html>+<html lang="en">+<head>+ <meta charset="UTF-8">+ <meta name="viewport" content="width=device-width, initial-scale=1.0">+ <title>Typing Indicator — Animation Handbook</title>+ <meta name="description" content="Three dots in a chat bubble move in turn while someone types. Best for chat apps.">+ <link rel="canonical" href="https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/typing-indicator/">+ <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="Typing Indicator — Animation Handbook">+ <meta property="og:description" content="Three dots in a chat bubble move in turn while someone types. Best for chat apps.">+ <meta property="og:url" content="https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/typing-indicator/">+ <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="Typing Indicator — Animation Handbook">+ <meta name="twitter:description" content="Three dots in a chat bubble move in turn while someone types. Best for chat apps.">+ <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": "Typing Indicator", "name": "Typing Indicator", "description": "Three dots in a chat bubble move in turn while someone types. Best for chat apps.", "url": "https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/typing-indicator/", "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, Typing Indicator"}</script>+ <style>+ :root{--ui-accent:#ff9d5c;--ui-text:#f4f4f2;--ui-muted:#8a8a92;--in:#2a2a31;--dot:#b9b9c2;--dur:1200ms}+ *,*::before,*::after{box-sizing:border-box;margin:0;padding:0}+ .stage{display:flex;align-items:center;justify-content:center;padding:16px;background:#0b0b0d}+ .chat{display:flex;flex-direction:column;gap:10px;width:100%;max-width:340px;padding:14px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:#141418}+ .head{display:flex;align-items:center;gap:10px;padding-bottom:10px;border-bottom:1px solid rgba(255,255,255,.08)}+ .avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#56d364;color:#0b0b0d;font-size:14px;font-weight:700}+ .who{font-size:14px;font-weight:700;color:var(--ui-text)}+ .state{display:block;font-size:12px;font-weight:400;color:var(--ui-muted)}+ .msg{max-width:80%;padding:9px 13px;border-radius:16px;font-size:14px;line-height:1.35}+ .in{align-self:flex-start;border-bottom-left-radius:5px;background:var(--in);color:var(--ui-text)}+ .out{align-self:flex-end;border-bottom-right-radius:5px;background:var(--ui-accent);color:#1a1208}+ /* The indicator: three dots on one round, each starting a little after the one before it, so they move in turn. Only their+ position, size and opacity change. Under reduced motion the moves are zero: the dots stay in place and only brighten in turn. */+ .typing{display:flex;gap:6px;padding:14px 16px;--hop:-7px;--lift:-5px;--small:.7}+ .dot{width:9px;height:9px;border-radius:50%;background:var(--dot);animation:ty-bounce var(--dur) ease-in-out infinite both}+ .dot:nth-child(2){animation-delay:calc(var(--dur)*.15)}+ .dot:nth-child(3){animation-delay:calc(var(--dur)*.3)}+ .s-fade .dot{animation-name:ty-fade}+ .s-wave .dot{animation-name:ty-wave}+ @keyframes ty-bounce{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(var(--hop));opacity:1}}+ @keyframes ty-fade{0%,60%,100%{transform:scale(var(--small));opacity:.3}30%{transform:scale(1);opacity:1}}+ @keyframes ty-wave{0%,100%{transform:translateY(calc(var(--lift)*-.5));opacity:.55}50%{transform:translateY(var(--lift));opacity:1}}+ @media(prefers-reduced-motion:reduce){.typing{--hop:0px;--lift:0px;--small:1}}+ </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="loop">+<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="../rolling-numbers/" rel="prev" aria-label="Previous: Rolling Numbers"><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>Rolling Numbers</span></a></span>+</nav>+<main class="hb-page">+ <header class="hb-head">+ <p class="hb-cat">04.35 · Micro-Interactions</p>+ <h1>Typing Indicator</h1>+ <p class="hb-lede">Three dots in a chat bubble move in turn while someone types. Best for chat apps.</p>+ </header>++ <section class="hb-step hb-watch" aria-labelledby="hb-watch-title">+ <div class="hb-step-head">+ <span class="hb-num" aria-hidden="true">1</span>+ <div><h2 id="hb-watch-title">Watch it</h2><p>It moves by itself. Pause it to look closely, or turn on slow motion to see each dot take its turn.</p></div>+ </div>+ <div class="stage hb-dots">+ <div class="chat" role="group" aria-label="Chat with Maya">+ <div class="head"><span class="avatar" aria-hidden="true">M</span><p class="who">Maya<span class="state">typing…</span></p></div>+ <p class="msg in">Are you free on Saturday?</p>+ <p class="msg out">Yes! What's the plan?</p>+ <div class="msg in typing" id="bubble" role="img" aria-label="Maya is typing"><i class="dot"></i><i class="dot"></i><i class="dot"></i></div>+ </div>+ </div>+ <div class="hb-player">+ <button class="hb-play" type="button" id="btn-pause" data-hb-pause="css" data-state="playing"><svg class="hb-ic hb-i-pause" viewBox="0 0 24 24" aria-hidden="true"><rect x="6" y="4" width="4" height="16" rx="1"/><rect x="14" y="4" width="4" height="16" rx="1"/></svg><svg class="hb-ic hb-i-play" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 3l14 9-14 9z"/></svg><span class="hb-pause-label">Pause</span></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 and see the difference as it moves.</p></div>+ </div>+ <div class="hb-settings">+ <div class="hb-setting">+ <p class="hb-setting-name" id="style-lbl">How the dots move</p>+ <div class="seg" id="style-seg" role="group" aria-labelledby="style-lbl">+ <button type="button" data-style="bounce" class="on" aria-pressed="true">Bounce</button>+ <button type="button" data-style="fade" aria-pressed="false">Fade</button>+ <button type="button" data-style="wave" aria-pressed="false">Wave</button>+ </div>+ <p class="hb-hint">Bounce hops each dot and rests; fade brightens them; wave never stops rising and falling.</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="1800" aria-pressed="false">Slow</button>+ <button type="button" data-ms="1200" class="on" aria-pressed="true">Normal</button>+ <button type="button" data-ms="800" aria-pressed="false">Fast</button>+ </div>+ <p class="hb-hint">How long one round of the three dots takes. Fast can look impatient.</p>+ </div>+ <div class="hb-setting">+ <p class="hb-setting-name" id="color-lbl">Bubble color</p>+ <div class="swatches" id="color-sw" role="group" aria-labelledby="color-lbl">+ <button type="button" class="on" aria-pressed="true" aria-label="Gray" data-c="#2a2a31" data-dot="#b9b9c2" style="background:#2a2a31"></button>+ <button type="button" aria-pressed="false" aria-label="Blue" data-c="#2f62d8" data-dot="#ffffff" style="background:#2f62d8"></button>+ <button type="button" aria-pressed="false" aria-label="Green" data-c="#1f7a45" data-dot="#ffffff" style="background:#1f7a45"></button>+ <button type="button" aria-pressed="false" aria-label="Purple" data-c="#6b46c1" data-dot="#ffffff" style="background:#6b46c1"></button>+ </div>+ <p class="hb-hint">The other person's bubbles; the dots change with them so they stay easy to see.</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 typing indicator to [the chat or comment thread where replies arrive]. While the other person is typing, show a small bubble on their side of the conversation with three dots that move one after another in a steady loop, so it reads as someone writing right now. Show it only while they are really typing, hide it after a few quiet seconds, and when their message arrives, put the message where the bubble was. Animate only the dots, never the bubble's size, so it stays smooth, and give screen readers a short text that says who is typing. If the visitor has reduced motion turned on, keep the dots in place and only let them brighten in turn. Match the settings listed below.</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>Chat apps</li><li>Support chat</li><li>AI assistants</li><li>Comment threads</li></ul>+ <h3>Avoid on</h3>+ <ul class="hb-tags hb-avoid"><li>Long waits</li><li>Replies that are not live</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 stage=document.querySelector('.stage'),bubble=document.getElementById('bubble');+ const vars=document.documentElement.style;+ let dotMs=1200;++ 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);+ }));+ }+ // A new style starts the dots' round again from its beginning (paused there while the demo is paused).+ choices('style-seg',d=>{bubble.classList.remove('s-bounce','s-fade','s-wave');bubble.classList.add('s-'+d.style)});+ // A new --dur keeps the time already played, so every dot would jump to another point of its round. Scaling each dot's time by the+ // same factor as its length (its delay is a share of the length too) keeps the dots where they are, moving or paused.+ choices('speed-seg',d=>{+ const next=+d.ms;+ stage.getAnimations({subtree:true}).forEach(a=>{if(a.currentTime!=null)a.currentTime=a.currentTime*next/dotMs});+ dotMs=next;+ vars.setProperty('--dur',next+'ms');+ });+ choices('color-sw',d=>{vars.setProperty('--in',d.c);vars.setProperty('--dot',d.dot)});+</script>+</body>+</html>diff --git a/index.html b/index.htmlindex 1f674fc0..f545e082 100644--- a/index.html+++ b/index.html@@ -691,6 +691,12 @@ button,input{font:inherit;color:inherit}.pv-rollnum .t{animation:m-rnt 4.4s cubic-bezier(.3,.7,.2,1) infinite}.pv-rollnum .u{animation:m-rnu 4.4s cubic-bezier(.3,.7,.2,1) infinite}@keyframes m-rnt{0%,58%{transform:translateY(-4.6em)}66%,84%{transform:translateY(-5.75em)}92%,100%{transform:translateY(-4.6em)}}@keyframes m-rnu{0%,14%{transform:translateY(-8.05em)}22%,36%{transform:translateY(-9.2em)}44%,58%{transform:translateY(-10.35em)}66%,84%{transform:translateY(-11.5em)}92%,100%{transform:translateY(-8.05em)}}+.pv-typing{background:#08090c;display:flex;flex-direction:column;justify-content:center;gap:9%;padding:12% 16% 0}+.pv-typing .mo{display:block;width:46%;height:14%;align-self:flex-end;border-radius:9px 9px 3px 9px;background:color-mix(in srgb,var(--accent) 55%,#20242c)}+.pv-typing .tb{display:flex;gap:5px;align-self:flex-start;padding:11px 13px;border-radius:12px 12px 12px 4px;background:#262a33}+.pv-typing .tb i{display:block;width:8px;height:8px;border-radius:50%;background:#c4c8d0;opacity:.45;animation:m-tydot 1.2s ease-in-out infinite}+.pv-typing .tb i:nth-child(2){animation-delay:.18s}.pv-typing .tb i:nth-child(3){animation-delay:.36s}+@keyframes m-tydot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-5px);opacity:1}}/* ── bespoke: 05 Text & Typography ── */.pv-kinetic{background:#0c0608;display:grid;place-items:center;overflow:hidden}@@ -1024,7 +1030,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>131 free animations · no coding needed</p>+ <p class="pill"><span class="pill-dot" aria-hidden="true"></span>132 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">@@ -1081,8 +1087,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 131 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 131 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 132 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 132 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">@@ -1100,7 +1106,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">131 web animations with live demos and copyable prompts.</p>+ <p class="foot-t">132 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>@@ -1224,6 +1230,7 @@ const CATS=[['pull-to-refresh','Pull to Refresh','Pulling a list down shows a spinner, then new items. Best for feeds.'],['drag-to-reorder','Drag to Reorder','Drag an item and the others slide aside to make room. Best for to-do lists.'],['rolling-numbers','Rolling Numbers','Each digit rolls to its new value, like a car\'s mileage counter. Best for counters and prices.'],+ ['typing-indicator','Typing Indicator','Three dots in a chat bubble move in turn while someone types. Best for chat apps.'],]},{@@ -1305,6 +1312,7 @@ const PV={'star-rating':'stars','toast-notification':'toast','segmented-control':'segct','pull-to-refresh':'pullref','drag-to-reorder':'reorder','rolling-numbers':'rollnum',+ 'typing-indicator':'typing','flip-card-3d':'flip3d','matrix-rain':'matrix','plasma':'plasmapv','parallax-depth-of-field':'dof','parallax-scrolling':'plx','reverse-scrolling-columns':'revcol','cover-card-to-fixed-header':'cover','fly-in-fly-out-contact-list':'flylist','stacking-cards':'stack',@@ -1428,6 +1436,7 @@ const PLACES={'pull-to-refresh':['load'],'drag-to-reorder':['menu'],'rolling-numbers':['text','load'],+ 'typing-indicator':['load'],// 05'kinetic-typography':['text','intro'],'typewriter-effect':['text','intro'],@@ -1492,6 +1501,7 @@ function pvMarkup(k){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 'reorder': return '<span class="rw k1 anim"></span><span class="rw k2 anim"></span><span class="rw k3"></span>';case 'rollnum': return '<i class="lb"></i><span class="n"><span class="w">2</span><span class="w"><span class="s t anim"></span></span><span class="w"><span class="s u anim"></span></span></span>';+ case 'typing': return '<span class="mo"></span><span class="tb"><i class="anim"></i><i class="anim"></i><i class="anim"></i></span>';case 'sig5': return '<span class="s5 anim"></span><span class="s5 anim"></span><span class="s5 anim"></span>';case 'sig6': return '<div class="cube anim"><span class="face f1"></span><span class="face f2"></span><span class="face f3"></span><span class="face f4"></span><span class="face f5"></span><span class="face f6"></span></div>';case 'sig7': return '<span class="s7 anim"></span>';diff --git a/sitemap.xml b/sitemap.xmlindex fa440469..640f7ebf 100644--- a/sitemap.xml+++ b/sitemap.xml@@ -83,6 +83,7 @@<url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/pull-to-refresh/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url><url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/drag-to-reorder/</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/rolling-numbers/</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/typing-indicator/</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>