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
fix: home page previews: Slide Up Reveal, Horizontal Scroll and Synthwave Grid show their effect
matin570f29723747
diff --git a/index.html b/index.htmlindex 861c8c14..baee2fa0 100644--- a/index.html+++ b/index.html@@ -499,8 +499,8 @@ button,input{font:inherit;color:inherit}.pv-stagger i:nth-child(7){animation-delay:.2s}.pv-stagger i:nth-child(8){animation-delay:.27s}.pv-stagger i:nth-child(9){animation-delay:.34s}@keyframes stg{0%{opacity:0;transform:scale(.5)}32%,76%{opacity:1;transform:none}100%{opacity:0;transform:scale(.5)}}.pv-hscroll{background:#08090c;overflow:hidden;display:flex;align-items:center}-.pv-hscroll .tr{display:flex;gap:10px;padding-left:10px;animation:hsx 6s linear infinite}-.pv-hscroll .tr i{flex:0 0 auto;width:62px;height:52%;border-radius:5px;background:color-mix(in srgb,var(--accent) 20%,#12141a);border:1px solid color-mix(in srgb,var(--accent) 40%,transparent)}+.pv-hscroll .tr{display:flex;gap:10px;height:52%;padding-left:10px;animation:hsx 6s linear infinite} /* a height of its own, which the panels fill */+.pv-hscroll .tr i{flex:0 0 auto;width:62px;border-radius:5px;background:color-mix(in srgb,var(--accent) 20%,#12141a);border:1px solid color-mix(in srgb,var(--accent) 40%,transparent)}@keyframes hsx{to{transform:translateX(-50%)}}.pv-sticky{background:#08090c;display:grid;place-items:center}.pv-sticky .frame{width:56%;height:58%;border:1px solid var(--accent);border-radius:6px;display:grid;place-items:center;overflow:hidden}@@ -534,8 +534,8 @@ button,input{font:inherit;color:inherit}.pv-slidein .sq{width:40%;height:44%;border-radius:6px;background:color-mix(in srgb,var(--accent) 24%,#12141a);border:1px solid var(--accent);animation:e-slidein 2.8s var(--ease) infinite}@keyframes e-slidein{0%{transform:translateX(-170%);opacity:0}30%,70%{transform:none;opacity:1}100%{transform:translateX(170%);opacity:0}}.pv-slideup{background:#08090c;display:grid;place-items:center}-.pv-slideup .clip{overflow:hidden;height:1.15em;line-height:1.15}-.pv-slideup .clip span{display:block;font-family:var(--disp);font-weight:800;font-size:32px;color:var(--accent);animation:e-slideup 3s var(--ease) infinite}+.pv-slideup .clip{overflow:hidden;height:1.15em;font-family:var(--disp);font-weight:800;font-size:32px;line-height:1.15} /* the word's size is set on the box, so 1.15em is one line of the word */+.pv-slideup .clip span{display:block;color:var(--accent);animation:e-slideup 3s var(--ease) infinite}@keyframes e-slideup{0%{transform:translateY(110%)}30%,70%{transform:translateY(0)}100%{transform:translateY(-110%)}}.pv-scalein{background:#08090c;display:grid;place-items:center}.pv-scalein .sq{width:44%;height:48%;border-radius:6px;background:color-mix(in srgb,var(--accent) 24%,#12141a);border:1px solid var(--accent);animation:e-scalein 2.6s var(--ease) infinite}@@ -855,10 +855,17 @@ button,input{font:inherit;color:inherit}.pv-wavy b{font-family:var(--disp);font-weight:800;font-size:30px;color:var(--accent);animation:wavyb 1.8s ease-in-out infinite}.pv-wavy b:nth-child(2){animation-delay:.1s}.pv-wavy b:nth-child(3){animation-delay:.2s}.pv-wavy b:nth-child(4){animation-delay:.3s}.pv-wavy b:nth-child(5){animation-delay:.4s}@keyframes wavyb{0%,100%{transform:translateY(22%)}50%{transform:translateY(-22%)}}-.pv-synth{background:linear-gradient(#160a2b,#33184f 46%,#0a0410);overflow:hidden;position:relative}-.pv-synth .sun{position:absolute;left:50%;top:36%;width:38%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);background:linear-gradient(#ffd76a,#ff5f8b);filter:blur(.5px)}-.pv-synth .gr{position:absolute;left:-60%;right:-60%;bottom:-14%;height:58%;background-image:linear-gradient(color-mix(in srgb,var(--accent) 75%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--accent) 75%,transparent) 1px,transparent 1px);background-size:100% 20px,38px 100%;transform:perspective(120px) rotateX(64deg);transform-origin:bottom center;animation:synthg 1.1s linear infinite}-@keyframes synthg{to{background-position:0 20px,0 0}}+/* drawn like the demo: sky and floor meet at the horizon (58% down), a striped half sun sits on it, a still fan of lines+ runs from its middle, and cross lines each run from the horizon to the bottom, fading in at the horizon and spaced like+ the demo's (the timing curve is the depth share to the power 2.2); 1cqh is 1% of the stage's height */+.pv-synth{background:linear-gradient(#1a0b2e,#3d1152 32%,#8a2160 58%,#160726 58%,#05010a);overflow:hidden;container-type:size}+.pv-synth .sun{position:absolute;left:33%;right:33%;bottom:43%;aspect-ratio:2;border-radius:999px 999px 0 0;background:linear-gradient(transparent 50%,#1a0b2e 50% 54%,transparent 54% 63%,#1a0b2e 63% 69%,transparent 69% 76%,#1a0b2e 76% 84%,transparent 84% 90%,#1a0b2e 90%),linear-gradient(#ffe15a,#ff8a3d)}+.pv-synth svg{position:absolute;left:0;top:58%;width:100%;height:42%} /* one unit of its drawing is 1% of the stage's height */+.pv-synth path{fill:none;stroke:url(#synF);stroke-width:.6}+.pv-synth path.gl{stroke-width:1.8;opacity:.35}+.pv-synth i{position:absolute;left:0;right:0;top:58%;height:.9cqh;margin-top:-.45cqh;background:#ff2fb0;box-shadow:0 0 2.4cqh .6cqh rgba(255,47,176,.5);animation:synr 6.4s cubic-bezier(.2,0,.57,.05) infinite,synf 6.4s linear infinite;animation-delay:calc(var(--k)*-.8s)}+@keyframes synr{to{transform:translateY(42cqh)}}+@keyframes synf{0%{opacity:0}62%,100%{opacity:1}}.pv-flow{background:#05060a}@media(prefers-reduced-motion:reduce){@@ -1567,7 +1574,9 @@ function pvMarkup(k){case 'glitch': return '<span class="w base">GLITCH</span><span class="w r anim">GLITCH</span><span class="w cy anim">GLITCH</span>';case 'onpath': return '<svg viewBox="0 0 240 96"><path id="opG" d="M12 64 Q 66 14 122 50 T 232 34" fill="none" stroke="rgba(255,255,255,.14)" stroke-width="1.5"/><text><textPath href="#opG" startOffset="0"><animate attributeName="startOffset" values="0;150" dur="7s" repeatCount="indefinite"/>ANIMATION · HANDBOOK · </textPath></text></svg>';case 'wavy': return 'WAVES'.split('').map(function(c){return '<b class="anim">'+c+'</b>';}).join('');- case 'synth': return '<span class="sun"></span><span class="gr anim"></span>';+ case 'synth': {const d=Array.from({length:23},(_,k)=>'M80 0L'+(20*k-140)+' 42').join('');+ return '<span class="sun"></span><svg viewBox="0 0 160 42"><defs><linearGradient id="synF" x2="0" y2="1"><stop offset="0" stop-color="#ff2fb0" stop-opacity="0"/><stop offset=".55" stop-color="#ff2fb0"/></linearGradient></defs><path class="gl" d="'+d+'"/><path d="'+d+'"/></svg>'++ [0,1,2,3,4,5,6,7].map(k=>'<i class="anim" style="--k:'+k+'"></i>').join('');}case 'flow': return '';case 'smoothsc': return '<span class="vp"><span class="in anim">'+'<b></b>'.repeat(8)+'</span></span>';case 'txtfill': return [18,26,14,30,20,16,24,12,28,18,22,15].map(function(w,i){return '<span class="wd anim" style="--i:'+i+';width:'+w+'%"></span>';}).join('');