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: add 5 scroll-based techniques (129 total)
matin00e1216100bf
diff --git a/README.md b/README.mdindex c70a4265..59120b77 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 — 124 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 — 129 web animation techniques with live demos" width="820"></a># Animation Handbook-**A visual reference of 124 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 129 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>@@ -22,7 +22,7 @@ Every major web-animation technique in one place, each shown working. Open any f| # | Category | Count | What's in it ||:--:|----------|:-----:|--------------|-| 01 | [Scroll-Based](#01) | 21 | Animations driven by scroll position — parallax, sticky, scrub, snap, and narrative storytelling. |+| 01 | [Scroll-Based](#01) | 26 | 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) | 12 | Full-page transitions between routes or views — crossfades, slides, portals, morphs, and the browser-native API. || 04 | [Micro-Interactions](#04) | 29 | Short, user-triggered animations — hover, click, focus, loading states, and UI feedback patterns. |@@ -32,11 +32,11 @@ Every major web-animation technique in one place, each shown working. Open any f## Full catalog-All 124 techniques, each linked to its live demo.+All 129 techniques, each linked to its live demo.<a id="01"></a>-### 01 · Scroll-Based · 21 techniques+### 01 · Scroll-Based · 26 techniques<sub>Animations driven by scroll position — parallax, sticky, scrub, snap, and narrative storytelling.</sub>@@ -63,6 +63,11 @@ All 124 techniques, each linked to its live demo.- **[Zoom Into Image](animations/01-scroll-based/zoom-into-image/)** — clip-path expands from a framed card to full-bleed as you scroll — the portal effect.- **[Scroll Image Sequence](animations/01-scroll-based/scroll-image-sequence/)** — A canvas pinned with sticky; scroll progress maps to a frame index — the Apple product-scroll technique, frames drawn procedurally.- **[Smooth (Inertia) Scroll](animations/01-scroll-based/smooth-scroll/)** — Wheel and touch input eased toward a target each frame — weighted, gliding momentum instead of native jumps.+- **[Text Fill on Scroll](animations/01-scroll-based/text-fill-on-scroll/)** — A pinned paragraph fills word by word as you scroll — pause mid-read, scroll back and it un-reads.+- **[Scroll Velocity Skew](animations/01-scroll-based/scroll-velocity-skew/)** — Content shears with scroll speed and springs straight when you stop — motion mapped to velocity, not position.+- **[SVG Line Draw on Scroll](animations/01-scroll-based/svg-line-draw/)** — A winding route draws itself down the page via stroke-dashoffset, passing waypoints as you travel.+- **[Scrollspy Navigation](animations/01-scroll-based/scrollspy-nav/)** — A nav rail tracks the section in view with a sliding indicator — the docs-site pattern.+- **[Scroll-Driven Background Color](animations/01-scroll-based/scroll-background-color/)** — The background blends between section palettes as you scroll, flipping text contrast on light stops.</details>diff --git a/animations/01-scroll-based/README.md b/animations/01-scroll-based/README.mdindex 5a6bd0cc..1f053e72 100644--- a/animations/01-scroll-based/README.md+++ b/animations/01-scroll-based/README.md@@ -46,3 +46,13 @@ Techniques driven by scroll position.scroll progress maps to a frame index; the Apple product-scroll technique, frames drawn procedurally.- [Smooth (Inertia) Scroll](smooth-scroll/) — wheel and touch input eased toward a target eachframe with a lerp, giving weighted, gliding momentum instead of the browser's instant jumps.+- [Text Fill on Scroll](text-fill-on-scroll/) — a pinned paragraph fills word by word as scroll+ progress sweeps through it; pause mid-read, scroll back and it un-reads exactly.+- [Scroll Velocity Skew](scroll-velocity-skew/) — rows shear in proportion to scroll speed and spring+ straight on stop — velocity mapping, in contrast to every position-mapped entry.+- [SVG Line Draw on Scroll](svg-line-draw/) — a winding route draws itself down the page via+ stroke-dashoffset, popping waypoints as the line reaches them.+- [Scrollspy Navigation](scrollspy-nav/) — a nav rail tracks the section in view with a sliding+ indicator; clicking smooth-scrolls, with the spy locked during programmatic scroll.+- [Scroll-Driven Background Color](scroll-background-color/) — the stage background blends through a palette as+ you scroll, flipping text contrast automatically on light stops.diff --git a/animations/01-scroll-based/scroll-background-color/README.md b/animations/01-scroll-based/scroll-background-color/README.mdnew file mode 100644index 00000000..d586b41c--- /dev/null+++ b/animations/01-scroll-based/scroll-background-color/README.md@@ -0,0 +1,61 @@+# Scroll-Driven Background Color++## What it is++The page background continuously blends through a palette as the user scrolls, so each section appears to own its own color while the transitions between them are smooth gradients in time rather than hard cuts. It is a portfolio-site staple: the whole canvas becomes a scroll progress indicator. Because light palette entries would make light text unreadable, the text ink flips automatically based on the computed luminance of the current background.++## When to use it++- Portfolio and agency sites where each case study or section has a brand color+- Long-form landing pages that want a sense of journey without heavy imagery+- Storytelling pages where mood shifts (dark to light, cool to warm) reinforce the narrative+- As a cheap alternative to full-bleed section imagery — a color change reads as a scene change++## How it works++Scroll progress is normalized to `0..1`, scaled into palette segments, and the two neighboring colors are interpolated. Smoothstep eases each transition so the blend accelerates and decelerates instead of moving linearly:++```js+const p = clamp(scrollTop / maxScroll, 0, 1);+const seg = p * (palette.length - 1);+const i = Math.min(Math.floor(seg), palette.length - 2);+let t = seg - i;++t = clamp((t - (1 - window) / 2) / window, 0, 1); // blend window remap+t = t * t * (3 - 2 * t); // smoothstep++const r = Math.round(a[0] + (b[0] - a[0]) * t); // per-channel lerp+```++The contrast flip computes the relative luminance of the interpolated color and toggles a class when it crosses a threshold, swapping the section text from light ink to dark ink:++```js+const lum = (0.2126 * r + 0.7152 * g + 0.0722 * b) / 255;+stage.classList.toggle('light', lum > 0.55);+```++The scroll handler is rAF-coalesced and performs no layout reads; `maxScroll` is cached at init and on a debounced resize. The background write is guarded — channels are rounded and the write is skipped when the resulting string is unchanged.++## Key parameters++| Parameter | What it controls |+| --- | --- |+| Palette | Array of `[r, g, b]` stops, one per section. Order defines the journey; adjacent stops should not produce muddy midpoints. |+| Blend window | Fraction of each segment (0.3–1) that actually blends. At 1 the color moves continuously; narrower values hold each color near section centers and confine the transition to a band around each boundary. |+| Snap toggle | Replaces interpolation with `t = t < .5 ? 0 : 1` — a hard cut at each boundary. Exists to show why the blend matters. |+| Luminance threshold | The cutoff (0.55 here) above which the background counts as light and the text ink flips dark. Tune per palette. |++## Production notes++- `background-color` paints but does not trigger layout, so writing it per frame is cheap. Still guard the writes: skip when the rounded color string has not changed, and never read layout inside the scroll handler.+- Plain RGB interpolation is shown here for clarity, but it passes through the gray center of the color cube — blends between saturated hues can go muddy. In production, interpolate in a perceptual space: `oklch()` or `color-mix(in oklch, ...)` keeps midpoints vivid.+- Text contrast must be computed, not assumed. WCAG requires roughly 4.5:1 for body text through the *whole* blend, not just at the palette endpoints — a transition between two passing colors can pass through a failing midpoint. Check the worst-case intermediate colors, or pick ink pairs with generous margin.+- A CSS-only version is possible with `animation-timeline: scroll()` driving a keyframe animation over `background-color`; add `steps()` to reproduce the snap variant. Support is not yet universal, so treat it as progressive enhancement over the JS approach.+- If the site has a dark mode, the palettes need dark-mode counterparts and the luminance threshold may shift — a "light" background in dark mode is more jarring than the same color in light mode.+- Color change is not vestibular motion, so this demo deliberately keeps the blend running under `prefers-reduced-motion: reduce`. The preference targets movement — parallax, zoom, skew — not paint. Any transform-based decorations layered on top should still be disabled.++## See also++- [Scrollytelling](../scrollytelling/)+- [Animated Gradient Background](../../07-ambient-background/animated-gradient-background/)+- [Section Wipe](../section-wipe/)diff --git a/animations/01-scroll-based/scroll-background-color/index.html b/animations/01-scroll-based/scroll-background-color/index.htmlnew file mode 100644index 00000000..561070f7--- /dev/null+++ b/animations/01-scroll-based/scroll-background-color/index.html@@ -0,0 +1,180 @@+<!DOCTYPE html>+<html lang="en">+<head>+ <meta charset="UTF-8">+ <meta name="viewport" content="width=device-width, initial-scale=1.0">+ <title>Scroll-Driven Background Color — Animation Handbook</title>+ <meta name="description" content="The page background continuously blends between each section's color as you scroll — interpolation through a palette, not a snap at boundaries.">+ <link rel="canonical" href="https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-background-color/">+ <link rel="icon" type="image/svg+xml" href="../../../favicon.svg">+ <meta property="og:type" content="article">+ <meta property="og:site_name" content="Animation Handbook">+ <meta property="og:title" content="Scroll-Driven Background Color — Animation Handbook">+ <meta property="og:description" content="The page background continuously blends between each section's color as you scroll — interpolation through a palette, not a snap at boundaries.">+ <meta property="og:url" content="https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-background-color/">+ <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="Scroll-Driven Background Color — Animation Handbook">+ <meta name="twitter:description" content="The page background continuously blends between each section's color as you scroll — interpolation through a palette, not a snap at boundaries.">+ <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": "Scroll-Driven Background Color", "name": "Scroll-Driven Background Color", "description": "The page background continuously blends between each section's color as you scroll — interpolation through a palette, not a snap at boundaries.", "url": "https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-background-color/", "inLanguage": "en", "articleSection": "Scroll-Based", "isPartOf": {"@type": "WebSite", "name": "Animation Handbook", "url": "https://matinmonshizadeh.github.io/animation-handbook/"}, "author": {"@type": "Person", "name": "matinmonshizadeh"}, "keywords": "web animation, CSS animation, Scroll-Based, Scroll-Driven Background Color"}</script>+ <style>+ @font-face{font-family:'Bricolage';src:url('../../../assets/fonts/brico-700.woff2') format('woff2');font-weight:700;font-display:swap}+ @font-face{font-family:'Bricolage';src:url('../../../assets/fonts/brico-800.woff2') format('woff2');font-weight:800;font-display:swap}+ @font-face{font-family:'PlexMono';src:url('../../../assets/fonts/plex-400.woff2') format('woff2');font-weight:400;font-display:swap}+ @font-face{font-family:'PlexMono';src:url('../../../assets/fonts/plex-500.woff2') format('woff2');font-weight:500;font-display:swap}+ :root{--bg:#0b0b0d;--ui-bg:#111114;--ui-border:rgba(255,255,255,.09);--ui-accent:#6ea8ff;--ui-text:#f4f4f2;--ui-muted:#77777e;--stage-h:620px;--disp:'Bricolage','Arial Narrow',sans-serif;--mono:'PlexMono',ui-monospace,Menlo,Consolas,monospace}+ *,*::before,*::after{box-sizing:border-box;margin:0;padding:0}+ body{background:var(--bg);color:var(--ui-text);font-family:var(--mono);-webkit-font-smoothing:antialiased;padding:clamp(12px,3vw,24px)}+ header{margin-bottom:20px}+ header h1{font-family:var(--disp);font-weight:700;font-size:clamp(16px,2.2vw,22px);letter-spacing:-.01em}+ header p{font-size:clamp(10px,1.2vw,12px);color:var(--ui-muted);margin-top:4px}+ .layout{display:flex;gap:clamp(12px,2vw,24px);align-items:flex-start}+ .stage{flex:1;min-width:0;height:var(--stage-h);overflow-y:scroll;scrollbar-width:none;border:1px solid var(--ui-border);border-radius:8px;background:#0d1124}+ .stage::-webkit-scrollbar{display:none}+ section{min-height:calc(var(--stage-h)*0.9);display:flex;flex-direction:column;justify-content:center;padding:clamp(20px,4vw,48px);background:transparent}+ .num{font-size:clamp(11px,1.4vw,13px);letter-spacing:2px;color:rgba(255,255,255,.55)}+ .stage h2{font-family:var(--disp);font-weight:800;font-size:clamp(24px,4.5vw,44px);letter-spacing:-.02em;margin:10px 0 14px;color:#f4f4f2}+ .stage p{font-size:clamp(11px,1.4vw,13px);line-height:1.7;max-width:44ch;color:rgba(255,255,255,.7)}+ .stage.light h2{color:#16161a}+ .stage.light .num{color:rgba(0,0,0,.5)}+ .stage.light p{color:rgba(0,0,0,.62)}+ aside{width:clamp(200px,22vw,240px);flex-shrink:0;background:var(--ui-bg);border:1px solid var(--ui-border);border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:12px}+ .note{font-size:10px;color:var(--ui-muted);line-height:1.6;border-left:2px solid var(--ui-accent);padding-left:8px}+ .lbl{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--ui-accent)}+ .sr{display:flex;flex-direction:column;gap:4px}+ .sr .row2{display:flex;justify-content:space-between;font-size:10px;color:var(--ui-muted)}+ .sr .row2 .v{color:var(--ui-text)}+ input[type=range]{width:100%;min-height:44px;accent-color:var(--ui-accent);cursor:pointer}+ select{background:var(--ui-bg);border:1px solid var(--ui-border);color:var(--ui-text);font-family:var(--mono);font-size:10px;padding:8px 6px;border-radius:4px;width:100%;min-height:44px}+ .tog{display:flex;align-items:center;gap:8px;font-size:11px;cursor:pointer;min-height:44px;user-select:none}+ .tog input{accent-color:var(--ui-accent);width:18px;height:18px;flex-shrink:0}+ .div{height:1px;background:var(--ui-border)}+ .kv{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--ui-muted)}+ .kv .v{color:var(--ui-text);font-variant-numeric:tabular-nums}+ .swatch{display:inline-block;width:16px;height:16px;border-radius:4px;border:1px solid var(--ui-border);vertical-align:middle;margin-right:6px}+ @media(max-width:600px){.layout{flex-direction:column}aside{width:100%}.stage{flex:none;width:100%}:root{--stage-h:480px}}+ </style>+<style id="ah-inject">+:root{--ah-bg:rgba(17,17,20,.82);--ah-line:rgba(255,255,255,.1);--ah-ink:#f4f4f2;--ah-muted:#9a9aa2;--ah-accent:#6ea8ff}+body{padding-top:46px}+.ah-bar{position:fixed;top:0;left:0;right:0;height:46px;z-index:2147483000;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 clamp(10px,3vw,18px);background:var(--ah-bg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--ah-line);font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;box-sizing:border-box}+.ah-bar a,.ah-bar button{color:var(--ah-muted);text-decoration:none;background:none;border:0;font:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 7px;border-radius:6px;transition:color .18s,background .18s;white-space:nowrap}+.ah-bar a:hover,.ah-bar button:hover{color:var(--ah-ink)}+.ah-home{color:var(--ah-ink);font-weight:600}+.ah-actions{display:flex;align-items:center;gap:2px}+.ah-sep{width:1px;height:16px;background:var(--ah-line);margin:0 4px}+.ah-copied{color:var(--ah-accent)!important}+@media(max-width:600px){.ah-bar .ah-hideSm{display:none}}+@media print{.ah-bar{display:none}body{padding-top:0}}+</style>+</head>+<body>+<div class="ah-bar" role="navigation" aria-label="Animation Handbook"><a class="ah-home" href="../../../">← Animation Handbook</a><span class="ah-actions"><a class="ah-hideSm" href="../scrollspy-nav/" rel="prev" title="Previous">‹ Prev</a><span class="ah-sep ah-hideSm"></span><button type="button" id="ah-copy" class="ah-hideSm">Copy source</button><a class="ah-hideSm" href="https://github.com/matinmonshizadeh/animation-handbook/blob/main/animations/01-scroll-based/scroll-background-color/index.html" target="_blank" rel="noopener noreferrer">Source ↗</a></span></div>+<header>+ <h1>Scroll-Driven Background Color</h1>+ <p>The page background continuously blends between each section's color as you scroll — interpolation through a palette, not a snap at boundaries.</p>+</header>+<div class="layout">+ <div class="stage" id="stage"></div>+ <aside>+ <p class="note" id="note">Scroll position maps to a segment of the palette, and the two neighboring colors are interpolated. Toggle "Snap at boundaries" to see the difference between hard cuts and blending — the blend is what sells the effect.</p>+ <div class="lbl">Theme</div>+ <select id="theme" aria-label="Color theme">+ <option value="dusk" selected>Dusk</option>+ <option value="daylight">Daylight</option>+ <option value="forest">Forest</option>+ </select>+ <div class="lbl">Blend window</div>+ <div class="sr">+ <input type="range" id="win" min="0.3" max="1" step="0.05" value="1">+ <div class="row2"><span>of each segment</span><span class="v" id="winVal">1.00</span></div>+ </div>+ <label class="tog"><input type="checkbox" id="snap"> Snap at boundaries</label>+ <div class="div"></div>+ <div class="lbl">Live values</div>+ <div class="kv"><span>Scroll</span><span class="v" id="pctVal">0%</span></div>+ <div class="kv"><span>Segment</span><span class="v" id="segVal">1 → 2</span></div>+ <div class="kv"><span>Background</span><span class="v"><span class="swatch" id="swatch"></span><span id="hexVal">#0d1124</span></span></div>+ </aside>+</div>+<script>+ const stage=document.getElementById('stage'),note=document.getElementById('note');+ const pctVal=document.getElementById('pctVal'),segVal=document.getElementById('segVal');+ const swatch=document.getElementById('swatch'),hexVal=document.getElementById('hexVal');+ const clamp=(v,a,b)=>Math.min(Math.max(v,a),b);++ const THEMES={+ dusk: [[13,17,36],[28,36,84],[70,44,120],[122,52,98],[88,40,34]],+ daylight:[[18,26,48],[86,138,198],[235,228,214],[248,214,160],[40,52,72]],+ forest: [[10,26,20],[22,60,44],[46,108,78],[104,150,116],[16,42,50]]+ };+ const CHAPTERS=[+ ['Departure','The first section owns the darkest color.','Scroll down and the ground shifts under the text.'],+ ['Ascent','Halfway between two sections the background is','a literal mix of both palette entries.'],+ ['Meridian','On light palettes the ink flips automatically —','luminance is computed, never assumed.'],+ ['Descent','A narrower blend window holds each color steady','near section centers and blends only at edges.'],+ ['Arrival','Snapping at boundaries shows what the effect','looks like without interpolation. Jarring.']+ ];+ stage.innerHTML=CHAPTERS.map((c,i)=>+ `<section><div class="num">CHAPTER ${String(i+1).padStart(2,'0')}</div><h2>${c[0]}</h2><p>${c[1]}<br>${c[2]}</p></section>`).join('');++ let PAL=THEMES.dusk,WIN=1,SNAP=false;+ let maxScroll=1,lastBg='',isLight=false,ticking=false;++ // Layout reads live here only — never in the scroll handler.+ function measure(){maxScroll=Math.max(1,stage.scrollHeight-stage.clientHeight);}++ const hex=n=>n.toString(16).padStart(2,'0');++ function update(){+ const p=clamp(stage.scrollTop/maxScroll,0,1);+ const seg=p*(PAL.length-1);+ const i=Math.min(Math.floor(seg),PAL.length-2);+ let t=seg-i;+ if(SNAP){t=t<.5?0:1;}+ else{+ t=clamp((t-(1-WIN)/2)/WIN,0,1); // remap into the blend window around the boundary+ t=t*t*(3-2*t); // smoothstep+ }+ const a=PAL[i],b=PAL[i+1];+ const r=Math.round(a[0]+(b[0]-a[0])*t),+ g=Math.round(a[1]+(b[1]-a[1])*t),+ bl=Math.round(a[2]+(b[2]-a[2])*t);+ const css=`rgb(${r},${g},${bl})`;+ if(css!==lastBg){ // guard: skip identical writes+ lastBg=css;+ stage.style.background=css;+ swatch.style.background=css;+ hexVal.textContent='#'+hex(r)+hex(g)+hex(bl);+ const lum=(0.2126*r+0.7152*g+0.0722*bl)/255;+ const light=lum>0.55;+ if(light!==isLight){isLight=light;stage.classList.toggle('light',light);}+ }+ pctVal.textContent=Math.round(p*100)+'%';+ segVal.textContent=(i+1)+' → '+(i+2);+ }++ stage.addEventListener('scroll',()=>{+ if(ticking)return; // rAF-coalesced: one update per frame+ ticking=true;+ requestAnimationFrame(()=>{ticking=false;update();});+ },{passive:true});++ const winInp=document.getElementById('win'),winVal=document.getElementById('winVal');+ winInp.addEventListener('input',()=>{WIN=parseFloat(winInp.value);winVal.textContent=WIN.toFixed(2);update();});+ document.getElementById('snap').addEventListener('change',e=>{SNAP=e.target.checked;update();});+ document.getElementById('theme').addEventListener('change',e=>{PAL=THEMES[e.target.value];update();});++ // Color change is not vestibular motion — the blend stays on under reduced+ // motion, deliberately. There are no transform-based decorations to disable.+ if(window.matchMedia('(prefers-reduced-motion: reduce)').matches){+ note.textContent='Reduced motion is on. The color blend is kept: it tracks scroll position directly and involves no movement, parallax, or transforms — background color is not vestibular motion.';+ }++ let rt;window.addEventListener('resize',()=>{clearTimeout(rt);rt=setTimeout(()=>{measure();update();},150);});+ measure();update();+</script>+<script>(function(){var b=document.getElementById("ah-copy");if(!b)return;b.addEventListener("click",function(){fetch(location.href).then(function(r){return r.text();}).catch(function(){return document.documentElement.outerHTML;}).then(function(t){return navigator.clipboard.writeText(t);}).then(function(){b.textContent="Copied!";b.classList.add("ah-copied");setTimeout(function(){b.textContent="Copy source";b.classList.remove("ah-copied");},1500);}).catch(function(){b.textContent="Copy failed";setTimeout(function(){b.textContent="Copy source";},1500);});});})();</script>+</body>+</html>diff --git a/animations/01-scroll-based/scroll-velocity-skew/README.md b/animations/01-scroll-based/scroll-velocity-skew/README.mdnew file mode 100644index 00000000..ecd594a0--- /dev/null+++ b/animations/01-scroll-based/scroll-velocity-skew/README.md@@ -0,0 +1,52 @@+# Scroll Velocity Skew++## What it is++A distortion effect where content shears in proportion to how *fast* the user is scrolling, not where they are on the page. Scroll quickly and rows of content skew a few degrees in the direction of travel; stop scrolling and the smoothed velocity decays to zero, so the shear relaxes back to straight on its own. It is the signature move of Locomotive Scroll-era portfolio sites, and it is this handbook's only entry driven by scroll velocity rather than scroll position.++## When to use it++- Portfolio and agency sites that want scrolling itself to feel like a physical gesture+- Image or project grids where a subtle shear adds motion without any choreographed timeline+- Alongside a smooth-scroll implementation, which already tracks velocity for free+- Anywhere you want feedback tied to the *energy* of the scroll rather than its location++## How it works++Every technique elsewhere in this section maps scroll **position** to animation progress. This one maps scroll **velocity**: the per-frame difference in `scrollTop`. The raw delta is noisy and spiky, so it is smoothed with a lerp before being scaled and clamped into a skew angle:++```js+function tick() {+ const raw = el.scrollTop - lastTop; // px moved since last frame+ lastTop = el.scrollTop;+ vel += (raw - vel) * SMOOTH; // low-pass filter the spikes+ const skew = clamp(vel * INTENSITY, -MAX, MAX);+ rows.forEach(r => r.style.transform = `skewY(${skew}deg)`);+ requestAnimationFrame(tick);+}+```++The smoothing is what makes the effect feel physical. Raw deltas would snap the skew on and off with every wheel notch; the lerp turns them into a value with inertia, so the shear ramps up as you accelerate and eases back down after you stop — a spring-back you get for free, without writing any spring code. The loop only runs while there is motion: when the smoothed velocity falls below a threshold and no new scroll event has arrived, it writes an identity transform and parks itself until the next scroll.++## Key parameters++| Parameter | Default | What it does |+|-----------|---------|--------------|+| `INTENSITY` | 0.35 | Degrees of skew per px/frame of smoothed velocity — the overall strength |+| `MAX` | 12° | Clamp on the skew angle; keeps a fast flick from folding the layout in half |+| `SMOOTH` | 0.12 | Lerp factor for the velocity filter; lower = heavier, longer settle, higher = twitchier |+| Axis | `skewY` | `skewY` shears rows vertically (the classic look); `skewX` slants them sideways |++## Production notes++- **Velocity vs position mapping is the core distinction.** Position-mapped effects (scrub, parallax, progress bars) are deterministic and reversible: the same scroll offset always produces the same frame, and scrolling back replays it in reverse. Velocity mapping is transient and additive: the same offset can look different depending on how you arrived, and the effect always decays to nothing at rest. Position tells a story; velocity adds feel.+- Idle the `requestAnimationFrame` loop once velocity settles. A velocity effect spends most of its life at zero, and a loop that runs forever burns battery to write the same transform.+- Skewing each row individually (with `will-change: transform`) reads as material shearing under momentum; skewing one giant wrapper reads as the whole page tilting, which is usually less convincing and produces larger paint areas.+- This effect is a genuine vestibular trigger — whole-viewport shearing tied to user input is exactly what `prefers-reduced-motion` exists for. Under `reduce`, hold the skew at 0 permanently while leaving scrolling itself untouched.+- In production this usually rides on a smooth-scroll library rather than raw `scrollTop` deltas: Locomotive Scroll exposes `speed` on its scroll event, and GSAP's ScrollTrigger provides `self.getVelocity()`, both already smoothed. The mapping from velocity to transform is the same either way.++## See also++- [Smooth (Inertia) Scroll](../smooth-scroll/) — the lerp-toward-target loop this effect usually rides on+- [Scrub Animation](../scrub-animation/) — the position-mapped counterpart: deterministic, reversible progress+- [Marquee Ticker](../../05-text-typography/marquee-ticker/) — often paired with velocity skew, with scroll speed modulating ticker speeddiff --git a/animations/01-scroll-based/scroll-velocity-skew/index.html b/animations/01-scroll-based/scroll-velocity-skew/index.htmlnew file mode 100644index 00000000..85d6dda1--- /dev/null+++ b/animations/01-scroll-based/scroll-velocity-skew/index.html@@ -0,0 +1,192 @@+<!DOCTYPE html>+<html lang="en">+<head>+ <meta charset="UTF-8">+ <meta name="viewport" content="width=device-width, initial-scale=1.0">+ <title>Scroll Velocity Skew — Animation Handbook</title>+ <meta name="description" content="Rows shear in proportion to how fast you scroll — velocity, not position, drives the transform, so stopping lets everything spring back straight.">+ <link rel="canonical" href="https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-velocity-skew/">+ <link rel="icon" type="image/svg+xml" href="../../../favicon.svg">+ <meta property="og:type" content="article">+ <meta property="og:site_name" content="Animation Handbook">+ <meta property="og:title" content="Scroll Velocity Skew — Animation Handbook">+ <meta property="og:description" content="Rows shear in proportion to how fast you scroll — velocity, not position, drives the transform, so stopping lets everything spring back straight.">+ <meta property="og:url" content="https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-velocity-skew/">+ <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="Scroll Velocity Skew — Animation Handbook">+ <meta name="twitter:description" content="Rows shear in proportion to how fast you scroll — velocity, not position, drives the transform, so stopping lets everything spring back straight.">+ <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": "Scroll Velocity Skew", "name": "Scroll Velocity Skew", "description": "Rows shear in proportion to how fast you scroll — velocity, not position, drives the transform, so stopping lets everything spring back straight.", "url": "https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-velocity-skew/", "inLanguage": "en", "articleSection": "Scroll-Based", "isPartOf": {"@type": "WebSite", "name": "Animation Handbook", "url": "https://matinmonshizadeh.github.io/animation-handbook/"}, "author": {"@type": "Person", "name": "matinmonshizadeh"}, "keywords": "web animation, CSS animation, Scroll-Based, Scroll Velocity Skew"}</script>+ <style>+ @font-face{font-family:'Bricolage';src:url('../../../assets/fonts/brico-700.woff2') format('woff2');font-weight:700;font-display:swap}+ @font-face{font-family:'Bricolage';src:url('../../../assets/fonts/brico-800.woff2') format('woff2');font-weight:800;font-display:swap}+ @font-face{font-family:'PlexMono';src:url('../../../assets/fonts/plex-400.woff2') format('woff2');font-weight:400;font-display:swap}+ @font-face{font-family:'PlexMono';src:url('../../../assets/fonts/plex-500.woff2') format('woff2');font-weight:500;font-display:swap}+ :root{--bg:#0b0b0d;--ui-bg:#111114;--ui-border:rgba(255,255,255,.09);--ui-accent:#6ea8ff;--ui-text:#f4f4f2;--ui-muted:#77777e;--stage-h:620px;--disp:'Bricolage','Arial Narrow',sans-serif;--mono:'PlexMono',ui-monospace,Menlo,Consolas,monospace}+ *,*::before,*::after{box-sizing:border-box;margin:0;padding:0}+ body{background:var(--bg);color:var(--ui-text);font-family:var(--mono);-webkit-font-smoothing:antialiased;padding:clamp(12px,3vw,24px)}+ header{margin-bottom:20px}+ header h1{font-family:var(--disp);font-weight:700;font-size:clamp(16px,2.2vw,22px);letter-spacing:-.01em}+ header p{font-size:clamp(10px,1.2vw,12px);color:var(--ui-muted);margin-top:4px}+ .layout{display:flex;gap:clamp(12px,2vw,24px);align-items:flex-start}+ .stage{flex:1;min-width:0;height:var(--stage-h);overflow-y:scroll;scrollbar-width:none;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-bg)}+ .stage::-webkit-scrollbar{display:none}+ .content{padding:clamp(16px,3vw,32px);display:flex;flex-direction:column;gap:clamp(14px,2vw,22px)}+ .row{display:flex;gap:clamp(10px,2vw,18px);align-items:center;padding:clamp(10px,1.6vw,16px);background:rgba(255,255,255,.03);border:1px solid var(--ui-border);border-radius:8px;will-change:transform}+ .thumb{flex-shrink:0;width:clamp(72px,14vw,120px);aspect-ratio:4/3;border-radius:6px}+ .meta{min-width:0;flex:1}+ .m-title{font-family:var(--disp);font-weight:700;font-size:clamp(13px,1.8vw,17px);margin-bottom:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}+ .m-line{height:7px;border-radius:4px;background:rgba(255,255,255,.08);margin-top:6px}+ .m-line.short{width:62%}+ .m-tag{font-size:10px;color:var(--ui-muted);margin-top:8px;letter-spacing:.5px}+ aside{width:clamp(200px,22vw,240px);flex-shrink:0;background:var(--ui-bg);border:1px solid var(--ui-border);border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:12px}+ .note{font-size:10px;color:var(--ui-muted);line-height:1.6;border-left:2px solid var(--ui-accent);padding-left:8px}+ .lbl{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--ui-accent)}+ .sr{display:flex;flex-direction:column;gap:4px}+ .sr .row2{display:flex;justify-content:space-between;font-size:10px;color:var(--ui-muted)}+ .sr .row2 .v{color:var(--ui-text)}+ input[type=range]{width:100%;min-height:44px;accent-color:var(--ui-accent);cursor:pointer}+ .seg{display:flex;gap:6px}+ .seg button{flex:1;min-height:44px;font:inherit;font-size:11px;color:var(--ui-muted);background:none;border:1px solid var(--ui-border);border-radius:6px;cursor:pointer}+ .seg button[aria-pressed="true"]{color:var(--ui-text);border-color:var(--ui-accent);background:rgba(110,168,255,.08)}+ .div{height:1px;background:var(--ui-border)}+ .kv{display:flex;justify-content:space-between;font-size:10px;color:var(--ui-muted)}+ .kv .v{color:var(--ui-text);font-variant-numeric:tabular-nums}+ @media(max-width:600px){.layout{flex-direction:column}aside{width:100%}.stage{flex:none;width:100%}:root{--stage-h:480px}}+ </style>+<style id="ah-inject">+:root{--ah-bg:rgba(17,17,20,.82);--ah-line:rgba(255,255,255,.1);--ah-ink:#f4f4f2;--ah-muted:#9a9aa2;--ah-accent:#6ea8ff}+body{padding-top:46px}+.ah-bar{position:fixed;top:0;left:0;right:0;height:46px;z-index:2147483000;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 clamp(10px,3vw,18px);background:var(--ah-bg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--ah-line);font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;box-sizing:border-box}+.ah-bar a,.ah-bar button{color:var(--ah-muted);text-decoration:none;background:none;border:0;font:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 7px;border-radius:6px;transition:color .18s,background .18s;white-space:nowrap}+.ah-bar a:hover,.ah-bar button:hover{color:var(--ah-ink)}+.ah-home{color:var(--ah-ink);font-weight:600}+.ah-actions{display:flex;align-items:center;gap:2px}+.ah-sep{width:1px;height:16px;background:var(--ah-line);margin:0 4px}+.ah-copied{color:var(--ah-accent)!important}+@media(max-width:600px){.ah-bar .ah-hideSm{display:none}}+@media print{.ah-bar{display:none}body{padding-top:0}}+</style>+</head>+<body>+<div class="ah-bar" role="navigation" aria-label="Animation Handbook"><a class="ah-home" href="../../../">← Animation Handbook</a><span class="ah-actions"><a class="ah-hideSm" href="../text-fill-on-scroll/" rel="prev" title="Previous">‹ Prev</a><a class="ah-hideSm" href="../svg-line-draw/" rel="next" title="Next">Next ›</a><span class="ah-sep ah-hideSm"></span><button type="button" id="ah-copy" class="ah-hideSm">Copy source</button><a class="ah-hideSm" href="https://github.com/matinmonshizadeh/animation-handbook/blob/main/animations/01-scroll-based/scroll-velocity-skew/index.html" target="_blank" rel="noopener noreferrer">Source ↗</a></span></div>+<header>+ <h1>Scroll Velocity Skew</h1>+ <p>Rows shear in proportion to how fast you scroll — velocity, not position, drives the transform, so stopping lets everything spring back straight.</p>+</header>+<div class="layout">+ <div class="stage" id="stage"><div class="content" id="content"></div></div>+ <aside>+ <p class="note" id="note">Skew is mapped to smoothed scroll velocity, not scroll position. Scroll fast and the rows shear; the moment you stop, velocity decays to zero and the shear relaxes away.</p>+ <div class="lbl">Intensity</div>+ <div class="sr">+ <input type="range" id="intensity" min="0.1" max="0.8" step="0.05" value="0.35">+ <div class="row2"><span>deg per px/f</span><span class="v" id="intensityVal">0.35</span></div>+ </div>+ <div class="lbl">Max skew</div>+ <div class="sr">+ <input type="range" id="maxSkew" min="4" max="20" step="1" value="12">+ <div class="row2"><span>clamp</span><span class="v" id="maxSkewVal">12°</span></div>+ </div>+ <div class="lbl">Smoothing</div>+ <div class="sr">+ <input type="range" id="smooth" min="0.05" max="0.3" step="0.01" value="0.12">+ <div class="row2"><span>lerp factor</span><span class="v" id="smoothVal">0.12</span></div>+ </div>+ <div class="lbl">Axis</div>+ <div class="seg">+ <button type="button" id="axisY" aria-pressed="true">skewY</button>+ <button type="button" id="axisX" aria-pressed="false">skewX</button>+ </div>+ <div class="div"></div>+ <div class="lbl">Live values</div>+ <div class="kv"><span>Velocity</span><span class="v" id="velVal">+0.0 px/f</span></div>+ <div class="kv"><span>Skew</span><span class="v" id="skewVal">0.00°</span></div>+ <div class="kv"><span>Direction</span><span class="v" id="dirVal">·</span></div>+ <div class="kv"><span>Position</span><span class="v" id="posVal">0%</span></div>+ </aside>+</div>+<script>+ const stage=document.getElementById('stage'),content=document.getElementById('content');+ const velVal=document.getElementById('velVal'),skewVal=document.getElementById('skewVal'),dirVal=document.getElementById('dirVal'),posVal=document.getElementById('posVal');+ const note=document.getElementById('note');+ const clamp=(v,a,b)=>Math.min(Math.max(v,a),b);++ // Build ~14 media-card-like rows: gradient thumbnail + placeholder text lines.+ const rows=[];+ const NAMES=['Signal','Drift','Cascade','Vector','Halide','Meridian','Pulse','Strata','Kelvin','Orbit','Fathom','Relay','Cinder','Apex'];+ for(let i=0;i<14;i++){+ const hue=(210+i*22)%360;+ const el=document.createElement('div');el.className='row';+ el.innerHTML=`<div class="thumb" style="background:linear-gradient(135deg,hsl(${hue} 45% 42%),hsl(${(hue+40)%360} 55% 22%))"></div>`++ `<div class="meta"><div class="m-title">${String(i+1).padStart(2,'0')} — ${NAMES[i]}</div>`++ `<div class="m-line"></div><div class="m-line short"></div><div class="m-tag">scroll to shear</div></div>`;+ content.appendChild(el);rows.push(el);+ }++ let INTENSITY=0.35,MAX=12,SMOOTH=0.12,axis='skewY';+ let vel=0,lastTop=stage.scrollTop,lastSkew=0,running=false,scrolled=false,maxScroll=1,reduce=false;++ // Layout reads live here only — never in the scroll handler.+ function measure(){maxScroll=Math.max(1,stage.scrollHeight-stage.clientHeight);}++ function applySkew(deg){+ const r=Math.round(deg*100)/100;+ if(r===lastSkew)return; // guard: skip identical writes+ lastSkew=r;+ const t=r===0?'none':`${axis}(${r}deg)`;+ for(const el of rows)el.style.transform=t;+ }++ function tick(){+ const top=stage.scrollTop;+ const raw=top-lastTop;lastTop=top; // px moved this frame+ vel+=(raw-vel)*SMOOTH; // lerp-smooth the raw delta+ applySkew(reduce?0:clamp(vel*INTENSITY,-MAX,MAX));+ velVal.textContent=(vel<0?'−':'+')+Math.abs(vel).toFixed(1)+' px/f';+ skewVal.textContent=lastSkew.toFixed(2)+'°';+ dirVal.textContent=Math.abs(vel)<0.05?'·':(vel>0?'↓':'↑');+ posVal.textContent=Math.round(top/maxScroll*100)+'%';+ if(Math.abs(vel)<0.01&&!scrolled){ // settled: park the loop+ vel=0;applySkew(0);+ velVal.textContent='+0.0 px/f';skewVal.textContent='0.00°';dirVal.textContent='·';+ running=false;return;+ }+ scrolled=false;+ requestAnimationFrame(tick);+ }++ stage.addEventListener('scroll',()=>{+ scrolled=true;+ if(!running){running=true;lastTop=stage.scrollTop;requestAnimationFrame(tick);}+ },{passive:true});++ const rangeIds=[['intensity','intensityVal',v=>{INTENSITY=v;return v.toFixed(2)}],+ ['maxSkew','maxSkewVal',v=>{MAX=v;return v+'°'}],+ ['smooth','smoothVal',v=>{SMOOTH=v;return v.toFixed(2)}]];+ for(const[id,out,set]of rangeIds){+ const inp=document.getElementById(id),lab=document.getElementById(out);+ inp.addEventListener('input',()=>{lab.textContent=set(parseFloat(inp.value));});+ }+ const axisY=document.getElementById('axisY'),axisX=document.getElementById('axisX');+ function setAxis(a){+ axis=a;axisY.setAttribute('aria-pressed',a==='skewY');axisX.setAttribute('aria-pressed',a==='skewX');+ lastSkew=NaN;applySkew(reduce?0:clamp(vel*INTENSITY,-MAX,MAX));+ }+ axisY.addEventListener('click',()=>setAxis('skewY'));+ axisX.addEventListener('click',()=>setAxis('skewX'));++ const rmq=window.matchMedia('(prefers-reduced-motion: reduce)');+ function onReduce(){+ reduce=rmq.matches;+ if(reduce){vel=0;lastSkew=NaN;applySkew(0);note.textContent='Reduced motion is on: scrolling stays normal but the skew is held at 0°. Velocity-driven shear is exactly the kind of motion this preference exists to suppress.';}+ }+ rmq.addEventListener('change',onReduce);onReduce();++ let rt;window.addEventListener('resize',()=>{clearTimeout(rt);rt=setTimeout(measure,150);});+ measure();+</script>+<script>(function(){var b=document.getElementById("ah-copy");if(!b)return;b.addEventListener("click",function(){fetch(location.href).then(function(r){return r.text();}).catch(function(){return document.documentElement.outerHTML;}).then(function(t){return navigator.clipboard.writeText(t);}).then(function(){b.textContent="Copied!";b.classList.add("ah-copied");setTimeout(function(){b.textContent="Copy source";b.classList.remove("ah-copied");},1500);}).catch(function(){b.textContent="Copy failed";setTimeout(function(){b.textContent="Copy source";},1500);});});})();</script>+</body>+</html>diff --git a/animations/01-scroll-based/scrollspy-nav/README.md b/animations/01-scroll-based/scrollspy-nav/README.mdnew file mode 100644index 00000000..51608bc3--- /dev/null+++ b/animations/01-scroll-based/scrollspy-nav/README.md@@ -0,0 +1,62 @@+# Scrollspy Navigation++## What it is++Scrollspy is the docs-site pattern where a navigation rail watches the scroll position and highlights the link for the section currently in view, with an indicator that slides between links as sections change. Clicking a link smooth-scrolls to that section. The nav and the content stay in sync in both directions — scroll drives the nav, the nav drives scroll.++## When to use it++- Documentation pages with a table of contents in a side rail+- Long-form articles or legal pages with an "on this page" outline+- Single-page marketing sites with an anchored header menu+- Settings or profile pages split into labeled subsections+- Any page long enough that the reader needs to know where they are++## How it works++Each section's top is measured once and cached in the scroll container's own coordinate space, then every scroll frame compares an *activation line* — the scroll offset plus a fraction of the viewport height — against those cached tops. The active section is the last one whose top sits above the line. The DOM is only touched when the active index actually changes, and the indicator moves by a CSS transition on `transform`, so a state change costs one style write.++```js+function measure() {+ const sRect = stage.getBoundingClientRect();+ tops = sections.map(el => {+ const r = el.getBoundingClientRect();+ return r.top - sRect.top + stage.scrollTop; // container-relative, not offsetTop+ });+ maxScroll = stage.scrollHeight - stage.clientHeight;+}++function spy() {+ if (targetLock > -1) return; // programmatic scroll in flight+ const line = stage.scrollTop + stage.clientHeight * activation;+ let i = 0;+ for (let k = 0; k < tops.length; k++) if (tops[k] <= line) i = k;+ if (stage.scrollTop >= maxScroll - 1) i = tops.length - 1;+ if (i !== active) setActive(i); // guarded swap — one write per change+}+```++Clicking a link sets `targetLock` to the destination index, activates it immediately, and starts the smooth scroll. While the lock is held, `spy()` skips its own computation so the indicator does not flicker across every intermediate section the scroll passes through. The lock clears on `scrollend`, with a fallback timeout that fires ~150 ms after the last scroll event for browsers without that event.++## Key parameters++| Parameter | Default | Effect |+| --- | --- | --- |+| Activation line | 35% of viewport height | How far into the viewport a section's top must rise before it becomes active. Lower values activate sections earlier. |+| Indicator transition | `transform .25s ease` | How the accent bar travels between links. A transition (not per-frame writes) suffices because the position only changes on a state change. |+| Click behavior | `smooth` | Passed to `scrollTo`. Falls back to `auto` (instant jump) when the user has reduced motion enabled or toggles smooth scrolling off. |++## Production notes++- **The nav must live outside the scroller.** An absolutely positioned element inside a scroll container scrolls away with the content. Position the rail in a non-scrolling wrapper around the container (or `position: sticky` / `fixed` when the scroller is the page itself).+- **`offsetTop` is the recurring trap.** `offsetTop` is relative to the nearest positioned ancestor, which in a nested-scroller layout is usually *not* the scroll container — here it would be body-relative and every comparison would be wrong. Measure with `getBoundingClientRect()` relative to the container's rect plus its `scrollTop`, and re-measure on resize.+- **The last section is often too short to become active.** If it is shorter than the distance from the activation line to the bottom of the viewport, its top can never cross the line. Force the last index when `scrollTop` reaches `maxScroll` (this demo also adds a trailing run-out so the final section has room). Without this, the last nav link is unreachable by scrolling.+- **Suppress spy updates during programmatic scroll.** A smooth scroll from section 1 to section 5 passes through 2, 3, and 4; without a lock the indicator rapid-fires across every link in between. Activate the target immediately, ignore spy results until the scroll settles, then resume.+- **IntersectionObserver is not a drop-in replacement.** It tells you which sections intersect a band, but scrollspy needs *exactly one* active section at all times — sections taller than the viewport report no intersection with a thin band unless you observe carefully-tuned `rootMargin` bands, and ties between two intersecting sections still need a scroll-position tiebreak. For "one active link" semantics, the cached-tops comparison is simpler and deterministic.+- **Using native anchors instead?** If you link with `href="#section"` and let the browser jump, set `scroll-margin-top` on the targets so a fixed header does not cover the section heading, and use `scroll-behavior: smooth` on the scroller.++## See also++- [ScrollTrigger Animation](../scroll-trigger/)+- [Progress Bar](../progress-bar/)+- [Snap Scrolling](../snap-scrolling/)diff --git a/animations/01-scroll-based/scrollspy-nav/index.html b/animations/01-scroll-based/scrollspy-nav/index.htmlnew file mode 100644index 00000000..da390571--- /dev/null+++ b/animations/01-scroll-based/scrollspy-nav/index.html@@ -0,0 +1,186 @@+<!DOCTYPE html>+<html lang="en">+<head>+ <meta charset="UTF-8">+ <meta name="viewport" content="width=device-width, initial-scale=1.0">+ <title>Scrollspy Navigation — Animation Handbook</title>+ <meta name="description" content="A nav rail that tracks the section in view — the indicator slides to the active link; clicking a link smooth-scrolls to its section.">+ <link rel="canonical" href="https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scrollspy-nav/">+ <link rel="icon" type="image/svg+xml" href="../../../favicon.svg">+ <meta property="og:type" content="article">+ <meta property="og:site_name" content="Animation Handbook">+ <meta property="og:title" content="Scrollspy Navigation — Animation Handbook">+ <meta property="og:description" content="A nav rail that tracks the section in view — the indicator slides to the active link; clicking a link smooth-scrolls to its section.">+ <meta property="og:url" content="https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scrollspy-nav/">+ <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="Scrollspy Navigation — Animation Handbook">+ <meta name="twitter:description" content="A nav rail that tracks the section in view — the indicator slides to the active link; clicking a link smooth-scrolls to its section.">+ <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": "Scrollspy Navigation", "name": "Scrollspy Navigation", "description": "A nav rail that tracks the section in view — the indicator slides to the active link; clicking a link smooth-scrolls to its section.", "url": "https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scrollspy-nav/", "inLanguage": "en", "articleSection": "Scroll-Based", "isPartOf": {"@type": "WebSite", "name": "Animation Handbook", "url": "https://matinmonshizadeh.github.io/animation-handbook/"}, "author": {"@type": "Person", "name": "matinmonshizadeh"}, "keywords": "web animation, CSS animation, Scroll-Based, Scrollspy Navigation"}</script>+ <style>+ @font-face{font-family:'Bricolage';src:url('../../../assets/fonts/brico-700.woff2') format('woff2');font-weight:700;font-display:swap}+ @font-face{font-family:'Bricolage';src:url('../../../assets/fonts/brico-800.woff2') format('woff2');font-weight:800;font-display:swap}+ @font-face{font-family:'PlexMono';src:url('../../../assets/fonts/plex-400.woff2') format('woff2');font-weight:400;font-display:swap}+ @font-face{font-family:'PlexMono';src:url('../../../assets/fonts/plex-500.woff2') format('woff2');font-weight:500;font-display:swap}+ :root{--bg:#0b0b0d;--ui-bg:#111114;--ui-border:rgba(255,255,255,.09);--ui-accent:#6ea8ff;--ui-text:#f4f4f2;--ui-muted:#77777e;--stage-h:620px;--disp:'Bricolage','Arial Narrow',sans-serif;--mono:'PlexMono',ui-monospace,Menlo,Consolas,monospace}+ *,*::before,*::after{box-sizing:border-box;margin:0;padding:0}+ body{background:var(--bg);color:var(--ui-text);font-family:var(--mono);-webkit-font-smoothing:antialiased;padding:clamp(12px,3vw,24px)}+ header{margin-bottom:20px}+ header h1{font-family:var(--disp);font-weight:700;font-size:clamp(11px,1.8vw,15px);letter-spacing:-.01em}+ header p{font-size:clamp(10px,1.2vw,12px);color:var(--ui-muted);margin-top:4px}+ .layout{display:flex;gap:clamp(12px,2vw,24px);align-items:flex-start}+ .stage-wrap{flex:1;min-width:0;position:relative}+ .stage{width:100%;height:var(--stage-h);overflow-y:scroll;scrollbar-width:none;border:1px solid var(--ui-border);border-radius:8px;position:relative}+ .stage::-webkit-scrollbar{display:none}+ /* The rail lives OUTSIDE .stage (inside .stage-wrap). An absolutely positioned+ child of a scroll container scrolls away with the content. */+ .spy-nav{position:absolute;top:16px;left:16px;z-index:5;background:rgba(17,17,20,.85);backdrop-filter:blur(8px);border:1px solid var(--ui-border);border-radius:8px;padding:10px;display:flex;flex-direction:column}+ .spy-ind{position:absolute;left:0;top:10px;width:3px;height:44px;background:var(--ui-accent);border-radius:2px;transition:transform .25s ease}+ .spy-link{display:flex;align-items:center;min-height:44px;padding:0 14px;font-family:var(--mono);font-size:11px;color:var(--ui-muted);background:none;border:0;cursor:pointer;text-align:left;transition:color .25s ease;white-space:nowrap}+ .spy-link.on{color:var(--ui-accent)}+ @media(hover:hover){.spy-link:hover{color:var(--ui-text)}.spy-link.on:hover{color:var(--ui-accent)}}+ .sec{min-height:500px;padding:36px 28px 36px 200px}+ .sec h2{font-family:var(--disp);font-weight:800;font-size:clamp(16px,2.4vw,22px);margin-bottom:14px}+ .sec p{font-size:11px;color:var(--ui-muted);line-height:1.8;max-width:520px;margin-bottom:12px}+ .runout{height:calc(var(--stage-h)*.4)}+ aside{width:clamp(200px,22vw,240px);flex-shrink:0;background:var(--ui-bg);border:1px solid var(--ui-border);border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:10px}+ .note{font-size:10px;color:var(--ui-muted);line-height:1.6;border-left:2px solid var(--ui-accent);padding-left:8px}+ .lbl{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--ui-accent)}+ .kv{display:flex;justify-content:space-between;font-size:10px;color:var(--ui-muted)}+ .kv .v{color:var(--ui-text);font-size:10px}+ .div{height:1px;background:var(--ui-border)}+ .sr{display:flex;align-items:center;gap:6px;font-size:10px}+ .sr input[type=range]{flex:1;accent-color:var(--ui-accent);min-height:44px}+ .sv{width:34px;text-align:right;color:var(--ui-text)}+ .tog{display:flex;align-items:center;gap:8px;font-size:10px;cursor:pointer;min-height:44px}+ .tog input{accent-color:var(--ui-accent);width:16px;height:16px;flex-shrink:0}+ @media(max-width:600px){+ .layout{flex-direction:column}aside{width:100%}.stage{flex:none;width:100%}:root{--stage-h:480px}+ .spy-nav{flex-direction:row;top:8px;left:8px;right:8px;overflow-x:auto;padding:6px;scrollbar-width:none}+ .spy-ind{display:none}+ .spy-link{padding:0 12px;border-radius:6px}+ .spy-link.on{background:rgba(110,168,255,.14)}+ .sec{padding:80px 20px 36px}+ }+ @media(prefers-reduced-motion:reduce){.spy-ind,.spy-link{transition:none!important}}+ </style>+<style id="ah-inject">+:root{--ah-bg:rgba(17,17,20,.82);--ah-line:rgba(255,255,255,.1);--ah-ink:#f4f4f2;--ah-muted:#9a9aa2;--ah-accent:#6ea8ff}+body{padding-top:46px}+.ah-bar{position:fixed;top:0;left:0;right:0;height:46px;z-index:2147483000;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 clamp(10px,3vw,18px);background:var(--ah-bg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--ah-line);font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;box-sizing:border-box}+.ah-bar a,.ah-bar button{color:var(--ah-muted);text-decoration:none;background:none;border:0;font:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 7px;border-radius:6px;transition:color .18s,background .18s;white-space:nowrap}+.ah-bar a:hover,.ah-bar button:hover{color:var(--ah-ink)}+.ah-home{color:var(--ah-ink);font-weight:600}+.ah-actions{display:flex;align-items:center;gap:2px}+.ah-sep{width:1px;height:16px;background:var(--ah-line);margin:0 4px}+.ah-copied{color:var(--ah-accent)!important}+@media(max-width:600px){.ah-bar .ah-hideSm{display:none}}+@media print{.ah-bar{display:none}body{padding-top:0}}+</style>+</head>+<body>+<div class="ah-bar" role="navigation" aria-label="Animation Handbook"><a class="ah-home" href="../../../">← Animation Handbook</a><span class="ah-actions"><a class="ah-hideSm" href="../svg-line-draw/" rel="prev" title="Previous">‹ Prev</a><a class="ah-hideSm" href="../scroll-background-color/" rel="next" title="Next">Next ›</a><span class="ah-sep ah-hideSm"></span><button type="button" id="ah-copy" class="ah-hideSm">Copy source</button><a class="ah-hideSm" href="https://github.com/matinmonshizadeh/animation-handbook/blob/main/animations/01-scroll-based/scrollspy-nav/index.html" target="_blank" rel="noopener noreferrer">Source ↗</a></span></div>+<header>+ <h1>Scrollspy Navigation</h1>+ <p>A nav rail that tracks the section in view — the indicator slides to the active link; clicking a link smooth-scrolls to its section.</p>+</header>+<div class="layout">+ <div class="stage-wrap">+ <div class="stage" id="stage"><div id="content"></div><div class="runout"></div></div>+ <nav class="spy-nav" id="spy-nav" aria-label="Section navigation"><div class="spy-ind" id="spy-ind"></div></nav>+ </div>+ <aside>+ <p class="note">Section tops are measured once (container-relative, not offsetTop) and compared against an activation line — scrollTop + 35% of the viewport. The active index only changes when a new section crosses it.</p>+ <div><div class="lbl" id="act-lbl">Activation line</div>+ <div class="sr"><input type="range" id="act-sl" aria-labelledby="act-lbl" min="20" max="60" value="35" step="5"><span class="sv" id="act-val">35%</span></div>+ </div>+ <div class="div"></div>+ <label class="tog" for="smooth-tog"><input type="checkbox" id="smooth-tog" checked><span>Smooth scroll on click</span></label>+ <div class="div"></div>+ <div class="kv"><span>Active section</span><span class="v" id="ro-active">—</span></div>+ <div class="kv"><span>Scroll</span><span class="v" id="ro-pct">0%</span></div>+ </aside>+</div>+<script>+ const SECTIONS=[+ {name:'Introduction',tint:'rgba(110,168,255,.05)'},+ {name:'Installation',tint:'rgba(120,220,180,.05)'},+ {name:'Configuration',tint:'rgba(240,200,120,.05)'},+ {name:'API Reference',tint:'rgba(230,140,160,.05)'},+ {name:'Examples',tint:'rgba(180,150,240,.05)'},+ {name:'Changelog',tint:'rgba(140,210,230,.05)'},+ ];+ const BODY='Body copy stands in for real documentation here. The section needs enough height that scrolling through it feels like reading a page, not flicking past a card.';+ const stage=document.getElementById('stage'),content=document.getElementById('content'),nav=document.getElementById('spy-nav'),ind=document.getElementById('spy-ind');+ const actSl=document.getElementById('act-sl'),actVal=document.getElementById('act-val'),smoothTog=document.getElementById('smooth-tog');+ const roActive=document.getElementById('ro-active'),roPct=document.getElementById('ro-pct');+ const reduced=matchMedia('(prefers-reduced-motion: reduce)').matches;+ let tops=[],maxScroll=0,active=-1,activation=.35,targetLock=-1,lockTimer=0,ticking=false,indH=-1;++ const secEls=SECTIONS.map((s,i)=>{+ const el=document.createElement('section');+ el.className='sec';el.style.background=s.tint;+ el.innerHTML=`<h2>${s.name}</h2><p>${BODY}</p><p>${BODY}</p><p>${BODY}</p>`;+ content.appendChild(el);+ const link=document.createElement('button');+ link.className='spy-link';link.type='button';link.textContent=s.name;link.dataset.i=i;+ nav.appendChild(link);+ return el;+ });+ const links=[...nav.querySelectorAll('.spy-link')];++ // Cache tops in the stage's content coordinates. offsetTop would be+ // body-relative here (the sections' offsetParent is not the scroller).+ function measure(){+ const sRect=stage.getBoundingClientRect();+ tops=secEls.map(el=>{const r=el.getBoundingClientRect();return r.top-sRect.top+stage.scrollTop});+ maxScroll=stage.scrollHeight-stage.clientHeight;+ }+ function moveInd(i){+ const l=links[i];+ ind.style.transform=`translateY(${l.offsetTop-10}px)`; // 10 = indicator's own top offset+ if(l.offsetHeight!==indH){indH=l.offsetHeight;ind.style.height=indH+'px'}+ }+ function setActive(i){+ if(i===active)return; // guard: write DOM only on change+ if(active>-1)links[active].classList.remove('on');+ links[i].classList.add('on');active=i;+ moveInd(i);roActive.textContent=SECTIONS[i].name;+ }+ function spy(){+ const st=stage.scrollTop;+ roPct.textContent=(maxScroll?Math.round(st/maxScroll*100):0)+'%';+ if(targetLock>-1)return; // programmatic scroll in flight — no flicker+ const line=st+stage.clientHeight*activation;+ let i=0;+ for(let k=0;k<tops.length;k++)if(tops[k]<=line)i=k;+ if(st>=maxScroll-1)i=tops.length-1; // force last section at the very bottom+ setActive(i);+ }+ stage.addEventListener('scroll',()=>{+ if(targetLock>-1){ // fallback lock release for no-scrollend browsers+ clearTimeout(lockTimer);+ lockTimer=setTimeout(()=>{targetLock=-1;spy()},150);+ }+ if(!ticking){ticking=true;requestAnimationFrame(()=>{ticking=false;spy()})}+ },{passive:true});+ stage.addEventListener('scrollend',()=>{clearTimeout(lockTimer);targetLock=-1;spy()});++ nav.addEventListener('click',e=>{+ const link=e.target.closest('.spy-link');if(!link)return;+ const i=+link.dataset.i;+ const smooth=smoothTog.checked&&!reduced;+ targetLock=i;setActive(i);+ stage.scrollTo({top:tops[i]-8,behavior:smooth?'smooth':'auto'});+ if(!smooth){targetLock=-1;spy()}+ });+ actSl.addEventListener('input',()=>{activation=+actSl.value/100;actVal.textContent=actSl.value+'%';spy()});++ let rt;addEventListener('resize',()=>{clearTimeout(rt);rt=setTimeout(()=>{measure();if(active>-1)moveInd(active);spy()},150)});+ measure();spy();+ addEventListener('load',()=>{measure();spy()}); // re-measure once web fonts settle+</script>+<script>(function(){var b=document.getElementById("ah-copy");if(!b)return;b.addEventListener("click",function(){fetch(location.href).then(function(r){return r.text();}).catch(function(){return document.documentElement.outerHTML;}).then(function(t){return navigator.clipboard.writeText(t);}).then(function(){b.textContent="Copied!";b.classList.add("ah-copied");setTimeout(function(){b.textContent="Copy source";b.classList.remove("ah-copied");},1500);}).catch(function(){b.textContent="Copy failed";setTimeout(function(){b.textContent="Copy source";},1500);});});})();</script>+</body>+</html>diff --git a/animations/01-scroll-based/smooth-scroll/index.html b/animations/01-scroll-based/smooth-scroll/index.htmlindex 64e4e714..255cc21a 100644--- a/animations/01-scroll-based/smooth-scroll/index.html+++ b/animations/01-scroll-based/smooth-scroll/index.html@@ -77,7 +77,7 @@ body{padding-top:46px}</style></head><body>-<div class="ah-bar" role="navigation" aria-label="Animation Handbook"><a class="ah-home" href="../../../">← Animation Handbook</a><span class="ah-actions"><a class="ah-hideSm" href="../scroll-image-sequence/" rel="prev" title="Previous">‹ Prev</a><span class="ah-sep ah-hideSm"></span><button type="button" id="ah-copy" class="ah-hideSm">Copy source</button><a class="ah-hideSm" href="https://github.com/matinmonshizadeh/animation-handbook/blob/main/animations/01-scroll-based/smooth-scroll/index.html" target="_blank" rel="noopener noreferrer">Source ↗</a></span></div>+<div class="ah-bar" role="navigation" aria-label="Animation Handbook"><a class="ah-home" href="../../../">← Animation Handbook</a><span class="ah-actions"><a class="ah-hideSm" href="../scroll-image-sequence/" rel="prev" title="Previous">‹ Prev</a><a class="ah-hideSm" href="../text-fill-on-scroll/" rel="next" title="Next">Next ›</a><span class="ah-sep ah-hideSm"></span><button type="button" id="ah-copy" class="ah-hideSm">Copy source</button><a class="ah-hideSm" href="https://github.com/matinmonshizadeh/animation-handbook/blob/main/animations/01-scroll-based/smooth-scroll/index.html" target="_blank" rel="noopener noreferrer">Source ↗</a></span></div><header><h1>Smooth (Inertia) Scroll</h1><p>Wheel and touch input drive a target value; the content eases toward it each frame for a weighted, gliding feel.</p>diff --git a/animations/01-scroll-based/svg-line-draw/README.md b/animations/01-scroll-based/svg-line-draw/README.mdnew file mode 100644index 00000000..d4949003--- /dev/null+++ b/animations/01-scroll-based/svg-line-draw/README.md@@ -0,0 +1,68 @@+# SVG Line Draw on Scroll++[Live demo](index.html)++## What it is++A long SVG path embedded in the scrolling content that draws itself with the stroke-dash trick as the reader scrolls down it. The route is part of the page — a tall, winding line you physically travel along — and labelled waypoints pop in as the drawn tip reaches them. This is the classic "journey map" storytelling pattern: hiking routes, company timelines, delivery tracking, process walkthroughs.++## When to use it++- Journey or route storytelling — travel logs, expedition maps, shipment tracking+- Timelines where each milestone should appear as the reader arrives at it+- Process explainers ("how your order gets to you") where a connecting line gives the steps a spatial order+- Long-form landing pages that need a visual spine tying sections together++## How it works++The whole effect is two stroke properties and one number. At init, measure the path once and set `stroke-dasharray` to its full length — the stroke is now a single dash exactly as long as the path, and `stroke-dashoffset` slides it into view:++```js+const LEN = path.getTotalLength(); // measure ONCE, at init and on resize+path.style.strokeDasharray = LEN;++// per scroll frame (coalesced with requestAnimationFrame):+const p = clamp(stage.scrollTop / maxScroll, 0, 1);+const drawn = Math.min(LEN, LEN * p / COMPLETE_AT); // finish before the scroll does+path.style.strokeDashoffset = LEN - drawn; // reveal the travelled portion+```++Waypoints are placed at known fractions of the path, so their positions and trigger points are computed once from those fractions — never per scroll event:++```js+// at init: position each waypoint and store its length threshold+wp.len = LEN * wp.fraction;+const pt = path.getPointAtLength(wp.len);+wp.group.setAttribute('transform', `translate(${pt.x} ${pt.y})`);++// per frame: a cheap comparison, class toggled only when the state changes+const on = drawn >= wp.len;+if (on !== wp.on) { wp.on = on; wp.group.classList.toggle('on', on); }+```++The pop itself is CSS — `.on` transitions the waypoint from `scale(.6)` and `opacity: 0` to full size, and scrolling back past a waypoint removes the class so it un-pops. Progress is clamped, never gated: jumping straight to the bottom draws the full route, returning to the top erases it, and there is no state to get stuck in between. A faint dashed copy of the path sits underneath the drawing stroke, so the reader always sees where the route is going before the line gets there.++## Key parameters++| Parameter | Default | Effect |+|-----------|---------|--------|+| `COMPLETE_AT` | 0.85 | Fraction of the scroll range at which the line finishes. Below 1, the route completes while the end is still in view instead of clipping at the viewport edge |+| Easing | linear | Curve applied to progress before mapping to length. Linear keeps the tip 1:1 with scroll; ease-out front-loads the draw |+| Waypoint fractions | 0.05 – 0.95 | Where along the path each marker sits and triggers, as a share of total length |+| Pop transition | 350 ms, overshoot bezier | The scale/fade on waypoint entry. Removed entirely under `prefers-reduced-motion` |+| Route height | ~2200 SVG units | How much scrolling the journey spans. Taller = slower, more deliberate travel |++## Production notes++- **Measure once.** `getTotalLength()` forces geometry work; calling it (or reading `scrollHeight`) inside the scroll handler causes layout thrashing. Cache the length and max scroll at init, refresh on debounced resize, and let the per-frame work be pure arithmetic plus one style write.+- **Never put a CSS transition on a property you write every frame.** `stroke-dashoffset` is set on each animation frame; adding `transition: stroke-dashoffset ...` on top makes the browser animate toward a target that moves every 16 ms — the line lags behind the scroll and smears. Transitions belong on state changes (the waypoint pop), not on scrubbed values.+- **`pathLength="1"` skips measuring entirely.** Setting the attribute `pathLength="1"` on the path lets you use `stroke-dasharray: 1` and write `stroke-dashoffset = 1 - p` directly — no `getTotalLength()` call at all. This demo measures because the waypoints need real coordinates anyway.+- **`vector-effect: non-scaling-stroke`** keeps the stroke width constant if the SVG scales responsively; without it, a 3px stroke on a narrow phone render can thin to a hairline.+- **Label legibility.** `paint-order: stroke` with a background-colored stroke on the `<text>` draws an outline underneath the glyphs, so labels stay readable where the accent line passes behind them — cheaper and crisper than a filter or a backing rect.+- **Library equivalents.** GSAP's DrawSVGPlugin with ScrollTrigger (`scrub: true`) is the production standard; Framer Motion's `useScroll` + `pathLength` motion value is the React equivalent. Both wrap exactly this dashoffset mapping.++## See also++- [Scrub Animation](../scrub-animation/) — a short *pinned* path used as a seek bar while content scrolls past it; this entry is the inverse layout — a long path living *in* the content, drawn as you travel down it.+- [SVG Path Animation](../../06-3d-advanced/svg-path-animation/) — the same dash trick driven by time instead of scroll.+- [Scrollytelling](../scrollytelling/) — the narrative framework this pattern usually lives inside.diff --git a/animations/01-scroll-based/svg-line-draw/index.html b/animations/01-scroll-based/svg-line-draw/index.htmlnew file mode 100644index 00000000..f1c0b056--- /dev/null+++ b/animations/01-scroll-based/svg-line-draw/index.html@@ -0,0 +1,198 @@+<!DOCTYPE html>+<html lang="en">+<head>+ <meta charset="UTF-8">+ <meta name="viewport" content="width=device-width, initial-scale=1.0">+ <title>SVG Line Draw on Scroll — Animation Handbook</title>+ <meta name="description" content="A long winding route embedded in the page draws itself as you scroll down it, popping waypoints as the line reaches them.">+ <link rel="canonical" href="https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/svg-line-draw/">+ <link rel="icon" type="image/svg+xml" href="../../../favicon.svg">+ <meta property="og:type" content="article">+ <meta property="og:site_name" content="Animation Handbook">+ <meta property="og:title" content="SVG Line Draw on Scroll — Animation Handbook">+ <meta property="og:description" content="A long winding route embedded in the page draws itself as you scroll down it, popping waypoints as the line reaches them.">+ <meta property="og:url" content="https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/svg-line-draw/">+ <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="SVG Line Draw on Scroll — Animation Handbook">+ <meta name="twitter:description" content="A long winding route embedded in the page draws itself as you scroll down it, popping waypoints as the line reaches them.">+ <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": "SVG Line Draw on Scroll", "name": "SVG Line Draw on Scroll", "description": "A long winding route embedded in the page draws itself as you scroll down it, popping waypoints as the line reaches them.", "url": "https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/svg-line-draw/", "inLanguage": "en", "articleSection": "Scroll-Based", "isPartOf": {"@type": "WebSite", "name": "Animation Handbook", "url": "https://matinmonshizadeh.github.io/animation-handbook/"}, "author": {"@type": "Person", "name": "matinmonshizadeh"}, "keywords": "web animation, CSS animation, Scroll-Based, SVG Line Draw on Scroll"}</script>+ <style>+ @font-face{font-family:'Bricolage';src:url('../../../assets/fonts/brico-700.woff2') format('woff2');font-weight:700;font-display:swap}+ @font-face{font-family:'Bricolage';src:url('../../../assets/fonts/brico-800.woff2') format('woff2');font-weight:800;font-display:swap}+ @font-face{font-family:'PlexMono';src:url('../../../assets/fonts/plex-400.woff2') format('woff2');font-weight:400;font-display:swap}+ @font-face{font-family:'PlexMono';src:url('../../../assets/fonts/plex-500.woff2') format('woff2');font-weight:500;font-display:swap}+ :root{--bg:#0b0b0d;--ui-bg:#111114;--ui-border:rgba(255,255,255,.09);--ui-accent:#6ea8ff;+ --ui-text:#f4f4f2;--ui-muted:#77777e;--stage-h:620px;+ --disp:'Bricolage','Arial Narrow',sans-serif;--mono:'PlexMono',ui-monospace,Menlo,Consolas,monospace}+ *,*::before,*::after{box-sizing:border-box;margin:0;padding:0}+ body{background:var(--bg);color:var(--ui-text);font-family:var(--mono);-webkit-font-smoothing:antialiased;padding:clamp(12px,3vw,24px)}+ header{margin-bottom:20px}+ header h1{font-family:var(--disp);font-weight:700;font-size:clamp(16px,2.2vw,22px);letter-spacing:-.01em}+ header p{font-size:clamp(10px,1.2vw,12px);color:var(--ui-muted);margin-top:4px}+ .layout{display:flex;gap:clamp(12px,2vw,24px);align-items:flex-start}+ .stage{flex:1;min-width:0;height:var(--stage-h);overflow-y:scroll;scrollbar-width:none;+ border:1px solid var(--ui-border);border-radius:8px}+ .stage::-webkit-scrollbar{display:none}+ /* The route lives IN the scrolling content — no pinning. Scrolling travels down it. */+ .scene{padding:clamp(10px,2vw,20px)}+ .scene svg{display:block;width:100%;height:auto}+ .scene-cap{text-align:center;font-size:10px;color:var(--ui-muted);padding:8px 0 16px}+ .guide{fill:none;stroke:rgba(255,255,255,.13);stroke-width:2;stroke-dasharray:5 7;stroke-linecap:round}+ .trail{fill:none;stroke:var(--ui-accent);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}+ .dot{fill:var(--bg);stroke:var(--ui-accent);stroke-width:2.5}+ /* paint-order draws a stage-coloured outline under each label, so text stays+ legible where the line runs behind it */+ .wp-label{font-family:var(--mono);font-size:13px;fill:var(--ui-text);+ paint-order:stroke;stroke:var(--bg);stroke-width:5px;stroke-linejoin:round}+ .wp-sub{font-family:var(--mono);font-size:10px;fill:var(--ui-muted);+ paint-order:stroke;stroke:var(--bg);stroke-width:5px;stroke-linejoin:round}+ .pop{opacity:0;transform:scale(.6);transform-box:fill-box;transform-origin:center;+ transition:transform .35s cubic-bezier(.34,1.56,.64,1),opacity .25s ease-out}+ .wp.on .pop{opacity:1;transform:scale(1)}+ .no-wps #wps{display:none}++ aside{width:clamp(200px,22vw,240px);flex-shrink:0;background:var(--ui-bg);border:1px solid var(--ui-border);+ border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:10px}+ .note{font-size:10px;color:var(--ui-muted);line-height:1.6;border-left:2px solid var(--ui-accent);padding-left:8px}+ .lbl{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--ui-accent)}+ .tbl{display:flex;flex-direction:column;gap:2px}+ .kv{display:flex;justify-content:space-between;font-size:10px;color:var(--ui-muted)}+ .kv .v{color:var(--ui-text);font-variant-numeric:tabular-nums}+ .sr{display:flex;align-items:center;gap:6px;font-size:10px}+ .sr input[type=range]{flex:1;accent-color:var(--ui-accent);min-height:44px}+ .sr .sv{width:38px;text-align:right;color:var(--ui-text);font-variant-numeric:tabular-nums}+ select{background:var(--ui-bg);border:1px solid var(--ui-border);color:var(--ui-text);font-family:var(--mono);+ font-size:10px;padding:8px 6px;border-radius:4px;width:100%;min-height:44px}+ .chk{display:flex;align-items:center;gap:8px;font-size:10px;min-height:44px;cursor:pointer}+ .chk input{width:18px;height:18px;accent-color:var(--ui-accent);cursor:pointer}+ .div{height:1px;background:var(--ui-border)}+ @media(max-width:600px){+ .layout{flex-direction:column}aside{width:100%}+ /* in a column container `flex:1` makes flex-basis the height and overrides --stage-h */+ .stage{flex:none;width:100%}:root{--stage-h:480px}+ }+ @media(prefers-reduced-motion:reduce){.pop{transition:none}}+ </style>+<style id="ah-inject">+:root{--ah-bg:rgba(17,17,20,.82);--ah-line:rgba(255,255,255,.1);--ah-ink:#f4f4f2;--ah-muted:#9a9aa2;--ah-accent:#6ea8ff}+body{padding-top:46px}+.ah-bar{position:fixed;top:0;left:0;right:0;height:46px;z-index:2147483000;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 clamp(10px,3vw,18px);background:var(--ah-bg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--ah-line);font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;box-sizing:border-box}+.ah-bar a,.ah-bar button{color:var(--ah-muted);text-decoration:none;background:none;border:0;font:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 7px;border-radius:6px;transition:color .18s,background .18s;white-space:nowrap}+.ah-bar a:hover,.ah-bar button:hover{color:var(--ah-ink)}+.ah-home{color:var(--ah-ink);font-weight:600}+.ah-actions{display:flex;align-items:center;gap:2px}+.ah-sep{width:1px;height:16px;background:var(--ah-line);margin:0 4px}+.ah-copied{color:var(--ah-accent)!important}+@media(max-width:600px){.ah-bar .ah-hideSm{display:none}}+@media print{.ah-bar{display:none}body{padding-top:0}}+</style>+</head>+<body>+<div class="ah-bar" role="navigation" aria-label="Animation Handbook"><a class="ah-home" href="../../../">← Animation Handbook</a><span class="ah-actions"><a class="ah-hideSm" href="../scroll-velocity-skew/" rel="prev" title="Previous">‹ Prev</a><a class="ah-hideSm" href="../scrollspy-nav/" rel="next" title="Next">Next ›</a><span class="ah-sep ah-hideSm"></span><button type="button" id="ah-copy" class="ah-hideSm">Copy source</button><a class="ah-hideSm" href="https://github.com/matinmonshizadeh/animation-handbook/blob/main/animations/01-scroll-based/svg-line-draw/index.html" target="_blank" rel="noopener noreferrer">Source ↗</a></span></div>+<header>+ <h1>SVG Line Draw on Scroll</h1>+ <p>A long winding route embedded in the page draws itself as you scroll down it, popping waypoints as the line reaches them.</p>+</header>++<div class="layout">+ <div class="stage" id="stage">+ <div class="scene">+ <svg id="map" viewBox="0 0 600 2200" preserveAspectRatio="xMidYMin meet" aria-hidden="true">+ <!-- faint dashed guide shows the full route before it is drawn -->+ <path class="guide" d="M 300 80 C 510 160 530 300 340 400 C 150 500 90 620 260 730 C 440 840 520 960 340 1080 C 160 1200 100 1310 290 1410 C 490 1510 510 1650 310 1760 C 110 1870 150 2020 300 2120"/>+ <path id="trail" class="trail" d="M 300 80 C 510 160 530 300 340 400 C 150 500 90 620 260 730 C 440 840 520 960 340 1080 C 160 1200 100 1310 290 1410 C 490 1510 510 1650 310 1760 C 110 1870 150 2020 300 2120"/>+ <g id="wps">+ <g class="wp" data-f="0.05"><g class="pop"><circle class="dot" r="7"/><text class="wp-label" x="20" y="1">Depart</text><text class="wp-sub" x="20" y="17">km 0 — trailhead</text></g></g>+ <g class="wp" data-f="0.27"><g class="pop"><circle class="dot" r="7"/><text class="wp-label" x="-20" y="1" text-anchor="end">River crossing</text><text class="wp-sub" x="-20" y="17" text-anchor="end">km 12 — footbridge</text></g></g>+ <g class="wp" data-f="0.50"><g class="pop"><circle class="dot" r="7"/><text class="wp-label" x="20" y="1">Basecamp</text><text class="wp-sub" x="20" y="17">km 27 — overnight</text></g></g>+ <g class="wp" data-f="0.73"><g class="pop"><circle class="dot" r="7"/><text class="wp-label" x="-20" y="1" text-anchor="end">Summit ridge</text><text class="wp-sub" x="-20" y="17" text-anchor="end">km 39 — 2 410 m</text></g></g>+ <g class="wp" data-f="0.95"><g class="pop"><circle class="dot" r="7"/><text class="wp-label" x="20" y="1">Arrive</text><text class="wp-sub" x="20" y="17">km 46 — journey's end</text></g></g>+ </g>+ </svg>+ <div class="scene-cap">— end of route —</div>+ </div>+ </div>++ <aside>+ <p class="note">The path is part of the page, not a pinned scene. <code>stroke-dasharray</code> is set to the path's length once; each scroll frame writes <code>stroke-dashoffset = length − drawn</code>, revealing exactly as much of the route as you have travelled.</p>+ <div><div class="lbl">Progress</div>+ <div class="tbl">+ <div class="kv"><span>Scroll</span><span class="v" id="scroll-kv">0%</span></div>+ <div class="kv"><span>Path drawn</span><span class="v" id="drawn-kv">0%</span></div>+ <div class="kv"><span>Waypoints passed</span><span class="v" id="wp-kv">0 / 5</span></div>+ </div>+ </div>+ <div class="div"></div>+ <div><div class="lbl" id="ca-lbl">Line completes at</div>+ <div class="sr"><input type="range" id="ca-sl" aria-labelledby="ca-lbl" min="60" max="100" value="85"><span class="sv" id="ca-val">85%</span></div>+ </div>+ <div><div class="lbl" id="ease-lbl">Easing</div>+ <select id="ease-sel" aria-labelledby="ease-lbl">+ <option value="linear">linear — 1:1 with scroll</option>+ <option value="out">ease out — fast start</option>+ </select>+ </div>+ <label class="chk"><input type="checkbox" id="wp-chk" checked> Waypoints</label>+ </aside>+</div>++<script>+ const $=id=>document.getElementById(id);+ const stage=$('stage'),trail=$('trail'),map=$('map');+ const scrollKv=$('scroll-kv'),drawnKv=$('drawn-kv'),wpKv=$('wp-kv');+ const caSl=$('ca-sl'),caVal=$('ca-val'),easeSel=$('ease-sel'),wpChk=$('wp-chk');+ const clamp=(v,a,b)=>Math.min(Math.max(v,a),b);+ const EASES={linear:t=>t,out:t=>1-Math.pow(1-t,3)};++ // Waypoints are placed AT known fractions of the path, so their trigger points are+ // just LEN * fraction — no per-scroll geometry lookups ever.+ const wps=[...document.querySelectorAll('.wp')].map(g=>({g,f:parseFloat(g.dataset.f),len:0,on:false}));++ // Layout reads live here only — at init and on (debounced) resize, never per scroll.+ let LEN=1,MAXS=1;+ function measure(){+ LEN=trail.getTotalLength();+ MAXS=Math.max(1,stage.scrollHeight-stage.clientHeight);+ trail.style.strokeDasharray=LEN;+ for(const w of wps){+ w.len=LEN*w.f;+ const pt=trail.getPointAtLength(w.len);+ w.g.setAttribute('transform',`translate(${pt.x.toFixed(1)} ${pt.y.toFixed(1)})`);+ }+ }++ let ticking=false,lastScroll=-1,lastDrawn=-1,lastCount=-1;+ function update(){+ const p=EASES[easeSel.value](clamp(stage.scrollTop/MAXS,0,1));+ // The line finishes before the scroll does (COMPLETE_AT < 1), so the reader sees+ // the route completed rather than leaving it clipped at the viewport edge.+ // Clamp, don't gate: jumping to the end draws everything, back to top erases it.+ const drawn=clamp(LEN*p/(caSl.value/100),0,LEN);+ trail.style.strokeDashoffset=LEN-drawn;++ let count=0;+ for(const w of wps){+ const on=drawn>=w.len;+ if(on)count++;+ if(on!==w.on){w.on=on;w.g.classList.toggle('on',on)} // toggle only on change+ }+ const sPct=Math.round(clamp(stage.scrollTop/MAXS,0,1)*100),dPct=Math.round(drawn/LEN*100);+ if(sPct!==lastScroll){lastScroll=sPct;scrollKv.textContent=sPct+'%'}+ if(dPct!==lastDrawn){lastDrawn=dPct;drawnKv.textContent=dPct+'%'}+ if(count!==lastCount){lastCount=count;wpKv.textContent=count+' / '+wps.length}+ ticking=false;+ }++ stage.addEventListener('scroll',()=>{if(!ticking){requestAnimationFrame(update);ticking=true}},{passive:true});+ caSl.addEventListener('input',()=>{caVal.textContent=caSl.value+'%';update()});+ easeSel.addEventListener('change',update);+ wpChk.addEventListener('change',()=>map.classList.toggle('no-wps',!wpChk.checked));+ let rt;addEventListener('resize',()=>{clearTimeout(rt);rt=setTimeout(()=>{measure();update()},150)});++ measure();update();+</script>+<script>(function(){var b=document.getElementById("ah-copy");if(!b)return;b.addEventListener("click",function(){fetch(location.href).then(function(r){return r.text();}).catch(function(){return document.documentElement.outerHTML;}).then(function(t){return navigator.clipboard.writeText(t);}).then(function(){b.textContent="Copied!";b.classList.add("ah-copied");setTimeout(function(){b.textContent="Copy source";b.classList.remove("ah-copied");},1500);}).catch(function(){b.textContent="Copy failed";setTimeout(function(){b.textContent="Copy source";},1500);});});})();</script>+</body>+</html>diff --git a/animations/01-scroll-based/text-fill-on-scroll/README.md b/animations/01-scroll-based/text-fill-on-scroll/README.mdnew file mode 100644index 00000000..4c85f243--- /dev/null+++ b/animations/01-scroll-based/text-fill-on-scroll/README.md@@ -0,0 +1,57 @@+# Text Fill on Scroll++[Live demo](index.html)++## What it is++A pinned paragraph whose words fill from dim to full color one at a time as the reader scrolls — the reading-highlight effect used on Apple- and Linear-style marketing pages. Scroll progress sweeps an index through the words: everything behind it is lit, everything ahead waits dim. Because the fill is computed from scroll position rather than played, pausing holds the sentence mid-read and scrolling back up un-reads it in perfect reverse.++## When to use it++- Manifesto or mission statements that should be *read at scroll pace*, not skimmed+- Landing-page passages where each claim should land before the next appears+- Long-form intros that need a moment of focus before the content starts+- Anywhere a block of copy is the hero and deserves the reader's cadence++## How it works++The paragraph is split into one `<span>` per word at build time. Each frame maps scroll progress to a word index; a word is lit when its index is behind that point:++```js+const p = clamp(stage.scrollTop / maxScroll, 0, 1);+const filled = Math.floor((p / COMPLETE_AT) * wordCount);+```++The important part is what *doesn't* happen: the frame handler never rewrites every span. It remembers the last filled count and touches only the words between the old and new positions:++```js+const lo = Math.min(filled, lastFilled), hi = Math.max(filled, lastFilled);+for (let i = lo; i < hi; i++) words[i].classList.toggle('on', i < filled);+lastFilled = filled;+```++On a normal scroll step that is one or two class toggles instead of eighty, and an idle frame costs nothing. A short CSS `color` transition on each word softens the flip without fighting the per-frame logic, since the class — not the color — is what changes per frame.++## Key parameters++| Parameter | Default | Effect |+|-----------|---------|--------|+| Fill completes at | 90% | Portion of the scroll budget the fill is spread across; finishing early leaves a beat of read-through before the section ends |+| Dim color | `rgba(244,244,242,.16)` | The unread state. Too faint and the text is invisible before reveal; too strong and the fill has no drama |+| Highlight | accent | Color of the currently-active word — the "cursor" that shows where the reader is |+| Word transition | 180ms | The soften on each word's flip; the sweep itself has no duration |++## Production notes++- **Guard the writes.** The naive version loops all spans every scroll event and re-sets each one's class. With guarded writes only the delta is touched, which is what keeps this cheap at any paragraph length.+- **`background-clip: text` is the one-element alternative.** A gradient background with `background-clip:text` and a scroll-driven `background-position` fills text with zero spans and sub-word smoothness. The tradeoffs: no per-word hooks (no cursor highlight, no word callbacks), and gradient positioning across wrapped lines is fiddly. Choose spans when you need word-level control, clip when you need silk.+- **Keep the dim state readable.** The unread text still has to be perceivable — a dim value near-invisible against the background means the reader faces a blank panel and no cue that content exists. Keep some contrast in the unread state; the demo's default is deliberately legible.+- **Text stays real.** Splitting into spans keeps the copy selectable, findable, and visible to assistive tech — never rasterize or duplicate the text for this effect. Screen readers ignore the color sweep entirely, which is the correct behavior.+- **Granularity.** Per-letter splitting looks smoother but multiplies DOM nodes and write counts by ~6; per-word is the sweet spot for paragraphs. GSAP's SplitText and the `Intl.Segmenter` API both handle locale-correct splitting in production.+- **Cache layout reads.** `scrollHeight`/`clientHeight` are measured once and on resize — never inside the scroll handler, where they force a reflow per event.++## See also++- [Reveal on Scroll](../reveal-on-scroll/) — discrete enter/leave reveals; this entry is the continuous version for a single passage.+- [Scrub Animation](../scrub-animation/) — the same position-not-playback model driving a drawn path.+- [Kinetic Typography](../../05-text-typography/kinetic-typography/) — time-based type motion, for contrast with scroll-driven.diff --git a/animations/01-scroll-based/text-fill-on-scroll/index.html b/animations/01-scroll-based/text-fill-on-scroll/index.htmlnew file mode 100644index 00000000..deb932e4--- /dev/null+++ b/animations/01-scroll-based/text-fill-on-scroll/index.html@@ -0,0 +1,195 @@+<!DOCTYPE html>+<html lang="en">+<head>+ <meta charset="UTF-8">+ <meta name="viewport" content="width=device-width, initial-scale=1.0">+ <title>Text Fill on Scroll — Animation Handbook</title>+ <meta name="description" content="A pinned paragraph fills word by word as you scroll — the reading-highlight effect, perfectly reversible.">+ <link rel="canonical" href="https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/text-fill-on-scroll/">+ <link rel="icon" type="image/svg+xml" href="../../../favicon.svg">+ <meta property="og:type" content="article">+ <meta property="og:site_name" content="Animation Handbook">+ <meta property="og:title" content="Text Fill on Scroll — Animation Handbook">+ <meta property="og:description" content="A pinned paragraph fills word by word as you scroll — the reading-highlight effect, perfectly reversible.">+ <meta property="og:url" content="https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/text-fill-on-scroll/">+ <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="Text Fill on Scroll — Animation Handbook">+ <meta name="twitter:description" content="A pinned paragraph fills word by word as you scroll — the reading-highlight effect, perfectly reversible.">+ <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": "Text Fill on Scroll", "name": "Text Fill on Scroll", "description": "A pinned paragraph fills word by word as you scroll — the reading-highlight effect, perfectly reversible.", "url": "https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/text-fill-on-scroll/", "inLanguage": "en", "articleSection": "Scroll-Based", "isPartOf": {"@type": "WebSite", "name": "Animation Handbook", "url": "https://matinmonshizadeh.github.io/animation-handbook/"}, "author": {"@type": "Person", "name": "matinmonshizadeh"}, "keywords": "web animation, CSS animation, Scroll-Based, Text Fill on Scroll"}</script>+ <style>+ @font-face{font-family:'Bricolage';src:url('../../../assets/fonts/brico-700.woff2') format('woff2');font-weight:700;font-display:swap}+ @font-face{font-family:'Bricolage';src:url('../../../assets/fonts/brico-800.woff2') format('woff2');font-weight:800;font-display:swap}+ @font-face{font-family:'PlexMono';src:url('../../../assets/fonts/plex-400.woff2') format('woff2');font-weight:400;font-display:swap}+ @font-face{font-family:'PlexMono';src:url('../../../assets/fonts/plex-500.woff2') format('woff2');font-weight:500;font-display:swap}+ :root{--bg:#0b0b0d;--ui-bg:#111114;--ui-border:rgba(255,255,255,.09);--ui-accent:#6ea8ff;+ --ui-text:#f4f4f2;--ui-muted:#77777e;--stage-h:620px;--dim:rgba(244,244,242,.16);+ --disp:'Bricolage','Arial Narrow',sans-serif;--mono:'PlexMono',ui-monospace,Menlo,Consolas,monospace}+ *,*::before,*::after{box-sizing:border-box;margin:0;padding:0}+ body{background:var(--bg);color:var(--ui-text);font-family:var(--mono);-webkit-font-smoothing:antialiased;padding:clamp(12px,3vw,24px)}+ header{margin-bottom:20px}+ header h1{font-family:var(--disp);font-weight:700;font-size:clamp(16px,2.2vw,22px);letter-spacing:-.01em}+ header p{font-size:clamp(10px,1.2vw,12px);color:var(--ui-muted);margin-top:4px}+ .layout{display:flex;gap:clamp(12px,2vw,24px);align-items:flex-start}+ .stage{flex:1;min-width:0;height:var(--stage-h);overflow-y:scroll;scrollbar-width:none;+ border:1px solid var(--ui-border);border-radius:8px}+ .stage::-webkit-scrollbar{display:none}+ /* .track supplies the scroll budget; .pinned holds the paragraph still while+ scroll sweeps the fill through it */+ .track{height:calc(var(--stage-h) * 3.5)}+ .pinned{position:sticky;top:0;height:var(--stage-h);display:flex;align-items:center;+ padding:clamp(18px,4vw,44px)}+ .fill-text{font-family:var(--disp);font-weight:700;font-size:clamp(19px,2.9vw,30px);+ line-height:1.5;letter-spacing:-.01em;max-width:24em}+ .fill-text .w{color:var(--dim);transition:color .18s linear}+ .fill-text .w.on{color:var(--ui-text)}+ .fill-text .w.cursor{color:var(--fill-accent,var(--ui-accent))}+ .hint{position:absolute;bottom:14px;left:0;right:0;text-align:center;font-size:10px;+ letter-spacing:1.5px;text-transform:uppercase;color:var(--ui-muted);opacity:.6}++ aside{width:clamp(200px,22vw,240px);flex-shrink:0;background:var(--ui-bg);border:1px solid var(--ui-border);+ border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:10px}+ .note{font-size:10px;color:var(--ui-muted);line-height:1.6;border-left:2px solid var(--ui-accent);padding-left:8px}+ .lbl{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--ui-accent)}+ .kv{display:flex;justify-content:space-between;font-size:10px;color:var(--ui-muted)}+ .kv .v{color:var(--ui-text);font-variant-numeric:tabular-nums}+ .tbl{display:flex;flex-direction:column;gap:2px}+ .sr{display:flex;align-items:center;gap:6px;font-size:10px}+ .sr input[type=range]{flex:1;accent-color:var(--ui-accent);min-height:44px}+ .sr .sv{width:38px;text-align:right;color:var(--ui-text);font-variant-numeric:tabular-nums}+ .swatches{display:flex;gap:8px}+ .swatch{width:44px;height:32px;border-radius:6px;border:2px solid transparent;cursor:pointer;padding:0}+ .swatch.on{border-color:var(--ui-text)}+ .tog{display:flex;align-items:center;gap:8px;font-size:10px;cursor:pointer;min-height:44px}+ .tog input{accent-color:var(--ui-accent);width:16px;height:16px;flex-shrink:0}+ .div{height:1px;background:var(--ui-border)}+ @media(max-width:600px){+ .layout{flex-direction:column}aside{width:100%}+ /* in a column container `flex:1` makes flex-basis the height and overrides --stage-h */+ .stage{flex:none;width:100%}:root{--stage-h:480px}+ }+ @media(prefers-reduced-motion:reduce){.fill-text .w{transition:none}}+ </style>+<style id="ah-inject">+:root{--ah-bg:rgba(17,17,20,.82);--ah-line:rgba(255,255,255,.1);--ah-ink:#f4f4f2;--ah-muted:#9a9aa2;--ah-accent:#6ea8ff}+body{padding-top:46px}+.ah-bar{position:fixed;top:0;left:0;right:0;height:46px;z-index:2147483000;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 clamp(10px,3vw,18px);background:var(--ah-bg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--ah-line);font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;box-sizing:border-box}+.ah-bar a,.ah-bar button{color:var(--ah-muted);text-decoration:none;background:none;border:0;font:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 7px;border-radius:6px;transition:color .18s,background .18s;white-space:nowrap}+.ah-bar a:hover,.ah-bar button:hover{color:var(--ah-ink)}+.ah-home{color:var(--ah-ink);font-weight:600}+.ah-actions{display:flex;align-items:center;gap:2px}+.ah-sep{width:1px;height:16px;background:var(--ah-line);margin:0 4px}+.ah-copied{color:var(--ah-accent)!important}+@media(max-width:600px){.ah-bar .ah-hideSm{display:none}}+@media print{.ah-bar{display:none}body{padding-top:0}}+</style>+</head>+<body>+<div class="ah-bar" role="navigation" aria-label="Animation Handbook"><a class="ah-home" href="../../../">← Animation Handbook</a><span class="ah-actions"><a class="ah-hideSm" href="../smooth-scroll/" rel="prev" title="Previous">‹ Prev</a><a class="ah-hideSm" href="../scroll-velocity-skew/" rel="next" title="Next">Next ›</a><span class="ah-sep ah-hideSm"></span><button type="button" id="ah-copy" class="ah-hideSm">Copy source</button><a class="ah-hideSm" href="https://github.com/matinmonshizadeh/animation-handbook/blob/main/animations/01-scroll-based/text-fill-on-scroll/index.html" target="_blank" rel="noopener noreferrer">Source ↗</a></span></div>+<header>+ <h1>Text Fill on Scroll</h1>+ <p>A pinned paragraph fills word by word as you scroll — the reading-highlight effect, perfectly reversible.</p>+</header>++<div class="layout">+ <div class="stage" id="stage">+ <div class="track">+ <div class="pinned">+ <p class="fill-text" id="fill-text"></p>+ <div class="hint">scroll to read</div>+ </div>+ </div>+ </div>++ <aside>+ <p class="note">Scroll progress sweeps an index through the words: everything behind it is lit, everything ahead stays dim. Because the fill is computed from position — not played — scrolling back un-reads the paragraph exactly.</p>+ <div><div class="lbl">Progress</div>+ <div class="tbl">+ <div class="kv"><span>Scroll</span><span class="v" id="prog-kv">0%</span></div>+ <div class="kv"><span>Words filled</span><span class="v" id="words-kv">0 / 0</span></div>+ </div>+ </div>+ <div class="div"></div>+ <div><div class="lbl" id="complete-lbl">Fill completes at</div>+ <div class="sr"><input type="range" id="complete-sl" aria-labelledby="complete-lbl" min="60" max="100" value="90" step="5"><span class="sv" id="complete-val">90%</span></div>+ </div>+ <div><div class="lbl">Highlight</div>+ <div class="swatches" id="swatches">+ <button class="swatch on" style="background:#6ea8ff" data-c="#6ea8ff" aria-label="Blue highlight"></button>+ <button class="swatch" style="background:#5fd88a" data-c="#5fd88a" aria-label="Green highlight"></button>+ <button class="swatch" style="background:#ff9d5c" data-c="#ff9d5c" aria-label="Orange highlight"></button>+ </div>+ </div>+ <label class="tog" for="cursor-tog"><input type="checkbox" id="cursor-tog" checked><span>Highlight active word</span></label>+ </aside>+</div>++<script>+ const $=id=>document.getElementById(id);+ const stage=$('stage'),textEl=$('fill-text');+ const progKv=$('prog-kv'),wordsKv=$('words-kv');+ const completeSl=$('complete-sl'),completeVal=$('complete-val');+ const cursorTog=$('cursor-tog');+ const clamp=(v,a,b)=>Math.min(Math.max(v,a),b);++ const COPY="Scroll is not a play button. It is a position — and a position can drive anything. "++ "Here every word watches the same number: how far you have travelled through this passage. "++ "Words behind that point light up. Words ahead of it wait in the dark. "++ "Pause anywhere and the sentence holds its state, because nothing is animating — you are simply somewhere. "++ "Scroll back up and watch the paragraph un-read itself, one word at a time, in perfect reverse.";++ // one span per word, built once+ const words=COPY.split(' ').map(w=>{+ const s=document.createElement('span');s.className='w';s.textContent=w+' ';+ textEl.appendChild(s);return s;+ });+ const N=words.length;++ let completeAt=.9,maxScroll=1,ticking=false;+ let lastFilled=-1,lastCursor=-1,lastPct=-1;++ // Layout reads live here only — never in the scroll handler.+ function measure(){maxScroll=Math.max(1,stage.scrollHeight-stage.clientHeight)}++ function render(){+ const p=clamp(stage.scrollTop/maxScroll,0,1);+ const e=clamp(p/completeAt,0,1);+ const filled=Math.floor(e*N+1e-6);++ // Only touch words whose state actually changed — never rewrite all spans.+ if(filled!==lastFilled){+ const prev=lastFilled<0?0:lastFilled;+ const lo=Math.min(filled,prev),hi=Math.max(filled,prev);+ for(let i=lo;i<hi;i++)words[i].classList.toggle('on',i<filled);+ lastFilled=filled;+ wordsKv.textContent=`${filled} / ${N}`;+ }+ const cursor=(cursorTog.checked&&filled<N&&e>0)?filled:-1;+ if(cursor!==lastCursor){+ if(lastCursor>=0)words[lastCursor].classList.remove('cursor');+ if(cursor>=0)words[cursor].classList.add('cursor');+ lastCursor=cursor;+ }+ const pct=Math.round(p*100);+ if(pct!==lastPct){progKv.textContent=pct+'%';lastPct=pct}+ ticking=false;+ }++ stage.addEventListener('scroll',()=>{if(!ticking){requestAnimationFrame(render);ticking=true}},{passive:true});+ completeSl.addEventListener('input',()=>{+ completeAt=completeSl.value/100;completeVal.textContent=completeSl.value+'%';render();+ });+ $('swatches').addEventListener('click',e=>{+ const b=e.target.closest('.swatch');if(!b)return;+ document.querySelectorAll('.swatch').forEach(s=>s.classList.toggle('on',s===b));+ textEl.style.setProperty('--fill-accent',b.dataset.c);+ });+ cursorTog.addEventListener('change',render);+ let rt;addEventListener('resize',()=>{clearTimeout(rt);rt=setTimeout(()=>{measure();render()},150)});++ measure();render();+</script>+<script>(function(){var b=document.getElementById("ah-copy");if(!b)return;b.addEventListener("click",function(){fetch(location.href).then(function(r){return r.text();}).catch(function(){return document.documentElement.outerHTML;}).then(function(t){return navigator.clipboard.writeText(t);}).then(function(){b.textContent="Copied!";b.classList.add("ah-copied");setTimeout(function(){b.textContent="Copy source";b.classList.remove("ah-copied");},1500);}).catch(function(){b.textContent="Copy failed";setTimeout(function(){b.textContent="Copy source";},1500);});});})();</script>+</body>+</html>diff --git a/docs/launch-kit.md b/docs/launch-kit.mdindex bdddf4a2..574259a5 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:**-> A visual reference of 124 web animation techniques — scroll effects, page transitions, micro-interactions, text, 3D, and ambient backgrounds. Every entry is a live, dependency-free demo.+> A visual reference of 129 web animation techniques — scroll effects, page transitions, micro-interactions, text, 3D, and ambient backgrounds. Every entry is a live, dependency-free demo.**Website:** `https://matinmonshizadeh.github.io/animation-handbook/`@@ -23,7 +23,7 @@ If you install the GitHub CLI (`gh`) later, this is one command:```bashgh repo edit matinmonshizadeh/animation-handbook \- --description "A visual reference of 124 web animation techniques — scroll effects, page transitions, micro-interactions, text, 3D, and ambient backgrounds. Every entry is a live, dependency-free demo." \+ --description "A visual reference of 129 web animation techniques — scroll effects, page transitions, micro-interactions, text, 3D, and ambient backgrounds. Every entry is a live, dependency-free demo." \--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,awesome,reference,no-dependencies,github-pages```@@ -35,7 +35,7 @@ and share, which drives return visits.## 2. Verify SEO is live (after pushing)-- `https://matinmonshizadeh.github.io/animation-handbook/sitemap.xml` → should list 125 URLs+- `https://matinmonshizadeh.github.io/animation-handbook/sitemap.xml` → should list 130 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.@@ -51,14 +51,14 @@ the hook.### Show HN (news.ycombinator.com/submit)**Title:**-> Show HN: Animation Handbook – 124 web animation techniques, each a live demo+> Show HN: Animation Handbook – 129 web animation techniques, each a live demo**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: 124 techniques across scroll effects, page transitions,+> reference: 129 techniques across scroll effects, page transitions,> micro-interactions, text, 3D, and ambient backgrounds. Each one is a single> self-contained HTML file — no build step, no framework, no dependencies — with> a short README on the mechanic and the production gotchas. It's meant to teach@@ -68,7 +68,7 @@ the hook.### Reddit — r/webdev (Showoff Saturday) and r/Frontend**Title:**-> I built a handbook of 124 web animation techniques — every entry is a live, dependency-free demo+> I built a handbook of 129 web animation techniques — every entry is a live, dependency-free demo**Body:**> Reference site for web animation, organized into 7 categories (scroll, entrance/exit,@@ -81,7 +81,7 @@ the hook.### dev.to / Hashnode article-**Title:** `I catalogued 124 web animation techniques so you don't have to`+**Title:** `I catalogued 129 web animation techniques so you don't have to`**Outline:**1. The problem — animation knowledge is scattered across libraries and CodePens.@@ -94,7 +94,7 @@ the hook.### X / Bluesky thread-> 1/ I built Animation Handbook — 124 web animation techniques, each a live demo+> 1/ I built Animation Handbook — 129 web animation techniques, each a live demo> you can open and read how it works. No dependencies, no build step. 🧵 <GIF>>> 2/ Scroll effects, page transitions, micro-interactions, kinetic type, WebGL,@@ -111,7 +111,7 @@ awesome-web-animation) via PR.### Product Hunt-**Tagline:** `A live, dependency-free reference of 124 web animation techniques`+**Tagline:** `A live, dependency-free reference of 129 web animation techniques`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 5c1783d8..f9973933 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 — 124 Web Animation Techniques with Live Demos</title>-<meta name="description" content="A visual reference of 124 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 — 129 Web Animation Techniques with Live Demos</title>+<meta name="description" content="A visual reference of 129 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">@@ -16,8 +16,8 @@<!-- Open Graph --><meta property="og:type" content="website"><meta property="og:site_name" content="Animation Handbook">-<meta property="og:title" content="Animation Handbook — 124 Web Animation Techniques with Live Demos">-<meta property="og:description" content="A visual reference of 124 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 — 129 Web Animation Techniques with Live Demos">+<meta property="og:description" content="A visual reference of 129 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">@@ -25,8 +25,8 @@<!-- Twitter --><meta name="twitter:card" content="summary_large_image">-<meta name="twitter:title" content="Animation Handbook — 124 Web Animation Techniques">-<meta name="twitter:description" content="A visual reference of 124 web animation techniques. Every entry is a live, dependency-free demo you can open in the browser.">+<meta name="twitter:title" content="Animation Handbook — 129 Web Animation Techniques">+<meta name="twitter:description" content="A visual reference of 129 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 -->@@ -36,7 +36,7 @@"@type": "WebSite","name": "Animation Handbook","url": "https://matinmonshizadeh.github.io/animation-handbook/",- "description": "A visual reference of 124 web animation techniques, each with a live, dependency-free demo and an explanation of how it works.",+ "description": "A visual reference of 129 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"],@@ -721,9 +721,9 @@ main{position:relative;z-index:2;max-width:1200px;margin:0 auto;padding:clamp(24<header class="hero"><p class="kicker">Web animation reference</p><h1 class="wordmark">Animation<br>Handbook</h1>- <p class="lede">A reference of 124 web animation techniques. Every entry is a live demo you can open in the browser and read how it works.</p>+ <p class="lede">A reference of 129 web animation techniques. Every entry is a live demo you can open in the browser and read how it works.</p><div class="hero-foot">- <div class="stat"><b>124</b><span>Techniques</span></div>+ <div class="stat"><b>129</b><span>Techniques</span></div><div class="stat"><b>07</b><span>Categories</span></div><div class="stat"><b>0</b><span>Dependencies</span></div></div>@@ -738,7 +738,7 @@ main{position:relative;z-index:2;max-width:1200px;margin:0 auto;padding:clamp(24<div id="root"></div><noscript><p style="color:var(--ink-dim);line-height:1.7;max-width:60ch">- This index renders its demo grid with JavaScript. All 124 techniques are+ This index renders its demo grid with JavaScript. All 129 techniques arestill browsable directly — see the<a href="https://github.com/matinmonshizadeh/animation-handbook#categories" style="color:var(--c1)">category list on GitHub</a>,or the <a href="sitemap.xml" style="color:var(--c1)">full sitemap</a>. Each@@ -790,6 +790,11 @@ const CATS=[['zoom-into-image','Zoom Into Image','clip-path expands from a framed card to full-bleed as you scroll — the portal effect.'],['scroll-image-sequence','Scroll Image Sequence','A canvas pinned with sticky; scroll progress maps to a frame index — the Apple product-scroll technique, frames drawn procedurally.'],['smooth-scroll','Smooth (Inertia) Scroll','Wheel and touch input eased toward a target each frame — weighted, gliding momentum instead of native jumps.'],+ ['text-fill-on-scroll','Text Fill on Scroll','A pinned paragraph fills word by word as you scroll — pause mid-read, scroll back and it un-reads.'],+ ['scroll-velocity-skew','Scroll Velocity Skew','Content shears with scroll speed and springs straight when you stop — motion mapped to velocity, not position.'],+ ['svg-line-draw','SVG Line Draw on Scroll','A winding route draws itself down the page via stroke-dashoffset, passing waypoints as you travel.'],+ ['scrollspy-nav','Scrollspy Navigation','A nav rail tracks the section in view with a sliding indicator — the docs-site pattern.'],+ ['scroll-background-color','Scroll-Driven Background Color','The background blends between section palettes as you scroll, flipping text contrast on light stops.'],]},{diff --git a/og-image.png b/og-image.pngindex bea66833..d0bf766d 100644Binary files a/og-image.png and b/og-image.png differdiff --git a/sitemap.xml b/sitemap.xmlindex 73d0b477..23cc35d9 100644--- a/sitemap.xml+++ b/sitemap.xml@@ -1,128 +1,133 @@<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/</loc><lastmod>2026-07-13</lastmod><changefreq>weekly</changefreq><priority>1.0</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/parallax-depth-of-field/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/parallax-scrolling/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/reverse-scrolling-columns/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/cover-card-to-fixed-header/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/fly-in-fly-out-contact-list/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/stacking-cards/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-trigger/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scrub-animation/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/pin-animation/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/snap-scrolling/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scrollytelling/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/reveal-on-scroll/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/stagger-reveal/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/horizontal-scroll/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/sticky-section/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/counter-animation/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/progress-bar/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/section-wipe/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/zoom-into-image/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-image-sequence/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/smooth-scroll/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/fade-in-out/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/slide-in/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/slide-up-reveal/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/scale-in/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/clip-path-reveal/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/curtain-reveal/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/split-text-reveal/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/letter-by-letter-stagger/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/word-by-word-reveal/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/blur-in/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/flip-in/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/bounce-in/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/rotate-in/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/view-transitions-api/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/shared-element-transition/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/morph-transition/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/crossfade/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/slide-transition/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/zoom-transition/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/flash-transition/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/blur-transition/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/elastic-transition/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/portal-zoom/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/dissolve/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/flip-technique/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/hover-state/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/click-ripple/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/focus-ring/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/button-press-scale/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/magnetic-button/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/toggle-switch/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/heart-burst/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/success-confetti/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/skeleton-loader/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/shimmer-effect/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/loading-spinner/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/progress-animation/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/checkmark-draw/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/form-field-morph/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/badge-pulse/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/tooltip-reveal/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/drawer-slide/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/modal-expand/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/accordion/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/cursor-follower/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/error-shake/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/swipe-to-dismiss/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/hamburger-menu-toggle/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/theme-toggle-morph/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/copy-to-clipboard/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/star-rating/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/toast-notification/</loc><lastmod>2026-07-13</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-13</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-13</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-13</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-13</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-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/variable-font-morph/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/text-clip-path-reveal/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/marquee-ticker/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/text-morphing/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/text-gradient-animation/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/outline-to-fill/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/enter-exit-typography/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/rotate-word-carousel/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/glitch-text/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/text-on-path/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/wavy-text/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/3d-model-orbit/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/scroll-driven-3d-rotation/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/parallax-3d-tilt/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/canvas-particle-effect/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/fluid-simulation/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/glassmorphism-animated/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/webgl-shader-animation/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/noise-based-motion/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/svg-path-animation/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/chromatic-aberration/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/2-5d-pseudo-3d/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/ray-marching-sdf/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/gpgpu-particle-system/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/image-distortion-hover/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/cloth-simulation/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/volumetric-smoke/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/morphing-blob/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/flip-card-3d/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/animated-gradient-background/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/mesh-gradient/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/aurora/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/grain-overlay/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/scanline/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/light-leak/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/starfield/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/breathing-glow/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/ambient-ripple/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/floating-elements/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/grid-dot-pattern-parallax/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/abstract-geometric-motion/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/particle-constellation/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/flow-field/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/synthwave-grid/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/matrix-rain/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/plasma/</loc><lastmod>2026-07-13</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/</loc><lastmod>2026-07-14</lastmod><changefreq>weekly</changefreq><priority>1.0</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/parallax-depth-of-field/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/parallax-scrolling/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/reverse-scrolling-columns/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/cover-card-to-fixed-header/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/fly-in-fly-out-contact-list/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/stacking-cards/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-trigger/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scrub-animation/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/pin-animation/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/snap-scrolling/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scrollytelling/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/reveal-on-scroll/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/stagger-reveal/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/horizontal-scroll/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/sticky-section/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/counter-animation/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/progress-bar/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/section-wipe/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/zoom-into-image/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-image-sequence/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/smooth-scroll/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/text-fill-on-scroll/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-velocity-skew/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/svg-line-draw/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scrollspy-nav/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-background-color/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/fade-in-out/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/slide-in/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/slide-up-reveal/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/scale-in/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/clip-path-reveal/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/curtain-reveal/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/split-text-reveal/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/letter-by-letter-stagger/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/word-by-word-reveal/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/blur-in/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/flip-in/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/bounce-in/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/rotate-in/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/view-transitions-api/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/shared-element-transition/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/morph-transition/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/crossfade/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/slide-transition/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/zoom-transition/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/flash-transition/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/blur-transition/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/elastic-transition/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/portal-zoom/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/dissolve/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/03-page-transitions/flip-technique/</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/hover-state/</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/click-ripple/</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/focus-ring/</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/button-press-scale/</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/magnetic-button/</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/toggle-switch/</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/heart-burst/</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/success-confetti/</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/skeleton-loader/</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/shimmer-effect/</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/loading-spinner/</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/progress-animation/</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/checkmark-draw/</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/form-field-morph/</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/badge-pulse/</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/tooltip-reveal/</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/drawer-slide/</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/modal-expand/</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/accordion/</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/cursor-follower/</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/error-shake/</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/swipe-to-dismiss/</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/hamburger-menu-toggle/</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/theme-toggle-morph/</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/copy-to-clipboard/</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/star-rating/</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/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/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>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/variable-font-morph/</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/text-clip-path-reveal/</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/marquee-ticker/</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/text-morphing/</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/text-gradient-animation/</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/outline-to-fill/</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/enter-exit-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/rotate-word-carousel/</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/glitch-text/</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/text-on-path/</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/wavy-text/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/3d-model-orbit/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/scroll-driven-3d-rotation/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/parallax-3d-tilt/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/canvas-particle-effect/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/fluid-simulation/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/glassmorphism-animated/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/webgl-shader-animation/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/noise-based-motion/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/svg-path-animation/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/chromatic-aberration/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/2-5d-pseudo-3d/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/ray-marching-sdf/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/gpgpu-particle-system/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/image-distortion-hover/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/cloth-simulation/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/volumetric-smoke/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/morphing-blob/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/06-3d-advanced/flip-card-3d/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/animated-gradient-background/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/mesh-gradient/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/aurora/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/grain-overlay/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/scanline/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/light-leak/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/starfield/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/breathing-glow/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/ambient-ripple/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/floating-elements/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/grid-dot-pattern-parallax/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/abstract-geometric-motion/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/particle-constellation/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/flow-field/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/synthwave-grid/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/matrix-rain/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/plasma/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url></urlset>