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
Merge branch 'feat/new-L6' into int/new-animations
matinb52d20aec46e
diff --cc README.mdindex 6f9bb5e2,3d69f6ba..f72765c6--- a/README.md+++ b/README.md@@@ -160,12 -155,9 +160,15 @@@ All 129 techniques, each linked to its- **[Toast Notification](animations/04-micro-interactions/toast-notification/)** — Short messages slide into a corner, then leave on their own. Best for updates.- **[Segmented Control](animations/04-micro-interactions/segmented-control/)** — A highlight slides to the option you pick. Best for switching views.- **[Pull to Refresh](animations/04-micro-interactions/pull-to-refresh/)** — Pulling a list down shows a spinner, then new items. Best for feeds.+- **[Animated Gradient Border](animations/04-micro-interactions/gradient-border/)** — A band of colors runs around the edge of a card or button. Best for featured offers.+- **[Spotlight Hover Glow](animations/04-micro-interactions/spotlight-hover/)** — A soft light follows the pointer and lights up the card edges near it. Best for feature grids.+- **[Add-to-Cart Fly](animations/04-micro-interactions/add-to-cart-fly/)** — A copy of the product flies into the cart, which bumps and counts up. Best for shops.+- **[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.+ - **[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 you can type in, and closes when done. Best for toolbars.+ - **[Button Loading States](animations/04-micro-interactions/button-loading-states/)** — The button turns into a spinner while it works, then a tick or a cross. Best for Save buttons.</details>diff --cc animations/04-micro-interactions/README.mdindex 1de1b612,7f3ab0b4..8d3c335b--- a/animations/04-micro-interactions/README.md+++ b/animations/04-micro-interactions/README.md@@@ -35,12 -35,9 +35,15 @@@ Short, user-triggered animations that p| [Toast Notification](toast-notification/) | Short messages slide into a corner, then leave on their own. Best for updates. || [Segmented Control](segmented-control/) | A highlight slides to the option you pick. Best for switching views. || [Pull to Refresh](pull-to-refresh/) | Pulling a list down shows a spinner, then new items. Best for feeds. |+| [Animated Gradient Border](gradient-border/) | A band of colors runs around the edge of a card or button. Best for featured offers. |+| [Spotlight Hover Glow](spotlight-hover/) | A soft light follows the pointer and lights up the card edges near it. Best for feature grids. |+| [Add-to-Cart Fly](add-to-cart-fly/) | A copy of the product flies into the cart, which bumps and counts up. Best for shops. |+| [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. |+ | [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 you can type in, and closes when done. Best for toolbars. |+ | [Button Loading States](button-loading-states/) | The button turns into a spinner while it works, then a tick or a cross. Best for Save buttons. |## Key conceptsdiff --cc index.htmlindex 17aa875f,3651ba9a..70ad63e1--- a/index.html+++ b/index.html@@@ -738,71 -674,45 +738,110 @@@ button,input{font:inherit;color:inherit.pv-cursor .foll{position:absolute;width:12%;aspect-ratio:1;border-radius:50%;background:color-mix(in srgb,var(--accent) 40%,transparent);border:1px solid var(--accent);animation:m-foll 4s ease-in-out infinite}@keyframes m-tgt{0%{left:20%;top:30%}25%{left:70%;top:24%}50%{left:74%;top:64%}75%{left:24%;top:68%}100%{left:20%;top:30%}}@keyframes m-foll{0%{left:20%;top:30%}29%{left:70%;top:24%}54%{left:74%;top:64%}79%{left:24%;top:68%}100%{left:20%;top:30%}}+/* gradient border: a square layer of colors turns behind a card; the inner box covers all but the edge, and a blurred copy glows */+.pv-gradborder{background:#08090c;display:grid;place-items:center}+.pv-gradborder .gbx{position:relative;top:8%;width:46%;height:58%;border-radius:10px} /* a little low, clear of the place label */+.pv-gradborder .rg,.pv-gradborder .gl{position:absolute;inset:0;border-radius:inherit;overflow:hidden}+.pv-gradborder .rg{background:rgba(255,255,255,.1)}+.pv-gradborder .gl{filter:blur(9px);opacity:.8}+.pv-gradborder i{position:absolute;left:50%;top:50%;width:200%;aspect-ratio:1;background:conic-gradient(transparent 0 40%,var(--c5) 58%,var(--c7) 72%,var(--c2) 85%,var(--c1) 96%,transparent);transform:translate(-50%,-50%);animation:m-gbturn 3.2s linear infinite}+@keyframes m-gbturn{to{transform:translate(-50%,-50%) rotate(1turn)}}+.pv-gradborder .in{position:absolute;inset:2px;display:flex;flex-direction:column;justify-content:center;gap:9%;padding:0 13%;border-radius:8px;background:#111217}+.pv-gradborder .in b{height:7px;border-radius:2px;background:#262a33}+.pv-gradborder .in b:first-child{width:38%;background:var(--c7)}+.pv-gradborder .in b:nth-child(2){width:62%;height:11px;background:#e9e9ec}+.pv-gradborder .in b:last-child{width:84%}+/* spotlight: a soft light drifts behind a grid of dark tiles; it shows fully in the gaps, which read as lit edges, and faintly through the tiles */+.pv-spotlight{background:#08090c;display:grid;place-items:center}+.pv-spotlight .sg{position:relative;top:9%;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr);gap:3px;width:76%;height:60%;padding:3px;overflow:hidden;border-radius:9px;background:#1d1f27}+.pv-spotlight .lt{position:absolute;left:0;top:0;width:56%;aspect-ratio:1;border-radius:50%;background:radial-gradient(closest-side,var(--c3) 15%,color-mix(in srgb,var(--c3) 45%,transparent) 55%,transparent);animation:m-spot 4.4s ease-in-out infinite}+.pv-spotlight .sg i{position:relative;border-radius:6px;background:rgba(18,19,24,.88)}+.pv-spotlight .sg i::after{content:"";position:absolute;left:14%;bottom:24%;width:48%;height:5px;border-radius:2px;background:#2b2e38}+@keyframes m-spot{0%,100%{transform:translate(-22%,-18%)}30%{transform:translate(45%,22%)}60%{transform:translate(112%,-8%)}80%{transform:translate(60%,-30%)}}+/* add to cart: a copy of the product is tossed along an arc (an even sideways move, a rise that slows and a fall that speeds up)+ into the cart, which bumps as its count goes from 2 to 3; 1cqw and 1cqh are 1% of the stage's width and height */+.pv-cartfly{background:#08090c;overflow:hidden;container-type:size}+.pv-cartfly .pd,.pv-cartfly .fs{border-radius:7px;background:linear-gradient(140deg,var(--c1),#3b5bdb)}+.pv-cartfly .pd{position:absolute;left:12cqw;top:34cqh;width:32cqw;height:44cqh}+.pv-cartfly .bt{position:absolute;left:12cqw;top:82cqh;width:32cqw;height:9cqh;border-radius:4px;background:var(--accent);animation:m-cfbt 3s ease-out infinite}+.pv-cartfly .ct{position:absolute;left:calc(86cqw - 8cqh);top:12cqh;width:16cqh;height:16cqh;display:grid;place-items:center;border-radius:6px;border:1px solid rgba(255,255,255,.2);animation:m-cfbump 3s ease-out infinite}+.pv-cartfly .ct svg{width:64%;height:64%;fill:none;stroke:var(--ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}+.pv-cartfly .bd{position:absolute;right:-3cqh;top:-3cqh;width:8cqh;height:8cqh;border-radius:50%;background:var(--accent);color:#16161b;font:800 5.5cqh/8cqh var(--text);text-align:center}+.pv-cartfly .bd b{position:absolute;inset:0}+.pv-cartfly .n2{animation:m-cfn2 3s infinite}+.pv-cartfly .n3{opacity:0;animation:m-cfn3 3s infinite}+.pv-cartfly .fx{position:absolute;left:28cqw;top:56cqh;animation:m-cfx 3s linear infinite}+.pv-cartfly .fy{position:absolute;left:0;top:0;animation:m-cfy 3s infinite}+.pv-cartfly .fs{position:absolute;left:-16cqw;top:-22cqh;width:32cqw;height:44cqh;opacity:0;box-shadow:0 4px 12px rgba(0,0,0,.5);animation:m-cfs 3s infinite}+@keyframes m-cfbt{0%,12%{transform:none}15%{transform:scale(.9)}20%,100%{transform:none}}+@keyframes m-cfx{0%,18%{transform:translateX(0)}58%,100%{transform:translateX(58cqw)}}+@keyframes m-cfy{0%,18%{transform:translateY(0);animation-timing-function:cubic-bezier(.333,.667,.667,1)}47%{transform:translateY(-42cqh);animation-timing-function:cubic-bezier(.333,0,.667,.333)}58%,100%{transform:translateY(-36cqh)}}+@keyframes m-cfs{0%,17.9%{opacity:0;transform:none}18%{opacity:1;transform:none;animation-timing-function:ease-out}30%{transform:scale(.55)}52%{opacity:1;transform:scale(.3)}58%,100%{opacity:0;transform:scale(.18)}}+@keyframes m-cfbump{0%,58%{transform:none}63%{transform:scale(1.25) rotate(-8deg)}68%{transform:scale(.94) rotate(3deg)}74%,100%{transform:none}}+@keyframes m-cfn2{0%,57.9%{opacity:1}58%,100%{opacity:0}}+@keyframes m-cfn3{0%,57.9%{opacity:0}58%,100%{opacity:1}}+.pv-reorder{background:#08090c;position:relative}+.pv-reorder .rw{position:absolute;left:22%;right:22%;height:15%;border-radius:5px;background:#181c22;border:1px solid #2a2e36}+.pv-reorder .rw::before{content:"";position:absolute;left:6%;top:28%;bottom:28%;width:6%;background:radial-gradient(circle,#5d636e 42%,transparent 48%) 0 0/50% 33.4%}+.pv-reorder .rw::after{content:"";position:absolute;left:19%;top:40%;width:44%;height:20%;border-radius:2px;background:#353b46}+.pv-reorder .k1{top:32%;z-index:1;background:color-mix(in srgb,var(--accent) 18%,#181c22);border-color:var(--accent);animation:m-rodrag 3.4s var(--ease) infinite}+.pv-reorder .k1::after{background:color-mix(in srgb,var(--accent) 60%,#353b46)}+.pv-reorder .k2{top:50%;animation:m-roslide 3.4s var(--ease) infinite}.pv-reorder .k3{top:68%}+@keyframes m-rodrag{0%,8%{transform:translateY(0) scale(1)}16%{transform:translateY(0) scale(1.07)}40%{transform:translateY(120%) scale(1.07)}48%,58%{transform:translateY(120%) scale(1)}66%{transform:translateY(120%) scale(1.07)}88%{transform:translateY(0) scale(1.07)}96%,100%{transform:translateY(0) scale(1)}}+@keyframes m-roslide{0%,22%{transform:translateY(0)}34%,72%{transform:translateY(-120%)}84%,100%{transform:translateY(0)}}+.pv-rollnum{background:#08090c;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7%}+.pv-rollnum .lb{display:block;width:26%;height:6px;border-radius:3px;background:#2a2e36}+.pv-rollnum .n{display:flex;font-family:var(--disp);font-weight:800;font-size:40px;line-height:1.15;color:var(--accent)}+.pv-rollnum .w{display:block;width:.64em;height:1.15em;overflow:hidden;text-align:center;-webkit-mask-image:linear-gradient(transparent,#000 16%,#000 84%,transparent);mask-image:linear-gradient(transparent,#000 16%,#000 84%,transparent)}+.pv-rollnum .s{display:block}.pv-rollnum .s::before{content:"0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9\A 0";white-space:pre}+.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}}+ /* hold to confirm: the button is held down, a red fill grows across it, then it reads Deleted and empties again */+ .pv-holdconf{background:#08090c;display:grid;place-items:center}+ .pv-holdconf .btn{position:relative;display:grid;place-items:center;width:78%;max-width:200px;height:24%;border-radius:999px;overflow:hidden;background:#2a1416;border:1px solid #6b2a2a;animation:hc-btn 3.6s var(--ease) infinite}+ .pv-holdconf .fl{position:absolute;inset:0;background:#c43a36;transform-origin:left;animation:hc-fill 3.6s linear infinite}+ .pv-holdconf .t{position:relative;grid-area:1/1;font-family:var(--text);font-size:9px;font-weight:700;letter-spacing:.04em;color:#fff;white-space:nowrap}+ .pv-holdconf .t1{animation:hc-t1 3.6s steps(1,end) infinite}+ .pv-holdconf .t2{opacity:0;animation:hc-t2 3.6s steps(1,end) infinite}+ @keyframes hc-btn{0%,8%{transform:scale(1)}11%,56%{transform:scale(.95)}62%,100%{transform:scale(1)}}+ @keyframes hc-fill{0%,8%{transform:scaleX(0);opacity:1}58%,86%{transform:scaleX(1);opacity:1}96%{transform:scaleX(1);opacity:0}100%{transform:scaleX(0);opacity:0}}+ @keyframes hc-t1{0%{opacity:1}58%{opacity:0}92%,100%{opacity:1}}+ @keyframes hc-t2{0%{opacity:0}58%{opacity:1}92%,100%{opacity:0}}+ /* expanding search: the search icon at the end of a toolbar opens into a field over the links, a word is typed, it closes */+ .pv-xsearch{background:#08090c}+ .pv-xsearch .tb{position:absolute;left:9%;right:9%;top:34%;height:24%;display:flex;align-items:center;gap:7%;padding:0 4%;border-radius:8px;background:#16161b;border:1px solid #2a2a31}+ .pv-xsearch .br{flex:none;width:9px;height:9px;border-radius:3px;background:var(--accent)}+ .pv-xsearch .ln{display:flex;gap:8%;flex:1;animation:xs-ln 3.8s var(--ease) infinite}+ .pv-xsearch .ln i{width:22%;height:5px;border-radius:2px;background:#3a3a42}+ .pv-xsearch .fd{position:absolute;left:24%;right:2.5%;top:14%;bottom:14%;border-radius:999px;background:#2a2a31;box-shadow:inset 0 0 0 1.5px var(--accent);transform-origin:right;animation:xs-fd 3.8s var(--ease) infinite}+ .pv-xsearch .tx{position:absolute;left:9%;top:50%;width:46%;height:4px;margin-top:-2px;border-radius:2px;background:#d6d6da;transform-origin:left;animation:xs-tx 3.8s steps(7,end) infinite}+ .pv-xsearch .ic{position:absolute;right:2.5%;top:14%;bottom:14%;height:72%;aspect-ratio:1;padding:2.4%;border-radius:50%;background:#2a2a31;fill:none;stroke:#f4f4f2;stroke-width:2.4;stroke-linecap:round}+ .pv-xsearch .pg{position:absolute;left:13%;right:30%;top:68%;display:flex;flex-direction:column;gap:7px}+ .pv-xsearch .pg i{height:5px;border-radius:2px;background:#1f1f25}+ @keyframes xs-fd{0%,14%{transform:scaleX(.16);opacity:0}17%{opacity:1}26%,74%{transform:scaleX(1);opacity:1}83%{transform:scaleX(.16);opacity:1}86%,100%{transform:scaleX(.16);opacity:0}}+ @keyframes xs-ln{0%,14%{opacity:1}22%,78%{opacity:0}86%,100%{opacity:1}}+ @keyframes xs-tx{0%,30%{transform:scaleX(0)}48%,74%{transform:scaleX(1)}76%,100%{transform:scaleX(0)}}+ /* button loading states: Submit gives way to a circle with a spinner, which turns green with a tick, then Submit comes back */+ .pv-btnload{background:#08090c;display:grid;place-items:center}+ .pv-btnload .bw{display:grid;place-items:center;width:62%;max-width:180px;height:24%}+ .pv-btnload .bw>*{grid-area:1/1}+ .pv-btnload .pl{width:100%;height:100%;display:grid;place-items:center;border-radius:999px;background:var(--accent);color:#0b0b0d;font-family:var(--text);font-size:10px;font-weight:700;letter-spacing:.06em;animation:bl-pl 4s var(--ease) infinite}+ .pv-btnload .cc,.pv-btnload .gc{height:100%;aspect-ratio:1;border-radius:50%;background:var(--accent);animation:bl-cc 4s var(--ease) infinite}+ .pv-btnload .gc{background:#3fb950;animation-name:bl-gc}+ .pv-btnload .sp{height:46%;aspect-ratio:1;border-radius:50%;border:2px solid rgba(11,11,13,.25);border-top-color:#0b0b0d;animation:bl-sp 4s linear infinite}+ .pv-btnload .tk{height:56%;aspect-ratio:1;fill:none;stroke:#0b0b0d;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;animation:bl-tk 4s var(--ease) infinite}+ @keyframes bl-pl{0%,12%{transform:scaleX(1);opacity:1}22%,78%{transform:scaleX(.3);opacity:0}90%,100%{transform:scaleX(1);opacity:1}}+ @keyframes bl-cc{0%,12%{transform:scale(.8);opacity:0}20%,80%{transform:scale(1);opacity:1}88%,100%{transform:scale(.8);opacity:0}}+ @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}}/* ── bespoke: 05 Text & Typography ── */.pv-kinetic{background:#0c0608;display:grid;place-items:center;overflow:hidden}@@@ -1175,7 -1046,7 +1214,7 @@@<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>144 free animations · no coding needed</p>- <p class="pill"><span class="pill-dot" aria-hidden="true"></span>132 free animations · no coding needed</p>++ <p class="pill"><span class="pill-dot" aria-hidden="true"></span>147 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">@@@ -1232,8 -1103,8 +1271,8 @@@<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 144 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 144 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>++ <div class="more" id="more"><button type="button" class="bigbtn" id="more-btn"><span id="more-label">Browse all 147 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 147 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">@@@ -1251,7 -1122,7 +1290,7 @@@<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">144 web animations with live demos and copyable prompts.</p>- <p class="foot-t">132 web animations with live demos and copyable prompts.</p>++ <p class="foot-t">147 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>@@@ -1378,12 -1244,9 +1417,15 @@@ const CATS=['toast-notification','Toast Notification','Short messages slide into a corner, then leave on their own. Best for updates.'],['segmented-control','Segmented Control','A highlight slides to the option you pick. Best for switching views.'],['pull-to-refresh','Pull to Refresh','Pulling a list down shows a spinner, then new items. Best for feeds.'],+ ['gradient-border','Animated Gradient Border','A band of colors runs around the edge of a card or button. Best for featured offers.'],+ ['spotlight-hover','Spotlight Hover Glow','A soft light follows the pointer and lights up the card edges near it. Best for feature grids.'],+ ['add-to-cart-fly','Add-to-Cart Fly','A copy of the product flies into the cart, which bumps and counts up. Best for shops.'],+ ['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.'],+ ['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 you can type in, and closes when done. Best for toolbars.'],+ ['button-loading-states','Button Loading States','The button turns into a spinner while it works, then a tick or a cross. Best for Save buttons.'],]},{@@@ -1464,13 -1323,10 +1506,14 @@@const PV={'smooth-scroll':'smoothsc','text-fill-on-scroll':'txtfill','scroll-velocity-skew':'vskew',- 'svg-line-draw':'linedraw','scrollspy-nav':'spy','scroll-background-color':'bgblend',+ 'svg-line-draw':'linedraw','scrollspy-nav':'spy','scroll-background-color':'bgblend','hide-on-scroll-header':'hideheader','hamburger-menu-toggle':'hamb','theme-toggle-morph':'thememorph','copy-to-clipboard':'copyfx','star-rating':'stars','toast-notification':'toast','segmented-control':'segct','pull-to-refresh':'pullref',+ 'gradient-border':'gradborder','spotlight-hover':'spotlight','add-to-cart-fly':'cartfly',+ 'drag-to-reorder':'reorder',+ 'rolling-numbers':'rollnum',+ 'typing-indicator':'typing',+ 'hold-to-confirm':'holdconf','expanding-search':'xsearch','button-loading-states':'btnload','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',@@@ -1599,12 -1448,9 +1642,15 @@@ const PLACES='toast-notification':['load'],'segmented-control':['menu','btn'],'pull-to-refresh':['load'],+ 'gradient-border':['btn','imgcard'],+ 'spotlight-hover':['imgcard','btn'],+ 'add-to-cart-fly':['btn'],+ 'drag-to-reorder':['menu'],+ 'rolling-numbers':['text','load'],+ 'typing-indicator':['load'],+ 'hold-to-confirm':['btn'],+ 'expanding-search':['menu','btn'],+ 'button-loading-states':['btn','load'],// 05'kinetic-typography':['text','intro'],'typewriter-effect':['text','intro'],@@@ -1668,27 -1510,13 +1714,30 @@@ const PICKS=['click-ripple','typewriterfunction pvMarkup(k){switch(k){case 'sig1': return '<div class="s1 anim">'+'<b></b>'.repeat(9)+'</div>';+ case 'hideheader': return '<span class="win"><span class="pg anim">'+[0,100,86,100,70,0,100,92,64,100,0,78,100,88].map(function(w){return w?'<b style="width:'+w+'%"></b>':'<b class="im"></b>';}).join('')+'</span><span class="bar anim"><span class="lg"></span><span class="nm"></span><span class="mn"></span></span></span>';case 'sig2': return '<span class="s2 anim"></span>';case 'sig3': return '<span class="s3 pa anim"></span><span class="s3 pb anim"></span>';+ case 'circlerev': return '<span class="pg"><b></b><b></b><b></b></span><span class="c anim"></span><span class="pg pb anim"><b></b><b></b><b></b></span><span class="t anim"></span>';+ case 'cubepage': return '<div class="sc"><span class="f a anim"><span class="pg"><b></b><b></b><b></b></span><i class="d anim"></i></span><span class="f b anim"><span class="pg"><b></b><b></b><b></b></span><i class="d anim"></i></span></div>';+ 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 '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>';+ 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 'holdconf': return '<span class="btn anim"><span class="fl anim"></span><span class="t t1 anim">HOLD TO DELETE</span><span class="t t2 anim">✓ DELETED</span></span>';+ case 'xsearch': return '<span class="tb"><i class="br"></i><span class="ln anim"><i></i><i></i><i></i></span><span class="fd anim"><i class="tx anim"></i></span><svg class="ic" viewBox="0 0 24 24"><circle cx="11" cy="11" r="6"/><path d="m19.5 19.5-4-4"/></svg></span><span class="pg"><i></i><i></i></span>';+ case 'btnload': return '<span class="bw"><span class="pl anim">SUBMIT</span><span class="cc anim"></span><span class="gc anim"></span><span class="sp anim"></span><svg class="tk anim" viewBox="0 0 24 24"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span>';case 'sig5': return '<span class="s5 anim"></span><span class="s5 anim"></span><span class="s5 anim"></span>';+ case 'hilite': return '<span class="ppr"><span class="ln"><b style="width:24%"></b><b class="k anim" style="width:40%"></b><b style="width:22%"></b></span>'++ '<span class="ln"><b style="width:20%"></b><b style="width:28%"></b><b class="k k2 anim" style="width:38%"></b></span>'++ '<span class="ln"><b class="k k3 anim" style="width:44%"></b><b style="width:30%"></b></span></span>';+ case 'splitflap': return ['BCDEFG','VWXYZA','OPQRST','ZABCDE'].map(function(s){return '<span class="t"><span class="col anim">'+s.split('').map(function(c){return '<b>'+c+'</b>';}).join('')+'</span><span class="fl anim"></span></span>';}).join('');+ case 'neon': return '<span class="sg"><span class="gl">OPEN</span><span class="lt anim">OPEN</span></span>';+ case 'handwrite': return '<span class="pp"><svg viewBox="-34 -90 180 100"><line class="rl" x1="-34" x2="146" y1="0" y2="0"/><path class="w anim" pathLength="1" d="M0 0C3 0 6.9-4 10.6-12C14.8-22 24.7-44 28.3-58C31.4-70 30.7-76 27.7-76C24.7-76 22.4-70 21.1-62C18.1-46 12.5-18 8.5 0C11.6-12 18.9-27 25.6-27.5C31.2-28 30.2-19 27.9-11C25.7-3 27.5 0 31 0C34.5 0 39.8-3.5 44-9C48.2-14.5 50.6-21 46.7-21.5C42.8-22 38-16 37.1-9.5C36-2.5 40.5 0 45 0C48 0 51.9-4 55.6-12C59.8-22 69.7-44 73.3-58C76.4-70 75.7-76 72.7-76C69.7-76 67.4-70 66.1-62C63.1-46 57-16 55.5-7C54.9-2 57 0 60 0C63 0 66.9-4 70.6-12C74.8-22 84.7-44 88.3-58C91.4-70 90.7-76 87.7-76C84.7-76 82.4-70 81.1-62C78.1-46 72-16 70.5-7C69.9-2 72 0 75 0C78 0 83.2-10 89.3-22C92.4-27 95.9-29 98.9-29C100.9-29 102.2-28 102.3-26.5C102.2-28 100.9-29 98.9-29C95.9-29 92.4-27 89.3-22C86.7-17 83.6-5 87.3-1.5C91.2 1.5 97.8-6 99.6-14C100.9-20 101.3-24 100.7-26C103.3-28.5 107.8-28.5 111.9-27"/></svg></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>';case 'aurora': return '<span class="band b1 anim"></span><span class="band b2 anim"></span><span class="band b3 anim"></span>';diff --cc sitemap.xmlindex d5f286cb,6a474d2f..8b741dd8--- a/sitemap.xml+++ b/sitemap.xml@@@ -86,12 -81,9 +86,15 @@@<url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/toast-notification/</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/segmented-control/</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/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/gradient-border/</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/spotlight-hover/</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/add-to-cart-fly/</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/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/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/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>