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: Color pop previews, region r07b: flow trails, synthwave grid, matrix rain, plasma, wave layers, snow and rain, fireworks, topo lines, light rays, game of life, Ken Burns, fire and lightning
matin2ccb04fedfe9
diff --git a/index.html b/index.htmlindex 6b5b84ef..104d508e 100644--- a/index.html+++ b/index.html@@ -528,6 +528,138 @@ button,input{font:inherit;color:inherit}@keyframes k-aurora-tw{0%,100%{opacity:.85}50%{opacity:.35}}/* ── region r07a: end ── *//* ── region r07b: start · 07 Ambient & Background, part B ── */+/* synth · Synthwave Grid: on the dusk sky a striped sun sits on the horizon while a pink neon grid floor rolls steadily toward you */+.pv-synth{background:var(--cp-dusk)}+.pv-synth .st{position:absolute;left:0;right:0;top:0;height:58cqh;background:radial-gradient(circle at 9% 72%,#fff 0 .3cqh,transparent .55cqh),radial-gradient(circle at 23% 44%,#fff 0 .35cqh,transparent .6cqh),radial-gradient(circle at 64% 16%,#fff 0 .4cqh,transparent .65cqh),radial-gradient(circle at 79% 40%,#fff 0 .3cqh,transparent .55cqh),radial-gradient(circle at 92% 18%,#fff 0 .35cqh,transparent .6cqh),radial-gradient(circle at 47% 9%,#fff 0 .3cqh,transparent .55cqh),radial-gradient(circle at 87% 66%,#fff 0 .25cqh,transparent .5cqh);animation:k-synth-tw 3s ease-in-out infinite}+.pv-synth .sun{position:absolute;left:50%;top:27cqh;width:50cqh;height:50cqh;margin-left:-25cqh;border-radius:50%;background:linear-gradient(#fff27a 8%,#ffb03e 42%,#ff4fa3 70%);-webkit-mask:linear-gradient(#000 40%,transparent 0 43%,#000 0 49%,transparent 0 53%,#000 0 58%,transparent 0 63.5%,#000 0);mask:linear-gradient(#000 40%,transparent 0 43%,#000 0 49%,transparent 0 53%,#000 0 58%,transparent 0 63.5%,#000 0)}+.pv-synth .mt{position:absolute;left:0;right:0;top:46cqh;height:14cqh;background:var(--cp-ink);clip-path:polygon(0 100%,0 40%,6% 12%,12% 46%,18% 22%,26% 64%,31% 52%,36% 100%,64% 100%,69% 56%,74% 66%,81% 18%,87% 50%,93% 6%,100% 34%,100% 100%)}+.pv-synth .fl{position:absolute;left:0;right:0;top:60cqh;bottom:0;overflow:hidden;perspective:24cqh;perspective-origin:50% 0;background:linear-gradient(color-mix(in srgb,#ff4fa3 38%,var(--cp-ink)),var(--cp-ink) 55%)}+.pv-synth .fl::after{content:"";position:absolute;left:0;right:0;top:0;height:.9cqh;background:#ff4fa3}+.pv-synth .gd{position:absolute;left:-150cqw;right:-150cqw;bottom:0;height:180cqh;transform-origin:50% 100%;background:linear-gradient(90deg,transparent calc(50% - .55cqh),#ff4fa3 0 calc(50% + .55cqh),transparent 0) 50% 0/14cqh 100%,linear-gradient(transparent calc(100% - 1.1cqh),#ff4fa3 0) 0 100%/100% 12cqh;-webkit-mask:linear-gradient(transparent 33%,#000 83%);mask:linear-gradient(transparent 33%,#000 83%);animation:k-synth-roll 1.1s linear infinite}+@keyframes k-synth-roll{from{transform:rotateX(90deg) translateY(0)}to{transform:rotateX(90deg) translateY(12cqh)}}+@keyframes k-synth-tw{0%,100%{opacity:.9}50%{opacity:.4}}+/* matrix · Matrix Rain: on the dusk sky, columns of chunky glyphs rain down, each led by a bright white head with a yellow tail fading behind it */+.pv-matrix{background:var(--cp-dusk)}+.pv-matrix .c{position:absolute;top:0;display:flex;flex-direction:column;align-items:center;width:8cqw;margin-left:-4cqw;padding-bottom:.25em;font:900 9cqh/.96 var(--disp);color:var(--g1);-webkit-mask:linear-gradient(transparent,#000 78%);mask:linear-gradient(transparent,#000 78%);animation:k-matrix-fall 2.6s linear infinite}+.pv-matrix .c b:last-child{color:#fff;text-shadow:var(--cp-word)}+.pv-matrix .fa{font-size:6.2cqh;opacity:.5}+@keyframes k-matrix-fall{from{transform:translateY(-100%)}to{transform:translateY(100cqh)}}+/* snowrain · Snow / Rain: over an ink town with lit windows, snow drifts down and sways, then turns to slanting rain, and back to snow */+.pv-snowrain{background:var(--cp-dusk)}+.pv-snowrain .mo{position:absolute;left:76cqw;top:13cqh;width:14cqh;height:14cqh;border-radius:50%;background:#fff;box-shadow:0 0 0 2.6cqh rgba(255,255,255,.16)}+.pv-snowrain .tw,.pv-snowrain .wi{position:absolute;left:0;right:0;bottom:0;height:34cqh}+.pv-snowrain .tw{background:var(--cp-ink);clip-path:polygon(0 100%,0 50%,7% 24%,14% 50%,14% 20%,23% 20%,23% 46%,31.5% 16%,40% 46%,40% 60%,51% 60%,51% 40%,58.5% 12%,66% 40%,66% 10%,69% 10%,71% 2%,73% 10%,76% 10%,76% 48%,83% 24%,90% 48%,90% 34%,100% 34%,100% 100%)}+.pv-snowrain .wi{background:linear-gradient(var(--g1) 0 0) 5.5% 74%/2.4cqh 3.2cqh no-repeat,linear-gradient(var(--g1) 0 0) 18% 44%/2.4cqh 3.2cqh no-repeat,linear-gradient(var(--g1) 0 0) 18.5% 74%/2.4cqh 3.2cqh no-repeat,linear-gradient(var(--g1) 0 0) 30.5% 66%/2.4cqh 3.2cqh no-repeat,linear-gradient(var(--g1) 0 0) 45% 82%/2.4cqh 3.2cqh no-repeat,linear-gradient(var(--g1) 0 0) 57.5% 58%/2.4cqh 3.2cqh no-repeat,linear-gradient(var(--g1) 0 0) 71% 36%/2.4cqh 3.2cqh no-repeat,linear-gradient(var(--g1) 0 0) 71.5% 70%/2.4cqh 3.2cqh no-repeat,linear-gradient(var(--g1) 0 0) 82.5% 72%/2.4cqh 3.2cqh no-repeat,linear-gradient(var(--g1) 0 0) 95% 58%/2.4cqh 3.2cqh no-repeat}+.pv-snowrain .sn,.pv-snowrain .rn{position:absolute;inset:0}+.pv-snowrain .sn{animation:k-snowrain-snow 8s ease-in-out infinite}+.pv-snowrain .rn{opacity:0;animation:k-snowrain-rain 8s ease-in-out infinite}+.pv-snowrain .sn i{position:absolute;left:-6cqw;right:-6cqw;top:calc(-1 * var(--t));bottom:0;animation:k-snowrain-drift 3.4s linear infinite}+.pv-snowrain .s1{--t:34cqh;background:radial-gradient(circle at 12% 20%,#fff 0 1.8cqh,transparent 2cqh),radial-gradient(circle at 47% 66%,#fff 0 1.5cqh,transparent 1.7cqh),radial-gradient(circle at 80% 38%,#fff 0 1.9cqh,transparent 2.1cqh);background-size:32cqw 34cqh}+.pv-snowrain .s2{--t:26cqh;opacity:.6;background:radial-gradient(circle at 30% 30%,#fff 0 .8cqh,transparent 1cqh),radial-gradient(circle at 74% 78%,#fff 0 .7cqh,transparent .9cqh);background-size:21cqw 26cqh;animation-duration:4.6s;animation-delay:-1.3s}+.pv-snowrain .rn i{position:absolute;inset:-40cqh -30cqw;rotate:14deg;animation:k-snowrain-fall .5s linear infinite}+.pv-snowrain .r1{--t:28cqh;background:radial-gradient(.4cqh 4.6cqh at 20% 30%,rgba(255,255,255,.85) 55%,transparent),radial-gradient(.4cqh 4.6cqh at 64% 76%,rgba(255,255,255,.85) 55%,transparent);background-size:14cqw 28cqh}+.pv-snowrain .r2{--t:22cqh;opacity:.5;background:radial-gradient(.3cqh 3.4cqh at 44% 18%,#fff 55%,transparent),radial-gradient(.3cqh 3.4cqh at 86% 62%,#fff 55%,transparent);background-size:11cqw 22cqh;animation-duration:.7s;animation-delay:-.3s}+@keyframes k-snowrain-snow{0%,42%{opacity:1}50%,92%{opacity:0}100%{opacity:1}}+@keyframes k-snowrain-rain{0%,42%{opacity:0}50%,92%{opacity:1}100%{opacity:0}}+@keyframes k-snowrain-drift{0%{transform:translate(0,0)}25%{transform:translate(1.6cqw,calc(var(--t) * .25))}50%{transform:translate(0,calc(var(--t) * .5))}75%{transform:translate(-1.6cqw,calc(var(--t) * .75))}100%{transform:translate(0,var(--t))}}+@keyframes k-snowrain-fall{from{transform:translateY(0)}to{transform:translateY(var(--t))}}+/* fireworks · Fireworks: on the dusk sky over an ink skyline, rockets climb, slow, and burst into rings of chunky sparks that droop and fade */+.pv-fireworks{background:var(--cp-dusk)}+.pv-fireworks .fw{position:absolute;width:0;height:0}+.pv-fireworks .rk{position:absolute;left:-.9cqh;top:-.9cqh;width:1.8cqh;height:1.8cqh;border-radius:50%;background:#fff;opacity:0;animation:k-fireworks-rk 3.6s infinite;animation-delay:var(--dl)}+.pv-fireworks .rk::after{content:"";position:absolute;left:.5cqh;top:1.4cqh;width:.8cqh;height:9cqh;border-radius:1cqh;background:linear-gradient(rgba(255,255,255,.8),transparent)}+.pv-fireworks .bu{position:absolute;left:0;top:0;opacity:0;animation:k-fireworks-bu 3.6s infinite;animation-delay:var(--dl)}+.pv-fireworks .bu b{position:absolute;left:-1.1cqh;top:-23cqh;width:2.2cqh;height:8cqh;border-radius:2cqh;background:var(--fc);transform-origin:50% 23cqh;rotate:calc(var(--k) * 36deg)}+.pv-fireworks .bu .d{left:-1.3cqh;top:-14cqh;width:2.6cqh;height:2.6cqh;transform-origin:50% 14cqh;rotate:calc(var(--k) * 36deg + 18deg)}+.pv-fireworks .ct{position:absolute;left:0;right:0;bottom:0;height:24cqh;background:var(--cp-ink);clip-path:polygon(0 100%,0 56%,7% 56%,7% 32%,15% 32%,15% 62%,21% 62%,21% 42%,26% 42%,26% 14%,31% 14%,31% 50%,40% 50%,40% 68%,47% 68%,47% 36%,55% 36%,55% 58%,61% 58%,61% 24%,64% 24%,64% 6%,66% 6%,66% 24%,69% 24%,69% 54%,78% 54%,78% 38%,86% 38%,86% 62%,93% 62%,93% 46%,100% 46%,100% 100%)}+@keyframes k-fireworks-rk{0%{transform:translateY(var(--h));opacity:0;animation-timing-function:cubic-bezier(.25,.6,.45,1)}2%{transform:translateY(calc(var(--h) * .86));opacity:1;animation-timing-function:cubic-bezier(.25,.6,.45,1)}20%{transform:translateY(0);opacity:1}21%,100%{transform:translateY(0);opacity:0}}+@keyframes k-fireworks-bu{0%,20%{transform:translateY(0) scale(.12);opacity:0}21%{transform:translateY(0) scale(.16);opacity:1;animation-timing-function:cubic-bezier(.12,.75,.3,1)}46%{transform:translateY(1.5cqh) scale(1);opacity:1;animation-timing-function:cubic-bezier(.5,0,.75,.6)}80%,100%{transform:translateY(9cqh) scale(1.06);opacity:0}}+/* lightning · Lightning: from ink storm clouds a jagged white bolt strikes the ink hills, flickers and fades, then another, while the sky behind lights up */+.pv-lightning{background:var(--cp-dusk)}+.pv-lightning .fl{position:absolute;inset:0;background:#fff;opacity:0;animation:k-lightning-sky 3.6s linear infinite}+.pv-lightning .bt{position:absolute;inset:0;width:100%;height:100%;opacity:0;animation:k-lightning-bolt 3.6s linear infinite}+.pv-lightning .b2{animation-delay:-1.8s}+.pv-lightning .bt path{fill:none;stroke:#fff;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}+.pv-lightning .bt .g{stroke:rgba(255,255,255,.3);stroke-width:7}+.pv-lightning .cl{position:absolute;left:-8cqw;right:-8cqw;top:0;height:38cqh;--cl:radial-gradient(10cqh at 3% 44%,#000 98%,transparent),radial-gradient(13cqh at 15% 54%,#000 98%,transparent),radial-gradient(9cqh at 26% 66%,#000 98%,transparent),radial-gradient(15cqh at 37% 46%,#000 98%,transparent),radial-gradient(10cqh at 50% 64%,#000 98%,transparent),radial-gradient(17cqh at 63% 44%,#000 98%,transparent),radial-gradient(10cqh at 76% 62%,#000 98%,transparent),radial-gradient(13cqh at 87% 50%,#000 98%,transparent),radial-gradient(9cqh at 98% 60%,#000 98%,transparent),linear-gradient(#000 40%,transparent 0);background:var(--cp-ink);-webkit-mask:var(--cl);mask:var(--cl)}+.pv-lightning .cl i{position:absolute;inset:0;background:rgba(255,255,255,.7);opacity:0;animation:k-lightning-sky 3.6s linear infinite}+.pv-lightning .hl{position:absolute;left:0;right:0;bottom:0;height:26cqh;background:radial-gradient(62cqw 20cqh at 18% 100%,var(--cp-ink) 98%,transparent),radial-gradient(70cqw 24cqh at 84% 100%,var(--cp-ink) 98%,transparent),linear-gradient(transparent 72%,var(--cp-ink) 0)}+@keyframes k-lightning-bolt{0%,9%{opacity:0}10%{opacity:1}12%{opacity:.3}14%,24%{opacity:1}42%,100%{opacity:0}}+@keyframes k-lightning-sky{0%,9%{opacity:0}10%{opacity:.36}12%{opacity:.12}14%{opacity:.32}30%,59%{opacity:0}60%{opacity:.36}62%{opacity:.12}64%{opacity:.32}80%,100%{opacity:0}}+/* fire · Fire Effect: on the dusk sky, rows of red, orange and yellow flame tongues flicker up from a white-hot base while embers rise, shrink and fade */+.pv-fire{background:var(--cp-dusk)}+.pv-fire .f{position:absolute;bottom:calc(var(--w) * -.32);width:var(--w);height:var(--w);margin-left:calc(var(--w) * -.5);transform-origin:50% 100%;transform:scale(1,var(--sy));animation:k-fire-lick .9s ease-in-out infinite}+.pv-fire .f::before{content:"";position:absolute;inset:0;border-radius:50% 0 50% 50%;rotate:-45deg;background:var(--fc)}+.pv-fire .r{--fc:#ff4a35;--w:23cqh}+.pv-fire .o{--fc:#ff8f1f;--w:18cqh}+.pv-fire .y{--fc:#ffd43b;--w:13cqh}+.pv-fire .b{position:absolute;left:-2cqw;right:-2cqw;bottom:-3cqh;height:10cqh;border-radius:5cqh 5cqh 0 0;background:#fff3c4}+.pv-fire .e{position:absolute;bottom:40cqh;width:4.2cqh;height:4.2cqh;margin-left:-2.1cqh;border-radius:50%;background:var(--fc);opacity:0;animation:k-fire-rise 1.7s cubic-bezier(.3,.6,.5,1) infinite}+@keyframes k-fire-lick{0%,100%{transform:scale(1,var(--sy))}30%{transform:translateX(-.8cqw) scale(.88,calc(var(--sy) * 1.2))}62%{transform:translateX(.7cqw) scale(1.08,calc(var(--sy) * .84))}}+@keyframes k-fire-rise{0%{transform:translate(0,0) scale(1);opacity:0}10%{transform:translate(0,-3cqh) scale(1);opacity:1}100%{transform:translate(var(--dx),-40cqh) scale(.2);opacity:0}}+/* plasmapv · Plasma Field: the whole stage is a flat, bright heat map of nested bands (violet, pink, orange, yellow, white) whose wavy edges keep turning, so the colors flow like liquid */+.pv-plasmapv{background:#5b2fd6}+.pv-plasmapv svg{position:absolute;inset:0;width:100%;height:100%}+.pv-plasmapv g{transform-box:view-box;animation:k-plasmapv-swell 3s ease-in-out infinite alternate}+.pv-plasmapv path{transform-box:view-box;animation:k-plasmapv-turn 20s linear infinite}+@keyframes k-plasmapv-swell{from{transform:scale(.93)}to{transform:scale(1.08)}}+@keyframes k-plasmapv-turn{from{transform:rotate(0)}to{transform:rotate(var(--a))}}+/* wavelayers · Wave Layers: four white wave strips, the far ones small and pale, the near ones lower, bigger and brighter, slide sideways each at its own speed */+.pv-wavelayers .w{position:absolute;left:0;bottom:0;width:200cqw;animation:k-wavelayers-slide 8s linear infinite}+.pv-wavelayers .w svg{display:block;width:100%;height:100%}+.pv-wavelayers .w1{height:62cqh;animation-duration:16s}.pv-wavelayers .w1 path{fill:rgba(255,255,255,.4)}+.pv-wavelayers .w2{height:49cqh;animation-duration:11s}.pv-wavelayers .w2 path{fill:rgba(255,255,255,.64)}+.pv-wavelayers .w3{height:36cqh;animation-duration:7.5s}.pv-wavelayers .w3 path{fill:#fff}+.pv-wavelayers .w4{height:23cqh;animation-duration:5s}.pv-wavelayers .w4 path{fill:var(--cp-ink)}+.pv-wavelayers .bo{position:absolute;left:58cqw;top:48.3cqh;width:24cqh;height:21cqh;margin-left:-12cqh;animation:k-wavelayers-bob 1.875s ease-in-out infinite alternate;animation-delay:-3.4125s}+.pv-wavelayers .bt{position:absolute;inset:0;transform-origin:50% 90%;animation:k-wavelayers-rock 1.875s ease-in-out infinite alternate;animation-delay:-.6s}+.pv-wavelayers .bt::before{content:"";position:absolute;left:0;right:0;bottom:0;height:6.4cqh;background:var(--cp-ink);clip-path:polygon(0 0,100% 0,82% 100%,18% 100%)}+.pv-wavelayers .bt::after{content:"";position:absolute;left:40%;bottom:6.4cqh;width:1.2cqh;height:14.6cqh;border-radius:.6cqh;background:var(--cp-ink)}+.pv-wavelayers .bt i{position:absolute;left:calc(40% + 1.2cqh);bottom:7.4cqh;width:10cqh;height:13cqh;background:#fff;clip-path:polygon(0 0,100% 100%,0 100%)}+@keyframes k-wavelayers-slide{from{transform:translateX(0)}to{transform:translateX(-100cqw)}}+@keyframes k-wavelayers-bob{from{transform:translateY(-4.3cqh)}to{transform:translateY(4.3cqh)}}+@keyframes k-wavelayers-rock{from{transform:rotate(-6deg)}to{transform:rotate(6deg)}}+/* topo · Topographic Lines: ink contour lines like a hiking map ring two summits; the rings slowly drift, swell and turn, so the lines bend, crowd and spread */+.pv-topo svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}+.pv-topo path{fill:none;stroke:var(--cp-ink);stroke-width:.85;stroke-linejoin:round;opacity:.5;transform-box:view-box;animation:k-topo-drift 6s ease-in-out infinite}+.pv-topo path.ix{stroke-width:1.7;opacity:.92}+.pv-topo path.pk{fill:var(--cp-ink);stroke:none;opacity:1}+@keyframes k-topo-drift{0%,100%{transform:translate(0,0) rotate(0) scale(1)}50%{transform:translate(var(--x),var(--y)) rotate(var(--r)) scale(var(--s))}}+/* rays · Light Rays: soft white beams fan down from a bright point above the top right, slowly sweeping and brightening over an ink forest while dust specks glint in them */+.pv-rays .gw{position:absolute;left:74cqw;top:-18cqh;width:64cqh;height:44cqh;margin-left:-32cqh;border-radius:50%;background:radial-gradient(closest-side,rgba(255,255,255,.8),rgba(255,255,255,0))}+.pv-rays .r{position:absolute;left:74cqw;top:-10cqh;width:var(--w);height:150cqh;margin-left:calc(var(--w) * -.5);transform-origin:50% 0;background:linear-gradient(rgba(255,255,255,.72),rgba(255,255,255,.34) 44%,transparent 82%);clip-path:polygon(44% 0,56% 0,100% 100%,0 100%);animation:k-rays-sweep 5s ease-in-out infinite alternate}+.pv-rays .tr{position:absolute;left:0;right:0;bottom:0;height:44cqh;background:var(--cp-ink);clip-path:polygon(0 100%,0 86%,-1% 86%,4% 34%,9% 86%,7% 86%,13% 12%,19% 86%,19.5% 86%,24% 40%,28.5% 86%,29.5% 86%,35% 22%,40.5% 86%,43% 86%,47% 46%,51% 86%,50.5% 86%,57% 18%,63.5% 86%,64% 86%,69% 38%,74% 86%,73% 86%,80% 8%,87% 86%,86.5% 86%,92% 30%,97.5% 86%,100% 86%,100% 100%)}+.pv-rays .ds{position:absolute;width:1.4cqh;height:1.4cqh;margin:-.7cqh 0 0 -.7cqh;border-radius:50%;background:#fff;opacity:0;animation:k-rays-glint 3.2s ease-in-out infinite}+@keyframes k-rays-sweep{from{transform:rotate(calc(var(--a) - 4deg));opacity:.55}to{transform:rotate(calc(var(--a) + 4deg));opacity:1}}+@keyframes k-rays-glint{0%,100%{transform:translateY(1.5cqh) scale(.6);opacity:0}50%{transform:translateY(-1.5cqh) scale(1);opacity:1}}+/* life · Game of Life: on a board of faint cells, chunky white live cells follow Conway's rules: a glider crawls across while a blinker and a toad flip every generation beside a still beehive */+.pv-life .bd{position:absolute;inset:0;background:conic-gradient(from 90deg at 1cqh 1cqh,rgba(255,255,255,.2) 90deg,transparent 0) 0 0/10cqh 10cqh}+.pv-life i{position:absolute;left:calc(var(--c) * 10cqh + 1cqh);top:calc(var(--r) * 10cqh + 1cqh);width:9cqh;height:9cqh;border-radius:2.2cqh;background:#fff;box-shadow:0 .9cqh 0 var(--cp-lip)}+.pv-life .gl{position:absolute;left:-20cqh;top:20cqh;animation:k-life-move 8s steps(8,end) infinite}+.pv-life b{position:absolute;left:0;top:0;opacity:0}+.pv-life .gl b{animation:k-life-four 1s steps(1,end) infinite}+.pv-life .os b{animation:k-life-two .5s steps(1,end) infinite}+@keyframes k-life-move{from{transform:translate(0,0)}to{transform:translate(80cqh,80cqh)}}+@keyframes k-life-four{0%{opacity:1}25%,100%{opacity:0}}+@keyframes k-life-two{0%{opacity:1}50%,100%{opacity:0}}+/* kenburns · Ken Burns Effect: in a white photo frame a sunny picture slowly zooms and pans toward its sun, then a night picture fades in over it and slowly zooms out */+.pv-kenburns .fr{position:absolute;left:19cqw;right:19cqw;top:25cqh;bottom:9cqh;border-radius:4cqh;background:#fff;box-shadow:var(--cp-lift)}+.pv-kenburns .ph{position:absolute;inset:2.4cqh;overflow:hidden;border-radius:2.4cqh}+.pv-kenburns .p{position:absolute;inset:0;overflow:hidden}+.pv-kenburns .p1{background:linear-gradient(170deg,var(--g1),var(--g2));transform-origin:76% 28%;animation:k-kenburns-a 8s linear infinite}+.pv-kenburns .p2{background:var(--cp-dusk);transform-origin:30% 40%;opacity:0;animation:k-kenburns-b 8s linear infinite}+.pv-kenburns .su{position:absolute;right:16%;top:13%;width:21%;aspect-ratio:1;border-radius:50%;background:#fff}+.pv-kenburns .hx{position:absolute;left:30%;right:-30%;bottom:-36%;height:76%;border-radius:50%;background:rgba(255,255,255,.5)}+.pv-kenburns .hy{position:absolute;left:-24%;right:26%;bottom:-44%;height:88%;border-radius:50%;background:var(--cp-ink)}+.pv-kenburns .mo{position:absolute;left:16%;top:14%;width:15%;aspect-ratio:1;border-radius:50%;background:#fff;box-shadow:0 0 0 2cqh rgba(255,255,255,.18)}+.pv-kenburns .p2::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 44% 14%,#fff 0 .35cqh,transparent .6cqh),radial-gradient(circle at 62% 24%,#fff 0 .3cqh,transparent .55cqh),radial-gradient(circle at 80% 10%,#fff 0 .4cqh,transparent .65cqh),radial-gradient(circle at 90% 30%,#fff 0 .3cqh,transparent .55cqh)}+.pv-kenburns .mt{position:absolute;left:0;bottom:0;width:100%;height:62%}+.pv-kenburns .mt path{fill:var(--cp-ink)}+.pv-kenburns .mt .c{fill:#fff}+@keyframes k-kenburns-a{0%{transform:translate(-.6%,.4%) scale(1.034)}54%{transform:translate(-4%,2.6%) scale(1.22)}55%,90%{transform:translate(0,0) scale(1)}100%{transform:translate(-.6%,.4%) scale(1.034)}}+@keyframes k-kenburns-b{0%,44%{opacity:0;transform:translate(3%,-2%) scale(1.24)}54%,90%{opacity:1}98%{opacity:0;transform:translate(0,0) scale(1.02)}100%{opacity:0;transform:translate(3%,-2%) scale(1.24)}}+/* flow · Flow Field: particles ride smooth invisible currents over the stage, leaving white trails that curve and fade (the canvas in the markup, drawn by flowEngine()) */+.pv-flow canvas{opacity:.94}/* ── region r07b: end ── */@media(prefers-reduced-motion:reduce){@@ -1686,19 +1818,19 @@ function pvMarkup(k){case 'constell': return '';// ── region r07a: end ──// ── region r07b: start ──- case 'flow': return '';- case 'synth': return '';- case 'matrix': return '';- case 'plasmapv': return '';- case 'wavelayers': return '';- case 'snowrain': return '';- case 'fireworks': return '';- case 'topo': return '';- case 'rays': return '';- case 'life': return '';- case 'kenburns': return '';- case 'fire': return '';- case 'lightning': return '';+ case 'flow': return '<canvas class="anim"></canvas>';+ case 'synth': return '<span class="st anim"></span><span class="sun"></span><span class="mt"></span><span class="fl"><i class="gd anim"></i></span>';+ case 'matrix': return [[14,3.9,-2.2,0],[28,4.4,-.6,0],[42,3.6,-3.1,0],[56,4.2,-1.5,0],[70,3.8,-2.7,0],[84,4.6,-.3,0],[7,2.6,-.4,1],[21,3.1,-1.9,1],[35,2.4,-1.1,1],[49,2.9,-2.5,1],[63,2.5,-.2,1],[77,3.2,-1.4,1],[91,2.7,-2,1]].map(([x,d,dl,near],i)=>'<span class="c'+(near?'':' fa')+' anim" style="left:'+x+'cqw;animation-duration:'+d+'s;animation-delay:'+dl+'s">'+[...'7F3A90C1E5B28D46173A9F0E'.slice(i%12,i%12+10)].map(c=>'<b>'+c+'</b>').join('')+'</span>').join('');+ case 'plasmapv': return '<svg viewBox="0 0 160 100">'+[['#ff4fa3',1],['#ff9a3c',.74],['#ffe14d',.5],['#fff',.26]].map(([col,s],L)=>[[30,72,58,4,0],[100,22,50,3,1.3],[146,84,44,5,2.1]].map(([cx,cy,R,k,ph],j)=>{const n=36,p=[];for(let i=0;i<n;i++){const t=i/n*2*Math.PI,r=R*s*(1+.1*Math.sin(k*t+ph+L*.9)+.07*Math.sin((k+3)*t+2*ph-L*.7));p.push([cx+r*Math.cos(t),cy+r*Math.sin(t)]);}const m=(a,b)=>((a[0]+b[0])/2).toFixed(1)+' '+((a[1]+b[1])/2).toFixed(1);let d='M'+m(p[n-1],p[0]);for(let i=0;i<n;i++)d+='Q'+p[i][0].toFixed(1)+' '+p[i][1].toFixed(1)+' '+m(p[i],p[(i+1)%n]);const o='transform-origin:'+(cx/1.6).toFixed(2)+'% '+cy+'%;';return '<g class="anim" style="'+o+'animation-duration:'+(3+L*.7+j*.5).toFixed(1)+'s;animation-delay:-'+(L*.9+j*.4).toFixed(1)+'s"><path class="anim" fill="'+col+'" style="'+o+'--a:'+((L+j)%2?-360:360)+'deg;animation-duration:'+(18+L*3+j*4)+'s" d="'+d+'Z"/></g>';}).join('')).join('')+'</svg>';+ case 'wavelayers': return [['w1',40,4],['w2',50,7],[''],['w3',100,12],['w4',100,22]].map(([c,P,A])=>{if(!c)return '<span class="bo anim"><span class="bt anim"><i></i></span></span>';let d='M0 '+A+'Q'+P/4+' '+-A+' '+P/2+' '+A;for(let x=P;x<=400;x+=P/2)d+='T'+x+' '+A;return '<span class="w '+c+' anim"><svg viewBox="0 0 400 100" preserveAspectRatio="none"><path d="'+d+'V100H0Z"/></svg></span>';}).join('');+ case 'snowrain': return '<span class="mo"></span><span class="tw"></span><span class="wi"></span><span class="sn anim"><i class="s2 anim"></i><i class="s1 anim"></i></span><span class="rn anim"><i class="r2 anim"></i><i class="r1 anim"></i></span>';+ case 'fireworks': return [['24cqw','52cqh','#fff','0s'],['70cqw','32cqh','var(--g1)','-.9s'],['47cqw','42cqh','#ff7ab6','-1.8s'],['84cqw','58cqh','#fff','-2.7s']].map(([x,y,c,dl])=>'<span class="fw" style="left:'+x+';top:'+y+';--fc:'+c+';--h:calc(100cqh - '+y+');--dl:'+dl+'"><i class="rk anim"></i><i class="bu anim">'+[0,1,2,3,4,5,6,7,8,9].map(k=>'<b style="--k:'+k+'"></b><b class="d" style="--k:'+k+'"></b>').join('')+'</i></span>').join('')+'<span class="ct"></span>';+ case 'topo': return '<svg viewBox="0 0 160 100">'+[[70,66,8,6.6,1,.9,-.7],[144,16,3,5.6,0,-.8,.6]].map(([cx,cy,N,step,big,dx,dy])=>{const o='transform-origin:'+(cx/1.6).toFixed(2)+'% '+cy+'%;';let out='';for(let i=1;i<=N;i++){const R=step*i,p=[],n=36;for(let q=0;q<n;q++){const t=q/n*2*Math.PI,r=R*(1+.07*Math.sin(3*t+.8+.35*i)+.05*Math.sin(5*t+2.1-.5*i));p.push([cx+r*1.18*Math.cos(t),cy+r*.92*Math.sin(t)]);}const m=(a,b)=>((a[0]+b[0])/2).toFixed(1)+' '+((a[1]+b[1])/2).toFixed(1);let d='M'+m(p[n-1],p[0]);for(let q=0;q<n;q++)d+='Q'+p[q][0].toFixed(1)+' '+p[q][1].toFixed(1)+' '+m(p[q],p[(q+1)%n]);const f=N+1-i;out+='<path class="'+(big&&i%4==0?'ix ':'')+'anim" style="'+o+'--x:'+(f*dx).toFixed(1)+'%;--y:'+(f*dy).toFixed(1)+'%;--r:'+(i%2?2.5:-2.5)+'deg;--s:'+(1+f*.008).toFixed(3)+'" d="'+d+'Z"/>';}return out+'<path class="pk anim" style="'+o+'--x:'+(N*dx).toFixed(1)+'%;--y:'+(N*dy).toFixed(1)+'%;--r:0deg;--s:1" d="M'+(cx-2.6)+' '+(cy+1.8)+'L'+cx+' '+(cy-2.6)+'L'+(cx+2.6)+' '+(cy+1.8)+'Z"/>';}).join('')+'</svg>';+ case 'rays': return '<span class="gw"></span><span class="tr"></span>'+[[-8,18,5.2,0],[5,26,6.4,-2],[16,16,4.6,-1],[27,30,7,-3.5],[38,18,5.6,-1.6],[48,22,6.8,-4]].map(([a,w,d,dl])=>'<i class="r anim" style="--a:'+a+'deg;--w:'+w+'cqh;animation-duration:'+d+'s;animation-delay:'+dl+'s"></i>').join('')+[[71,40,0],[61.7,57,-1.1],[61,30,-2.3],[49.6,66,-.6],[50.7,37,-1.8],[39,40,-2.8],[78.6,44,-1.4],[45.4,79,-.3]].map(([x,y,dl])=>'<b class="ds anim" style="left:'+x+'cqw;top:'+y+'cqh;animation-delay:'+dl+'s"></b>').join('');+ case 'life': return '<span class="bd"></span><span class="gl anim">'+[[[1,0],[2,1],[0,2],[1,2],[2,2]],[[0,1],[2,1],[1,2],[2,2],[1,3]],[[2,1],[0,2],[2,2],[1,3],[2,3]],[[1,1],[2,2],[3,2],[1,3],[2,3]]].map((cs,k)=>'<b class="anim" style="animation-delay:-'+(k?(4-k)/4:0)+'s">'+cs.map(([c,r])=>'<i style="--c:'+c+';--r:'+r+'"></i>').join('')+'</b>').join('')+'</span>'+[[[[13,2]],[[13,1],[13,3]],[[12,2],[14,2]]],[[[10,4],[7,5]],[[8,4],[9,4],[8,5],[9,5]],[[9,3],[7,4],[10,5],[8,6]]],[[[13,7],[14,7],[12,8],[15,8],[13,9],[14,9]]]].map(([st,a,z])=>'<span class="os">'+st.map(([c,r])=>'<i style="--c:'+c+';--r:'+r+'"></i>').join('')+(a?[a,z].map((cs,k)=>'<b class="anim" style="animation-delay:-'+k/4+'s">'+cs.map(([c,r])=>'<i style="--c:'+c+';--r:'+r+'"></i>').join('')+'</b>').join(''):'')+'</span>').join('');+ case 'kenburns': return '<span class="fr"><span class="ph"><span class="p p1 anim"><i class="su"></i><i class="hx"></i><i class="hy"></i></span><span class="p p2 anim"><i class="mo"></i><svg class="mt" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0 100V62L16 30L30 58L50 4L68 50L80 26L100 60V100Z"/><path class="c" d="M12 38L16 30L19.5 37L17.5 35L16 38L14 35.5ZM45 17.5L50 4L54.5 15.5L52 13L50 17L47.5 13.5ZM77 32L80 26L85 34.5L82.5 31.5L80 34L78.5 31Z"/></svg></span></span></span>';+ case 'fire': return [['r',[[2,1.9],[15,2.3],[28,1.8],[41,2.5],[54,2],[67,2.4],[80,1.85],[93,2.2]]],['o',[[6,1.7],[17,2],[28,1.6],[39,2.1],[50,1.8],[61,2],[72,1.65],[83,1.95],[94,1.7]]],['y',[[1,1.6],[11.5,1.9],[22,1.5],[32.5,1.8],[43,1.6],[53.5,1.95],[64,1.55],[74.5,1.8],[85,1.6],[95.5,1.75]]]].map(([c,fl])=>fl.map(([x,sy],i)=>'<i class="f '+c+' anim" style="left:'+x+'cqw;--sy:'+sy+';animation-duration:'+(.75+(i*37%10)/25).toFixed(2)+'s;animation-delay:-'+((i*53%10)/10).toFixed(1)+'s"></i>').join('')).join('')+'<i class="b"></i>'+[[12,'#ff8f1f','2cqw',0,44],[27,'#ffd43b','-3cqw',-.8,36],[41,'#ff4a35','1.5cqw',-1.3,52],[55,'#ffd43b','-2cqw',-.4,40],[68,'#ff8f1f','2.5cqw',-1.1,48],[82,'#ff4a35','-1.5cqw',-.6,42],[93,'#ffd43b','-2.5cqw',-1.5,34]].map(([x,c,dx,dl,b])=>'<i class="e anim" style="left:'+x+'cqw;bottom:'+b+'cqh;--fc:'+c+';--dx:'+dx+';animation-delay:'+dl+'s"></i>').join('');+ case 'lightning': return '<span class="fl anim"></span>'+[['b1','M104 18L97 33L104 36L94 52L101 55L90 72L95 74L88 88M99 44L110 53L107 57L115 66'],['b2','M52 20L58 34L51 37L60 51L53 54L63 70L57 72L64 88M56 45L45 54L48 58L40 66']].map(([c,d])=>'<svg class="bt '+c+' anim" viewBox="0 0 160 100"><path class="g" d="'+d+'"/><path d="'+d+'"/></svg>').join('')+'<span class="cl"><i class="anim"></i></span><span class="hl"></span>';// ── region r07b: end ──default: return '';}@@ -1764,21 +1896,27 @@ function particlesFactory(pv,count,connect){return {play(){if(!raf&&!reduce){last=null;raf=requestAnimationFrame(frame);}},pause(){if(raf){cancelAnimationFrame(raf);raf=null;}}};}function flowEngine(pv){- const c=document.createElement('canvas');pv.appendChild(c);const ctx=c.getContext('2d');- let w,h,ps,raf=null,last=null,fa=0,cs=0;const D=devicePixelRatio;+ const c=pv.querySelector('canvas')||pv.appendChild(document.createElement('canvas')),ctx=c.getContext('2d');+ let w,h,u,ps,raf=null,last=null,fa=0,cs=0;const D=devicePixelRatio;function ang(x,y){return (Math.sin(x*0.9+y*0.6)+Math.cos(y*1.1-x*0.5))*Math.PI;}- // with reduced motion the card never plays, so size() also draws a still of short trails- function size(){const r=pv.getBoundingClientRect();w=c.width=r.width*D;h=c.height=r.height*D;- ps=Array.from({length:55},()=>({x:Math.random()*w,y:Math.random()*h}));ctx.fillStyle='#05060a';ctx.fillRect(0,0,w,h);if(reduce)for(let i=0;i<40;i++)draw(1);}+ // White trails on a clear canvas over the stage's own colors: each wash takes a little of their opacity away (destination-out),+ // so they fade into the stage. u is 1% of the stage's height, so the field, the speed and the trails keep their size on any card.+ // A resize that leaves the card's size as it was (a phone's address bar, another card coming in) keeps the trails. With reduced+ // motion the card never plays, so size() also draws a still of short trails+ function size(){const r=pv.getBoundingClientRect();if(ps&&c.width===Math.floor(r.width*D)&&c.height===Math.floor(r.height*D))return;+ w=c.width=r.width*D;h=c.height=r.height*D;u=h/100;+ ps=Array.from({length:100},()=>({x:Math.random()*w,y:Math.random()*h}));ctx.clearRect(0,0,w,h);if(reduce)for(let i=0;i<40;i++)draw(1);}function draw(steps){if(!steps)return;const whole=Math.max(1,Math.round(steps));fa+=Math.abs(steps-whole)<.05?whole:steps;const nf=Math.round(fa+.05);if(!nf){cs+=steps;return;}- fa-=nf;steps+=cs;cs=0;ctx.fillStyle='rgba(5,6,10,.09)';for(let i=0;i<nf;i++)ctx.fillRect(0,0,w,h);ctx.fillStyle='rgba(95,216,138,.85)';+ fa-=nf;steps+=cs;cs=0;ctx.globalCompositeOperation='destination-out';ctx.fillStyle='rgba(0,0,0,.05)';for(let i=0;i<nf;i++)ctx.fillRect(0,0,w,h);+ ctx.globalCompositeOperation='source-over';ctx.strokeStyle='#fff';ctx.lineWidth=Math.max(1.5*D,2*u);ctx.lineCap='round';ctx.beginPath();// a step longer than one frame is drawn in pieces of about one frame, so the trails have no gaps at 30 Hzconst n=Math.max(1,Math.round(steps)),s=steps/n;- for(const p of ps)for(let i=0;i<n;i++){const a=ang(p.x/(70*D),p.y/(70*D));p.x+=Math.cos(a)*1.2*D*s;p.y+=Math.sin(a)*1.2*D*s;- if(p.x<0||p.x>w||p.y<0||p.y>h){p.x=Math.random()*w;p.y=Math.random()*h;}- ctx.fillRect(p.x,p.y,1.5*D,1.5*D);}}+ for(const p of ps)for(let i=0;i<n;i++){const a=ang(p.x/(40*u),p.y/(40*u)),x=p.x,y=p.y;p.x+=Math.cos(a)*.7*u*s;p.y+=Math.sin(a)*.7*u*s;+ if(p.x<0||p.x>w||p.y<0||p.y>h){p.x=Math.random()*w;p.y=Math.random()*h;continue;}+ ctx.moveTo(x,y);ctx.lineTo(p.x,p.y);}+ ctx.stroke();}function frame(ts){const steps=last==null?0:Math.min(ts-last,50)/FRAME;last=ts;draw(steps);raf=requestAnimationFrame(frame);}size();addEventListener('resize',size);return {play(){if(!raf&&!reduce){last=null;fa=cs=0;raf=requestAnimationFrame(frame);}},pause(){if(raf){cancelAnimationFrame(raf);raf=null;}}};@@ -1883,6 +2021,10 @@ const STILL={// ── region r07a: start ──// ── region r07a: end ──// ── region r07b: start ──+ snowrain:.25,+ fireworks:.36,+ kenburns:.3,+ lightning:.2,// ── region r07b: end ──};function hold(card){