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: the How pictures read more clearly: a dark arrow on Got uncovered's panel, brighter ripple rings, an arrow clear of the passing lines, and tests that guard the arrow and every keyframes body
matin996a07fcbe46
diff --git a/index.html b/index.htmlindex eb4f4e62..a3ad034f 100644--- a/index.html+++ b/index.html@@ -1524,9 +1524,9 @@ button,input{font:inherit;color:inherit}/* Rippled or waved: rings spread from the middle, one after another */.fd-wave i:nth-child(-n+3){display:block;left:12px;top:12px;width:40px;height:40px;border-radius:50%;border:2px solid var(--c6);animation:fd-wave 2.4s ease-out infinite}.fd-wave i:nth-child(1){transform:scale(.35)}-.fd-wave i:nth-child(2){transform:scale(.7);opacity:.6;animation-delay:-.8s}-.fd-wave i:nth-child(3){transform:scale(1.05);opacity:.3;animation-delay:-1.6s}-@keyframes fd-wave{0%{transform:scale(.2);opacity:1}100%{transform:scale(1.4);opacity:0}}+.fd-wave i:nth-child(2){transform:scale(.7);opacity:.75;animation-delay:-.8s}+.fd-wave i:nth-child(3){transform:scale(1.05);opacity:.5;animation-delay:-1.6s}+@keyframes fd-wave{0%{transform:scale(.2);opacity:1}100%{transform:scale(1.7);opacity:0}}/* Glitched or flickered: a bar jumps while red and blue copies of it jitter beside it */.fd-glitch i:nth-child(-n+3){display:block;left:14px;top:26px;width:36px;height:12px;border-radius:2px}.fd-glitch i:nth-child(1){background:#ff3b5c;opacity:.85;transform:translateX(-2px);animation:fd-glitch-red 1.6s steps(1) infinite}@@ -1544,7 +1544,7 @@ button,input{font:inherit;color:inherit}.fd-morph i:nth-child(1){transform:translateX(-16px) scale(.6)}.fd-morph i:nth-child(2){opacity:1;transform:translateX(16px) scale(.6)}.fd-grow i:nth-child(1){transform:scale(.7)}- /* the small arrow: which way it moves (a curved one for turning, a double one for glitching) */+ /* the small arrow: which way it moves (a curved one for turning, a double one for glitching, a dark one on the pink panel) */.fd-pic::after{content:"";position:absolute;left:var(--ax,44px);top:var(--ay,4px);width:var(--as,16px);height:var(--as,16px);transform:rotate(var(--ar,0deg));background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f4f2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat}.fd-fade,.fd-morph{--ax:25px;--ay:25px;--as:14px}.fd-slide,.fd-reveal{--ax:47px;--ay:24px}@@ -1552,10 +1552,11 @@ button,input{font:inherit;color:inherit}.fd-bounce,.fd-stagger{--ax:46px;--ay:24px;--ar:90deg}.fd-follow{--ax:4px;--ay:44px;--ar:-40deg}.fd-color,.fd-draw,.fd-layers,.fd-glitch{--ax:26px;--ay:49px}- .fd-pin{--ax:48px;--ay:44px;--ar:-90deg}+ .fd-pin{--ax:49px;--ay:44px;--ar:-90deg}.fd-drift{--ax:24px;--ay:24px;--ar:-30deg}.fd-turn::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f4f2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.7M20 4v5h-5'/%3E%3C/svg%3E")}.fd-glitch::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f4f2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h18M7 8l-4 4 4 4M17 8l4 4-4 4'/%3E%3C/svg%3E")}+ .fd-reveal::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E")}}</style></head>diff --git a/tests/finder.test.js b/tests/finder.test.jsindex 3aa237eb..b6ce5ff6 100644--- a/tests/finder.test.js+++ b/tests/finder.test.js@@ -183,7 +183,9 @@ test('every How answer has a moving picture, its keyframes are named fd- and movassert.match(STYLE, new RegExp(`\\.${a.pic}[\\s.:{,]`), `a rule draws ${a.pic}`);assert.ok(names.some(name => name === a.pic || name.startsWith(a.pic + '-')), `${a.pic} moves: @keyframes ${a.pic}`);}- for (const [, name, body] of STYLE.matchAll(/@keyframes\s+(fd-[\w-]+)\s*\{((?:[^{}]*\{[^{}]*\})*)\s*\}/g)) {+ const bodies = [...STYLE.matchAll(/@keyframes\s+(fd-[\w-]+)\s*\{((?:[^{}]*\{[^{}]*\})*)\s*\}/g)];+ assert.equal(bodies.length, names.filter(name => name.startsWith('fd-')).length, 'every fd- @keyframes body is read');+ for (const [, name, body] of bodies) {for (const [, property] of body.matchAll(/([a-z-]+)\s*:/g)) {assert.ok(['transform', 'opacity', 'animation-timing-function'].includes(property), `${name} animates ${property}`);}@@ -192,6 +194,8 @@ test('every How answer has a moving picture, its keyframes are named fd- and movtest('with reduced motion the How pictures hold still', () => {assert.match(STYLE, /@media\(prefers-reduced-motion:reduce\)\{\s*\.fd-pic \*,\.fd-pic \*::before,\.fd-pic \*::after\{animation:none!important\}/);+ const still = (STYLE.match(/@media\(prefers-reduced-motion:reduce\)\{\s*\.fd-pic \*,[\s\S]*?\n\}/) || [''])[0];+ assert.ok(still.includes('.fd-pic::after{content:""'), 'the reduced-motion block draws the small arrow');});// ── The finder view, its ways in and Not here? ──