176 web animation techniques, each a live demo with plain settings and a ready-made prompt for your AI assistant. No dependencies, no build step.
HTML ai-promptsanimationcss-animationsfrontendgithub-pagesjavascriptmicrointeractionsmotion-designno-dependenciesreferencescroll-animationui-animationweb-animationweb-developmentwebgl
Merge branch 'feat/new-L2' into int/new-animations
matinf3e16bc824c0
diff --cc README.mdindex 9dd64569,f8a7d061..4795eb7c--- a/README.md+++ b/README.md@@@ -181,8 -180,8 +181,10 @@@ All 129 techniques, each linked to its- **[Glitch Text](animations/05-text-typography/glitch-text/)** — Text tears into red and cyan strips like a broken signal. Best for bold titles.- **[Text on a Path](animations/05-text-typography/text-on-path/)** — Text travels along a wave, an arc or a circle. Best for badges and seals.- **[Wavy Text](animations/05-text-typography/wavy-text/)** — A wave rolls through the word, letter by letter. Best for playful titles.+- **[Highlighter Sweep](animations/05-text-typography/highlighter-sweep/)** — A marker sweeps in behind the key words, one after another. Best for key points.+- **[Split-Flap Board](animations/05-text-typography/split-flap-board/)** — Tiles flip through the letters to spell a word, like an airport board. Best for hero titles.+ - **[Neon Flicker](animations/05-text-typography/neon-flicker/)** — Glowing letters sputter now and then, like a worn neon sign. Best for night themes.+ - **[Handwriting Draw](animations/05-text-typography/handwriting-draw/)** — A word writes itself stroke by stroke, as if by a pen. Best for greetings and signatures.</details>diff --cc animations/05-text-typography/README.mdindex 8b78dfe7,3b070951..67582bcf--- a/animations/05-text-typography/README.md+++ b/animations/05-text-typography/README.md@@@ -20,8 -20,8 +20,10 @@@ Animations specifically for type — wh| [Glitch Text](glitch-text/) | Text tears into red and cyan strips like a broken signal. Best for bold titles. || [Text on a Path](text-on-path/) | Text travels along a wave, an arc or a circle. Best for badges and seals. || [Wavy Text](wavy-text/) | A wave rolls through the word, letter by letter. Best for playful titles. |+| [Highlighter Sweep](highlighter-sweep/) | A marker sweeps in behind the key words, one after another. Best for key points. |+| [Split-Flap Board](split-flap-board/) | Tiles flip through the letters to spell a word, like an airport board. Best for hero titles. |+ | [Neon Flicker](neon-flicker/) | Glowing letters sputter now and then, like a worn neon sign. Best for night themes. |+ | [Handwriting Draw](handwriting-draw/) | A word writes itself stroke by stroke, as if by a pen. Best for greetings and signatures. |## Key principlesdiff --cc index.htmlindex 25d2186e,1a3e94bf..2ca3faa8--- a/index.html+++ b/index.html@@@ -722,31 -710,20 +722,45 @@@ button,input{font:inherit;color:inherit.pv-carousel .track{display:block;animation:t-carousel 4.4s var(--ease) infinite}.pv-carousel .track b{display:block;height:1.1em;line-height:1.1em}@keyframes t-carousel{0%,18%{transform:translateY(0)}25%,43%{transform:translateY(-1.1em)}50%,68%{transform:translateY(-2.2em)}75%,93%{transform:translateY(-3.3em)}100%{transform:translateY(0)}}+/* a sheet with three lines of words: a marker sweeps behind one word of each line in turn, holds, and fades; 1cqh is 1% of the stage's height */+.pv-hilite{background:#0c0608;display:grid;place-items:center;container-type:size}+.pv-hilite .ppr{display:flex;flex-direction:column;gap:9cqh;width:66%;margin-top:9cqh;padding:8cqh 7%;border-radius:6px;background:#f4f1e8}+.pv-hilite .ln{display:flex;gap:6%}+/* each word is drawn by its ::after, painted after the band (::before), so the band sits behind the word */+.pv-hilite .ln b{position:relative;flex:none;height:6cqh}+.pv-hilite .ln b::after{content:"";position:absolute;inset:0;border-radius:2px;background:#45454d}+.pv-hilite .ln .k::before{content:"";position:absolute;left:-5%;right:-5%;top:-55%;bottom:-55%;border-radius:3px;background:#ffd84d;transform:scaleX(0);transform-origin:left center;animation:hl-a 4s cubic-bezier(.45,0,.3,1) infinite}+.pv-hilite .ln .k2::before{animation-name:hl-b}+.pv-hilite .ln .k3::before{animation-name:hl-c}+@keyframes hl-a{0%,6%{transform:scaleX(0);opacity:1}20%,78%{transform:scaleX(1);opacity:1}90%,100%{transform:scaleX(1);opacity:0}}+@keyframes hl-b{0%,26%{transform:scaleX(0);opacity:1}40%,78%{transform:scaleX(1);opacity:1}90%,100%{transform:scaleX(1);opacity:0}}+@keyframes hl-c{0%,46%{transform:scaleX(0);opacity:1}62%,78%{transform:scaleX(1);opacity:1}90%,100%{transform:scaleX(1);opacity:0}}+/* four tiles flip to GATE: each tile's letters step up one at a time while a flap falls over its top half, then the word holds and fades; 1cqw is 1% of the stage's width */+.pv-splitflap{background:#0c0608;display:flex;align-items:center;justify-content:center;gap:1.8cqw;padding-top:7cqh;container-type:size}+.pv-splitflap .t{position:relative;flex:none;width:15cqw;height:21cqw;border-radius:1.6cqw;overflow:hidden;perspective:70cqw;background:linear-gradient(#272930 50%,#1c1d22 50%)}+.pv-splitflap .t::after{content:"";position:absolute;left:0;right:0;top:calc(50% - .4cqw);height:.8cqw;background:#0c0608}+.pv-splitflap .col{display:block;animation:sf-roll 4s linear infinite}+.pv-splitflap .col b{display:block;height:21cqw;line-height:21cqw;text-align:center;font-family:var(--disp);font-weight:700;font-size:14cqw;color:#f4f4f2}+.pv-splitflap .fl{position:absolute;left:0;right:0;top:0;height:50%;opacity:0;transform-origin:50% 100%;background:linear-gradient(rgba(255,255,255,.22),rgba(255,255,255,.06));animation:sf-flap 4s ease-in infinite}+.pv-splitflap .t:nth-child(2) .col,.pv-splitflap .t:nth-child(2) .fl{animation-delay:.1s}+.pv-splitflap .t:nth-child(3) .col,.pv-splitflap .t:nth-child(3) .fl{animation-delay:.2s}+.pv-splitflap .t:nth-child(4) .col,.pv-splitflap .t:nth-child(4) .fl{animation-delay:.3s}+@keyframes sf-roll{0%{opacity:0;transform:translateY(0)}4%{opacity:1}5%{transform:translateY(0);animation-timing-function:steps(5,end)}45%{transform:translateY(-105cqw)}86%{opacity:1}96%,100%{opacity:0;transform:translateY(-105cqw)}}+@keyframes sf-flap{0%,5%{opacity:0;transform:rotateX(0)}5.01%{opacity:1}13%{transform:rotateX(-90deg)}13.01%{transform:rotateX(0)}21%{transform:rotateX(-90deg)}21.01%{transform:rotateX(0)}29%{transform:rotateX(-90deg)}29.01%{transform:rotateX(0)}37%{transform:rotateX(-90deg)}37.01%{transform:rotateX(0)}45%{opacity:1;transform:rotateX(-90deg)}45.01%,100%{opacity:0;transform:rotateX(0)}}+ /* a neon sign on a dark wall: unlit glass under a lit copy whose opacity snaps off and on (step-end); lit at the middle of the cycle */+ .pv-neon{background:radial-gradient(ellipse at 50% 50%,#25161f,#0a0709 72%);display:grid;place-items:center;container-type:size}+ .pv-neon .sg{display:grid;font-family:var(--disp);font-weight:500;font-size:min(13cqw,24cqh);line-height:1;letter-spacing:.06em}+ .pv-neon .sg span{grid-area:1/1;padding:.28em .5em .32em;border:.06em solid;border-radius:.4em}+ .pv-neon .gl{color:color-mix(in srgb,var(--accent) 24%,#2c292e)}+ .pv-neon .lt{color:color-mix(in srgb,var(--accent) 30%,#fff);text-shadow:0 0 .03em #fff,0 0 .12em var(--accent),0 0 .35em var(--accent);box-shadow:0 0 .1em var(--accent),0 0 .3em var(--accent),inset 0 0 .1em var(--accent);animation:t-neon 4.2s step-end infinite}+ @keyframes t-neon{0%{opacity:1}5%{opacity:.25}8%{opacity:1}11%{opacity:.08}15%{opacity:1}68%{opacity:.3}71%{opacity:1}}+ /* "hello" written on a note: one pen line uncovered by its dash (pathLength 1), held, then faded; fully written at 75% (STILL) */+ .pv-handwrite{background:#0c0608;display:grid;place-items:center;container-type:size}+ .pv-handwrite .pp{width:min(64cqw,106cqh);aspect-ratio:1.8;border-radius:4px;background:linear-gradient(170deg,#fbf7ee,#f1eadb);box-shadow:0 6px 16px rgba(0,0,0,.45);transform:translateY(max(6cqh,12px)) rotate(-2deg)} /* below the place label */+ .pv-handwrite svg{display:block;width:100%;height:100%;overflow:visible}+ .pv-handwrite .rl{stroke:#9db0d6;stroke-width:.8}+ .pv-handwrite .w{fill:none;stroke:#2346b5;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1 1;stroke-dashoffset:1;animation:t-hand 5s linear infinite}+ @keyframes t-hand{0%,6%{stroke-dashoffset:1;opacity:1}62%,86%{stroke-dashoffset:0;opacity:1}96%{stroke-dashoffset:0;opacity:0}100%{stroke-dashoffset:1;opacity:0}}/* ── bespoke: 06 3D & Advanced ── */.pv-orbit3d{background:#05080a;display:grid;place-items:center;perspective:460px}@@@ -1044,7 -1021,7 +1058,7 @@@<section class="wrap home-hero" aria-labelledby="hero-title"><span class="float fl1" aria-hidden="true"></span><span class="float fl2" aria-hidden="true"></span><span class="float fl3" aria-hidden="true"></span><span class="float fl4" aria-hidden="true"></span><span class="float fl5" aria-hidden="true"></span><span class="float fl6" aria-hidden="true"></span>- <p class="pill"><span class="pill-dot" aria-hidden="true"></span>132 free animations · no coding needed</p>- <p class="pill"><span class="pill-dot" aria-hidden="true"></span>131 free animations · no coding needed</p>++ <p class="pill"><span class="pill-dot" aria-hidden="true"></span>134 free animations · no coding needed</p><h1 class="h1" id="hero-title">What do you want to animate?</h1><p class="sub">Pick a place, or describe it in your own words. Every animation plays live, and each one comes with a ready-made prompt for your AI assistant.</p><form class="search" id="search-form" role="search" action="./" method="get">@@@ -1101,8 -1078,8 +1115,8 @@@<p class="empty-s">Try a simpler word, or pick one of these:</p><p class="pop"><button type="button" data-q="fade in">fade in</button><button type="button" data-q="typing text">typing text</button><button type="button" data-q="loading spinner">loading spinner</button><button type="button" data-q="parallax">parallax</button><button type="button" data-q="confetti">confetti</button></p></div>- <div class="more" id="more"><button type="button" class="bigbtn" id="more-btn"><span id="more-label">Browse all 132 animations</span><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M6 13l6 6 6-6"/></svg></button></div>- <noscript><p class="noscript">This page shows its animations with JavaScript. All 132 are still easy to reach: see the <a href="https://github.com/matinmonshizadeh/animation-handbook#categories">category list on GitHub</a> or the <a href="sitemap.xml">full sitemap</a>. Each demo is a page of its own under <code>/animations/<category>/<name>/</code>.</p></noscript>- <div class="more" id="more"><button type="button" class="bigbtn" id="more-btn"><span id="more-label">Browse all 131 animations</span><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M6 13l6 6 6-6"/></svg></button></div>- <noscript><p class="noscript">This page shows its animations with JavaScript. All 131 are still easy to reach: see the <a href="https://github.com/matinmonshizadeh/animation-handbook#categories">category list on GitHub</a> or the <a href="sitemap.xml">full sitemap</a>. Each demo is a page of its own under <code>/animations/<category>/<name>/</code>.</p></noscript>++ <div class="more" id="more"><button type="button" class="bigbtn" id="more-btn"><span id="more-label">Browse all 134 animations</span><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M6 13l6 6 6-6"/></svg></button></div>++ <noscript><p class="noscript">This page shows its animations with JavaScript. All 134 are still easy to reach: see the <a href="https://github.com/matinmonshizadeh/animation-handbook#categories">category list on GitHub</a> or the <a href="sitemap.xml">full sitemap</a>. Each demo is a page of its own under <code>/animations/<category>/<name>/</code>.</p></noscript></section><section class="how" id="how" aria-labelledby="how-title">@@@ -1120,7 -1097,7 +1134,7 @@@<footer class="wrap foot"><a class="brand" href="./"><svg class="mark" viewBox="0 0 32 32" aria-hidden="true"><circle class="ring" cx="11.16" cy="20.84" r="6.1"/><circle class="ring" cx="15.12" cy="16.88" r="6.1"/><circle class="ring" cx="18.51" cy="13.49" r="6.1"/><circle class="ball" cx="21.2" cy="10.8" r="6.6"/></svg><span>Animation Handbook</span></a>- <p class="foot-t">132 web animations with live demos and copyable prompts.</p>- <p class="foot-t">131 web animations with live demos and copyable prompts.</p>++ <p class="foot-t">134 web animations with live demos and copyable prompts.</p><nav class="nav" aria-label="Footer"><a class="lnk" href="https://github.com/matinmonshizadeh/animation-handbook" target="_blank" rel="noopener noreferrer">GitHub</a><a class="lnk" href="#top">Back to top</a></nav></footer><div class="toast" id="toast" role="status" aria-live="polite"><span class="ok" aria-hidden="true"><svg class="i" viewBox="0 0 24 24"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span><span class="toast-t"></span></div>@@@ -1264,8 -1240,8 +1278,10 @@@ const CATS=['glitch-text','Glitch Text','Text tears into red and cyan strips like a broken signal. Best for bold titles.'],['text-on-path','Text on a Path','Text travels along a wave, an arc or a circle. Best for badges and seals.'],['wavy-text','Wavy Text','A wave rolls through the word, letter by letter. Best for playful titles.'],+ ['highlighter-sweep','Highlighter Sweep','A marker sweeps in behind the key words, one after another. Best for key points.'],+ ['split-flap-board','Split-Flap Board','Tiles flip through the letters to spell a word, like an airport board. Best for hero titles.'],+ ['neon-flicker','Neon Flicker','Glowing letters sputter now and then, like a worn neon sign. Best for night themes.'],+ ['handwriting-draw','Handwriting Draw','A word writes itself stroke by stroke, as if by a pen. Best for greetings and signatures.'],]},{@@@ -1355,7 -1331,8 +1371,8 @@@ const PV='grain-overlay':'grain2','scanline':'scan','light-leak':'leak','floating-elements':'floaters','grid-dot-pattern-parallax':'dotgrid','abstract-geometric-motion':'geo','magnetic-button':'magnet','heart-burst':'heart','success-confetti':'confetti','error-shake':'shake','swipe-to-dismiss':'swipe',- 'glitch-text':'glitch','text-on-path':'onpath','wavy-text':'wavy',+ 'glitch-text':'glitch','text-on-path':'onpath','wavy-text':'wavy','highlighter-sweep':'hilite','split-flap-board':'splitflap',+ 'neon-flicker':'neon','handwriting-draw':'handwrite','particle-constellation':'particles','flow-field':'flow','synthwave-grid':'synth'};@@@ -1461,8 -1437,8 +1478,10 @@@ const PLACES='glitch-text':['text'],'text-on-path':['text'],'wavy-text':['text'],+ 'highlighter-sweep':['text'],+ 'split-flap-board':['text','intro'],+ 'neon-flicker':['text','bg'],+ 'handwriting-draw':['text','intro'],// 06'3d-model-orbit':['imgcard'],'scroll-driven-3d-rotation':['scroll','imgcard'],@@@ -1512,10 -1487,8 +1531,12 @@@ function pvMarkup(k)case 'sig3': return '<span class="s3 pa anim"></span><span class="s3 pb anim"></span>';case 'sig4': return '<span class="s4r anim"></span><span class="s4r r2 anim"></span><span class="s4r r3 anim"></span><span class="s4d"></span>';case 'sig5': return '<span class="s5 anim"></span><span class="s5 anim"></span><span class="s5 anim"></span>';+ case 'hilite': return '<span class="ppr"><span class="ln"><b style="width:24%"></b><b class="k anim" style="width:40%"></b><b style="width:22%"></b></span>'++ '<span class="ln"><b style="width:20%"></b><b style="width:28%"></b><b class="k k2 anim" style="width:38%"></b></span>'++ '<span class="ln"><b class="k k3 anim" style="width:44%"></b><b style="width:30%"></b></span></span>';+ case 'splitflap': return ['BCDEFG','VWXYZA','OPQRST','ZABCDE'].map(function(s){return '<span class="t"><span class="col anim">'+s.split('').map(function(c){return '<b>'+c+'</b>';}).join('')+'</span><span class="fl anim"></span></span>';}).join('');+ case 'neon': return '<span class="sg"><span class="gl">OPEN</span><span class="lt anim">OPEN</span></span>';+ case 'handwrite': return '<span class="pp"><svg viewBox="-34 -90 180 100"><line class="rl" x1="-34" x2="146" y1="0" y2="0"/><path class="w anim" pathLength="1" d="M0 0C3 0 6.9-4 10.6-12C14.8-22 24.7-44 28.3-58C31.4-70 30.7-76 27.7-76C24.7-76 22.4-70 21.1-62C18.1-46 12.5-18 8.5 0C11.6-12 18.9-27 25.6-27.5C31.2-28 30.2-19 27.9-11C25.7-3 27.5 0 31 0C34.5 0 39.8-3.5 44-9C48.2-14.5 50.6-21 46.7-21.5C42.8-22 38-16 37.1-9.5C36-2.5 40.5 0 45 0C48 0 51.9-4 55.6-12C59.8-22 69.7-44 73.3-58C76.4-70 75.7-76 72.7-76C69.7-76 67.4-70 66.1-62C63.1-46 57-16 55.5-7C54.9-2 57 0 60 0C63 0 66.9-4 70.6-12C74.8-22 84.7-44 88.3-58C91.4-70 90.7-76 87.7-76C84.7-76 82.4-70 81.1-62C78.1-46 72-16 70.5-7C69.9-2 72 0 75 0C78 0 83.2-10 89.3-22C92.4-27 95.9-29 98.9-29C100.9-29 102.2-28 102.3-26.5C102.2-28 100.9-29 98.9-29C95.9-29 92.4-27 89.3-22C86.7-17 83.6-5 87.3-1.5C91.2 1.5 97.8-6 99.6-14C100.9-20 101.3-24 100.7-26C103.3-28.5 107.8-28.5 111.9-27"/></svg></span>';case 'sig6': return '<div class="cube anim"><span class="face f1"></span><span class="face f2"></span><span class="face f3"></span><span class="face f4"></span><span class="face f5"></span><span class="face f6"></span></div>';case 'sig7': return '<span class="s7 anim"></span>';case 'aurora': return '<span class="band b1 anim"></span><span class="band b2 anim"></span><span class="band b3 anim"></span>';@@@ -1794,7 -1767,7 +1815,7 @@@ let shown=[]// under the place label or between two states). Nothing here runs without reduced motion.const STILL={cover:.1,curtain:.6,kinetic:.25,carousel:.1,typewriter:.55,textclip:.7,svgpath:.7,smoke:.3,leak:.7,- flash:.41,blurpage:.2,toggle:.7,shake:.8,hideheader:.72,hilite:.7,splitflap:.7- flash:.41,blurpage:.2,toggle:.7,shake:.8,handwrite:.75++ flash:.41,blurpage:.2,toggle:.7,shake:.8,hideheader:.72,hilite:.7,splitflap:.7,handwrite:.75};function hold(card){const anims=card.querySelector('.pv').getAnimations({subtree:true});diff --cc sitemap.xmlindex af568f11,59d69ca8..2987e1e0--- a/sitemap.xml+++ b/sitemap.xml@@@ -96,8 -95,8 +96,10 @@@<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/05-text-typography/highlighter-sweep/</loc><lastmod>2026-10-01</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/split-flap-board/</loc><lastmod>2026-10-01</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/neon-flicker/</loc><lastmod>2026-10-01</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/handwriting-draw/</loc><lastmod>2026-10-01</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>