Skip to content

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.

Merge branch 'feat/sp-S4' into int/special-animations

matind12284a83c7e
diff --cc README.md
index 575386a0,922a99fe..20a30637
--- a/README.md
+++ b/README.md
@@@ -182,7 -181,7 +182,8 @@@ All 159 techniques, each linked to its
- **[Hold to Confirm](animations/04-micro-interactions/hold-to-confirm/)** — A button fills up while you hold it and acts only once it is full. Best for delete buttons.
- **[Expanding Search](animations/04-micro-interactions/expanding-search/)** — A search icon opens into a field, then closes when done. Best for toolbars.
- **[Button Loading States](animations/04-micro-interactions/button-loading-states/)** — The button becomes a spinner, then a tick or a cross. Best for Save buttons.
+- **[Image Trail](animations/04-micro-interactions/image-trail/)** — Pictures pop up in a trail behind your pointer, then fade. Best for portfolios.
+ - **[Gooey Menu](animations/04-micro-interactions/gooey-menu/)** — Small buttons ooze out of a round button like liquid. Best for quick actions.
</details>
diff --cc animations/04-micro-interactions/README.md
index e255db56,12982306..b3858e8a
--- a/animations/04-micro-interactions/README.md
+++ b/animations/04-micro-interactions/README.md
@@@ -44,7 -44,7 +44,8 @@@ Short, user-triggered animations that p
| [Hold to Confirm](hold-to-confirm/) | A button fills up while you hold it and acts only once it is full. Best for delete buttons. |
| [Expanding Search](expanding-search/) | A search icon opens into a field, then closes when done. Best for toolbars. |
| [Button Loading States](button-loading-states/) | The button becomes a spinner, then a tick or a cross. Best for Save buttons. |
+| [Image Trail](image-trail/) | Pictures pop up in a trail behind your pointer, then fade. Best for portfolios. |
+ | [Gooey Menu](gooey-menu/) | Small buttons ooze out of a round button like liquid. Best for quick actions. |
## Key concepts
diff --cc index.html
index 2ac51954,93c35fcb..feff1d71
--- a/index.html
+++ b/index.html
@@@ -861,21 -843,23 +861,38 @@@ button,input{font:inherit;color:inherit
@keyframes bl-gc{0%,54%{transform:scale(1);opacity:0}58%{opacity:1}61%{transform:scale(1.08)}65%,80%{transform:scale(1);opacity:1}88%,100%{transform:scale(.8);opacity:0}}
@keyframes bl-sp{0%,18%{transform:rotate(0);opacity:0}22%{opacity:1}54%{transform:rotate(810deg);opacity:1}57%,100%{transform:rotate(810deg);opacity:0}}
@keyframes bl-tk{0%,56%{transform:scale(.5);opacity:0}62%,80%{transform:scale(1);opacity:1}86%,100%{transform:scale(1);opacity:0}}
+/* image trail: a pointer sweeps across a dark hero (two bars for its headline) and six small pictures pop up along its path,
+ each on top of the last, then shrink away; 1cqw and 1cqh are 1% of the stage's width and height */
+.pv-imgtrail{background:radial-gradient(90% 70% at 50% 112%,#251a30,transparent 70%),#0b0b0d;overflow:hidden;container-type:size}
+.pv-imgtrail .hl{position:absolute;left:26%;width:48%;top:36%;height:11cqh;border-radius:2cqh;background:#33333c}
+.pv-imgtrail .hl+.hl{left:32%;width:36%;top:51%}
+.pv-imgtrail i{position:absolute;left:calc(var(--x) - 8cqw);top:calc(var(--y) - 10cqw);width:16cqw;height:20cqw;border-radius:1.4cqw;opacity:0;box-shadow:0 1.4cqw 3cqw rgba(0,0,0,.5);animation:it-pop 3.6s var(--ease) infinite;animation-delay:calc(var(--k) * .3s + .3s)}
+.pv-imgtrail i:nth-of-type(1){background:conic-gradient(from 130deg at 42% 66%,#2b1638 0 100deg,transparent 0),radial-gradient(circle at 50% 52%,#ffe3ad 0 15%,transparent 16%),linear-gradient(#2d1b4e,#a8457a 55%,#ff9e6d)}
+.pv-imgtrail i:nth-of-type(2){background:linear-gradient(transparent 68%,#1d3461 0),radial-gradient(circle at 64% 66%,#fff0c8 0 13%,transparent 14%),linear-gradient(#1f3b73,#f08aa0 64%,#ffc896)}
+.pv-imgtrail i:nth-of-type(3){background:radial-gradient(95% 34% at 20% 100%,#c4592b 98%,transparent),radial-gradient(95% 44% at 85% 100%,#e8894a 98%,transparent),radial-gradient(circle at 30% 30%,#fff4d8 0 12%,transparent 13%),linear-gradient(#ffd98e,#f47c5d)}
+.pv-imgtrail i:nth-of-type(4){background:linear-gradient(transparent 80%,#081120 0),radial-gradient(75% 20% at 40% 42%,rgba(63,214,160,.85),transparent 70%),radial-gradient(60% 16% at 62% 28%,rgba(185,140,255,.7),transparent 70%),linear-gradient(#050a1f,#123247)}
+.pv-imgtrail i:nth-of-type(5){background:conic-gradient(from 165deg at 28% 48%,#0b1c1f 0 30deg,transparent 0),conic-gradient(from 165deg at 66% 40%,#1d3b4c 0 30deg,transparent 0),radial-gradient(circle at 68% 22%,#f4f0dc 0 10%,transparent 11%),linear-gradient(#0f2140,#3d6d86)}
+.pv-imgtrail i:nth-of-type(6){background:radial-gradient(circle at 34% 32%,#ff6f8b 0 22%,transparent 23%),radial-gradient(circle at 80% 100%,#2f5bea 0 34%,transparent 35%),#f3e7d7}
+.pv-imgtrail .cur{position:absolute;left:0;top:0;width:2.6cqw;height:2.6cqw;margin:-1.3cqw 0 0 -1.3cqw;border-radius:50%;background:#f4f4f2;opacity:0;animation:it-cur 3.6s linear infinite}
+@keyframes it-pop{0%{opacity:0;transform:scale(.5) rotate(calc(var(--r) * 2))}7%{opacity:1;transform:scale(1.06) rotate(var(--r))}11%,36%{opacity:1;transform:scale(1) rotate(var(--r))}48%,100%{opacity:0;transform:scale(.25) rotate(var(--r))}}
+@keyframes it-cur{0%{transform:translate(5cqw,72cqh);opacity:0}4%{opacity:1}8.33%{transform:translate(14cqw,64cqh)}16.67%{transform:translate(29cqw,46cqh)}25%{transform:translate(44cqw,62cqh)}33.33%{transform:translate(58cqw,44cqh)}41.67%{transform:translate(72cqw,60cqh)}50%{transform:translate(86cqw,46cqh);opacity:1}56%,100%{transform:translate(95cqw,40cqh);opacity:0}}
+ /* gooey menu: three drops ooze out of a round button into an arc and are pulled back in, melted together where they touch by a goo
+ filter (#pvGoo, in the card's markup) on a layer just as big as the open menu; each drop's tail follows it later and slower, and the
+ plus turns into a cross; 1cqh is 1% of the stage's height */
+ .pv-gooey{background:#08090c;container-type:size}
+ .pv-gooey .gf{position:absolute;width:0;height:0}
+ .pv-gooey .gw{position:absolute;left:calc(50% - 40cqh);top:calc(71% - 48cqh);width:80cqh;height:64cqh;filter:url(#pvGoo)}
+ .pv-gooey .gw i{position:absolute;left:32.5cqh;top:40.5cqh;width:15cqh;height:15cqh;border-radius:50%;background:var(--accent)}
+ .pv-gooey .gw .m{left:29cqh;top:37cqh;width:22cqh;height:22cqh}
+ .pv-gooey .k1{--x:-25cqh;--y:-14.5cqh}.pv-gooey .k2{--x:0cqh;--y:-29cqh;--dl:.08s}.pv-gooey .k3{--x:25cqh;--y:-14.5cqh;--dl:.16s}
+ .pv-gooey .d{animation:gy-d 3.6s var(--dl,0s) infinite}
+ .pv-gooey .t{animation:gy-t 3.6s var(--dl,0s) infinite}
+ .pv-gooey .pl{position:absolute;left:calc(50% - 4.5cqh);top:calc(71% - 4.5cqh);width:9cqh;height:9cqh;animation:gy-pl 3.6s var(--ease) infinite}
+ .pv-gooey .pl::before,.pv-gooey .pl::after{content:"";position:absolute;left:0;top:3.6cqh;width:9cqh;height:1.8cqh;border-radius:1cqh;background:#0b0b0d}
+ .pv-gooey .pl::after{transform:rotate(90deg)}
+ @keyframes gy-d{0%,10%{transform:translate(0,0) scale(.5);animation-timing-function:cubic-bezier(.3,1.4,.55,1)}30%,70%{transform:translate(var(--x),var(--y)) scale(1);animation-timing-function:cubic-bezier(.55,-.25,.75,.25)}86%,100%{transform:translate(0,0) scale(.5)}}
+ @keyframes gy-t{0%,13%{transform:translate(0,0) scale(.4);animation-timing-function:cubic-bezier(.25,.8,.3,1)}40%,73%{transform:translate(var(--x),var(--y)) scale(.6);animation-timing-function:cubic-bezier(.55,-.25,.75,.25)}90%,100%{transform:translate(0,0) scale(.4)}}
+ @keyframes gy-pl{0%,10%{transform:rotate(0)}28%,70%{transform:rotate(135deg)}86%,100%{transform:rotate(0)}}
/* ── bespoke: 05 Text & Typography ── */
.pv-kinetic{background:#0c0608;display:grid;place-items:center;overflow:hidden}
@@@ -1575,7 -1558,7 +1592,8 @@@ const CATS=
['hold-to-confirm','Hold to Confirm','A button fills up while you hold it and acts only once it is full. Best for delete buttons.'],
['expanding-search','Expanding Search','A search icon opens into a field, then closes when done. Best for toolbars.'],
['button-loading-states','Button Loading States','The button becomes a spinner, then a tick or a cross. Best for Save buttons.'],
+ ['image-trail','Image Trail','Pictures pop up in a trail behind your pointer, then fade. Best for portfolios.'],
+ ['gooey-menu','Gooey Menu','Small buttons ooze out of a round button like liquid. Best for quick actions.'],
]
},
{
@@@ -1674,8 -1657,7 +1692,8 @@@ const PV=
'drag-to-reorder':'reorder',
'rolling-numbers':'rollnum',
'typing-indicator':'typing',
- 'hold-to-confirm':'holdconf','expanding-search':'xsearch','button-loading-states':'btnload','gooey-menu':'gooey',
+ 'hold-to-confirm':'holdconf','expanding-search':'xsearch','button-loading-states':'btnload',
- 'image-trail':'imgtrail',
++ 'image-trail':'imgtrail','gooey-menu':'gooey',
'flip-card-3d':'flip3d','carousel-3d':'carousel3d','depth-map-photo':'depthmap','flocking':'flock','ascii-halftone':'ascii','physics-2d':'phys2d','matrix-rain':'matrix','plasma':'plasmapv',
'wave-layers':'wavelayers','snow-rain':'snowrain','fireworks':'fireworks',
'topographic-lines':'topo','light-rays':'rays','game-of-life':'life',
@@@ -1816,7 -1797,7 +1834,8 @@@ const PLACES=
'hold-to-confirm':['btn'],
'expanding-search':['menu','btn'],
'button-loading-states':['btn','load'],
+ 'image-trail':['imgcard','intro'],
+ 'gooey-menu':['menu','btn'],
// 05
'kinetic-typography':['text','intro'],
'typewriter-effect':['text','intro'],
@@@ -1904,7 -1880,8 +1923,9 @@@ function pvMarkup(k)
case 'pcurl': return '<span class="pg"><b></b><b></b><b></b></span><span class="nb anim"></span><span class="pg pb anim"><b></b><b></b><b></b></span><span class="fl anim"></span>';
case 'owipe': return '<span class="pg"><b></b><b></b><b></b></span><span class="pbg anim"><span class="pg"><b></b><b></b><b></b></span></span><span class="w w1 anim"></span><span class="w w2 anim"></span>';
case 'sig4': return '<span class="s4r anim"></span><span class="s4r r2 anim"></span><span class="s4r r3 anim"></span><span class="s4d"></span>';
+ case 'imgtrail': return '<span class="hl"></span><span class="hl"></span>'+[[14,64,-6],[29,46,5],[44,62,-4],[58,44,7],[72,60,-5],[86,46,4]].map(([x,y,r],k)=>'<i class="anim" style="--k:'+k+';--x:'+x+'%;--y:'+y+'%;--r:'+r+'deg"></i>').join('')+'<span class="cur anim"></span>';
+ case 'gooey': return '<svg class="gf"><filter id="pvGoo" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="3.5"/><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 20 -9"/></filter></svg>'+
+ '<span class="gw">'+[1,2,3].map(k=>'<i class="t k'+k+' anim"></i>').join('')+[1,2,3].map(k=>'<i class="d k'+k+' anim"></i>').join('')+'<i class="m"></i></span><span class="pl anim"></span>';
case 'gradborder': return '<span class="gbx"><span class="gl"><i class="anim"></i></span><span class="rg"><i class="anim"></i></span><span class="in"><b></b><b></b><b></b></span></span>';
case 'spotlight': return '<span class="sg"><span class="lt anim"></span>'+'<i></i>'.repeat(6)+'</span>';
case 'cartfly': return '<span class="pd"></span><span class="bt anim"></span><span class="ct anim"><svg viewBox="0 0 24 24"><path d="M2.5 3.5h2.3l2.5 11a1.5 1.5 0 0 0 1.5 1.2h8.6a1.5 1.5 0 0 0 1.4-1.1l1.9-6.6H6"/><circle cx="9.5" cy="19.6" r="1.4"/><circle cx="17" cy="19.6" r="1.4"/></svg><span class="bd"><b class="n2 anim">2</b><b class="n3 anim">3</b></span></span><span class="fx anim"><span class="fy anim"><span class="fs anim"></span></span></span>';
diff --cc sitemap.xml
index dd34eb6c,4fe2db5c..6dfd6e98
--- a/sitemap.xml
+++ b/sitemap.xml
@@@ -96,7 -95,7 +96,8 @@@
<url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/hold-to-confirm/</loc><lastmod>2026-10-01</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>
<url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/expanding-search/</loc><lastmod>2026-10-01</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>
<url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/button-loading-states/</loc><lastmod>2026-10-01</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>
+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/image-trail/</loc><lastmod>2026-10-01</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>
+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/04-micro-interactions/gooey-menu/</loc><lastmod>2026-10-01</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>
<url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/kinetic-typography/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>
<url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/typewriter-effect/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>
<url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/05-text-typography/scramble-text/</loc><lastmod>2026-07-14</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>