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: the finder's reviewed answers for all 166 animations, and the test set of 28 described effects with its target
matin5df8efc55c54
diff --git a/index.html b/index.htmlindex ed551d4b..45cd35df 100644--- a/index.html+++ b/index.html@@ -1991,181 +1991,181 @@ const PLACES={'light-rays':['bg','intro'],'game-of-life':['bg']};-// Draft answers for the finder, from each card's first place and its category: the reviewed answers replace them.+// What moved, when and how: the finder's answers for each card, the main one first.const FIND={// 01- 'parallax-depth-of-field':['card','scroll','slide'],- 'parallax-scrolling':['card','scroll','slide'],- 'reverse-scrolling-columns':['card','scroll','slide'],- 'cover-card-to-fixed-header':['card','scroll','slide'],- 'fly-in-fly-out-contact-list':['card','scroll','slide'],- 'stacking-cards':['card','scroll','slide'],- 'scroll-trigger':['card','scroll','slide'],- 'scrub-animation':['card','scroll','slide'],- 'pin-animation':['card','scroll','slide'],- 'snap-scrolling':['card','scroll','slide'],- 'scrollytelling':['card','scroll','slide'],- 'reveal-on-scroll':['card','scroll','slide'],- 'stagger-reveal':['card','scroll','slide'],- 'horizontal-scroll':['card','scroll','slide'],- 'sticky-section':['card','scroll','slide'],- 'counter-animation':['card','scroll','slide'],- 'progress-bar':['card','scroll','slide'],- 'section-wipe':['card','scroll','slide'],- 'zoom-into-image':['card','scroll','slide'],- 'scroll-image-sequence':['card','scroll','slide'],- 'smooth-scroll':['card','scroll','slide'],- 'text-fill-on-scroll':['card','scroll','slide'],- 'scroll-velocity-skew':['card','scroll','slide'],- 'svg-line-draw':['card','scroll','slide'],- 'scrollspy-nav':['card','scroll','slide'],- 'scroll-background-color':['card','scroll','slide'],- 'hide-on-scroll-header':['menu','scroll','slide'],+ 'parallax-depth-of-field':['background card','scroll','layers fade'],+ 'parallax-scrolling':['background card','scroll','layers'],+ 'reverse-scrolling-columns':['card','scroll','layers slide'],+ 'cover-card-to-fixed-header':['menu card text','scroll','grow morph fade pin'],+ 'fly-in-fly-out-contact-list':['card text','scroll','fade slide grow'],+ 'stacking-cards':['card','scroll','pin slide grow'],+ 'scroll-trigger':['text shape card','scroll','fade turn pin color'],+ 'scrub-animation':['shape card','scroll','draw slide'],+ 'pin-animation':['card text','scroll','pin morph'],+ 'snap-scrolling':['page card','scroll drag','slide'],+ 'scrollytelling':['card text','scroll','pin color morph'],+ 'reveal-on-scroll':['card text','scroll','fade slide grow reveal'],+ 'stagger-reveal':['card text menu','scroll load click','stagger fade slide'],+ 'horizontal-scroll':['card page','scroll','slide pin'],+ 'sticky-section':['text card','scroll','pin fade morph'],+ 'counter-animation':['text loader','scroll load','grow morph stagger'],+ 'progress-bar':['loader shape','scroll','grow draw'],+ 'section-wipe':['page card','scroll','slide pin grow'],+ 'zoom-into-image':['card','scroll','grow reveal pin'],+ 'scroll-image-sequence':['shape card','scroll','turn pin grow'],+ 'smooth-scroll':['page','scroll drag','slide drift'],+ 'text-fill-on-scroll':['text','scroll','color stagger pin'],+ 'scroll-velocity-skew':['card','scroll','turn bounce'],+ 'svg-line-draw':['shape','scroll','draw'],+ 'scrollspy-nav':['menu','scroll click','color slide'],+ 'scroll-background-color':['background page','scroll','color'],+ 'hide-on-scroll-header':['menu','scroll','slide fade grow'],// 02- 'fade-in-out':['card','load','fade'],- 'slide-in':['card','load','fade'],- 'slide-up-reveal':['card','load','fade'],- 'scale-in':['card','load','fade'],- 'clip-path-reveal':['card','load','fade'],- 'curtain-reveal':['card','load','fade'],- 'split-text-reveal':['card','load','fade'],- 'letter-by-letter-stagger':['card','load','fade'],- 'word-by-word-reveal':['card','load','fade'],- 'blur-in':['card','load','fade'],- 'flip-in':['card','load','fade'],- 'bounce-in':['card','load','fade'],- 'rotate-in':['card','load','fade'],- 'shatter-effect':['card','load','fade'],+ 'fade-in-out':['card text loader','load scroll click','fade'],+ 'slide-in':['card menu loader','load click scroll','slide fade'],+ 'slide-up-reveal':['text','load scroll','slide reveal stagger'],+ 'scale-in':['card menu button','click load scroll','grow fade'],+ 'clip-path-reveal':['card text page','scroll load click','reveal grow'],+ 'curtain-reveal':['page text card','load newpage scroll','reveal slide'],+ 'split-text-reveal':['text','load scroll','stagger fade slide'],+ 'letter-by-letter-stagger':['text','load scroll','stagger draw fade'],+ 'word-by-word-reveal':['text','load scroll','stagger fade draw'],+ 'blur-in':['card text','load scroll click','fade'],+ 'flip-in':['card','load scroll click','turn'],+ 'bounce-in':['card loader button','click load scroll','bounce grow'],+ 'rotate-in':['button shape','load click scroll','turn grow'],+ 'shatter-effect':['card page','click load newpage','pieces'],// 03- 'view-transitions-api':['page','newpage','slide'],- 'shared-element-transition':['page','newpage','slide'],- 'morph-transition':['page','newpage','slide'],- 'crossfade':['page','newpage','slide'],- 'slide-transition':['page','newpage','slide'],- 'zoom-transition':['page','newpage','slide'],- 'flash-transition':['page','newpage','slide'],- 'blur-transition':['page','newpage','slide'],- 'elastic-transition':['page','newpage','slide'],- 'portal-zoom':['page','newpage','slide'],- 'dissolve':['page','newpage','slide'],- 'flip-technique':['page','newpage','slide'],- 'circle-reveal':['page','newpage','slide'],- 'overlay-wipe':['page','newpage','slide'],- 'page-curl':['page','newpage','slide'],- 'cube-transition':['page','newpage','slide'],+ 'view-transitions-api':['page','newpage click','fade slide grow'],+ 'shared-element-transition':['card page','newpage click','grow morph slide'],+ 'morph-transition':['shape button page','newpage click','morph'],+ 'crossfade':['page card','newpage click loop','fade'],+ 'slide-transition':['page card','newpage click drag','slide'],+ 'zoom-transition':['page','newpage click','grow fade'],+ 'flash-transition':['page','newpage click','color fade glitch'],+ 'blur-transition':['page card','newpage click','fade'],+ 'elastic-transition':['page','newpage click drag','bounce slide'],+ 'portal-zoom':['page button shape','newpage click','grow reveal'],+ 'dissolve':['page card','newpage click','pieces fade stagger'],+ 'flip-technique':['card','click drag newpage','slide'],+ 'circle-reveal':['page background button','newpage click','reveal grow'],+ 'overlay-wipe':['page shape','newpage click','reveal slide'],+ 'page-curl':['page card','newpage click drag','turn reveal'],+ 'cube-transition':['page card','newpage click drag','turn slide'],// 04- 'hover-state':['button','click','grow'],- 'click-ripple':['button','click','grow'],- 'focus-ring':['menu','click','grow'],- 'button-press-scale':['button','click','grow'],- 'magnetic-button':['button','click','grow'],- 'toggle-switch':['button','click','grow'],- 'heart-burst':['button','click','grow'],- 'success-confetti':['button','click','grow'],- 'skeleton-loader':['loader','click','grow'],- 'shimmer-effect':['loader','click','grow'],- 'loading-spinner':['loader','click','grow'],- 'progress-animation':['loader','click','grow'],- 'checkmark-draw':['loader','click','grow'],- 'form-field-morph':['menu','click','grow'],- 'badge-pulse':['loader','click','grow'],- 'tooltip-reveal':['button','click','grow'],- 'drawer-slide':['menu','click','grow'],- 'modal-expand':['card','click','grow'],- 'accordion':['menu','click','grow'],- 'cursor-follower':['background','click','grow'],- 'error-shake':['menu','click','grow'],- 'swipe-to-dismiss':['card','click','grow'],- 'hamburger-menu-toggle':['menu','click','grow'],- 'theme-toggle-morph':['button','click','grow'],- 'copy-to-clipboard':['button','click','grow'],- 'star-rating':['menu','click','grow'],- 'toast-notification':['loader','click','grow'],- 'segmented-control':['menu','click','grow'],- 'pull-to-refresh':['loader','click','grow'],- 'gradient-border':['button','click','grow'],- 'spotlight-hover':['card','click','grow'],- 'add-to-cart-fly':['button','click','grow'],- 'drag-to-reorder':['menu','click','grow'],- 'rolling-numbers':['text','click','grow'],- 'typing-indicator':['loader','click','grow'],- 'hold-to-confirm':['button','click','grow'],- 'expanding-search':['menu','click','grow'],- 'button-loading-states':['button','click','grow'],- 'image-trail':['card','click','grow'],- 'gooey-menu':['menu','click','grow'],- 'dynamic-island':['loader','click','grow'],+ 'hover-state':['card button text','hover','color grow slide draw'],+ 'click-ripple':['button menu','click','wave grow fade'],+ 'focus-ring':['menu button shape','click','grow color fade'],+ 'button-press-scale':['button','click','grow bounce'],+ 'magnetic-button':['button','hover','follow slide'],+ 'toggle-switch':['button menu','click','slide color bounce'],+ 'heart-burst':['button particles','click','pieces grow color bounce'],+ 'success-confetti':['particles button','click load','pieces drift'],+ 'skeleton-loader':['loader card','load loop','fade color'],+ 'shimmer-effect':['loader card','load loop','color slide'],+ 'loading-spinner':['loader','load loop','turn bounce grow'],+ 'progress-animation':['loader shape','load click','draw grow color stagger'],+ 'checkmark-draw':['shape loader button','click load','draw color'],+ 'form-field-morph':['menu text','click','slide color draw grow'],+ 'badge-pulse':['button loader','loop load','grow wave'],+ 'tooltip-reveal':['text loader button','hover click','fade grow'],+ 'drawer-slide':['menu card','click drag','slide fade'],+ 'modal-expand':['card button menu','click','grow fade morph'],+ 'accordion':['menu text','click','grow slide reveal'],+ 'cursor-follower':['shape particles','hover','follow color grow'],+ 'error-shake':['menu card','click','bounce color'],+ 'swipe-to-dismiss':['card loader','drag','slide fade reveal'],+ 'hamburger-menu-toggle':['button menu','click','morph turn'],+ 'theme-toggle-morph':['button page background','click','morph color turn'],+ 'copy-to-clipboard':['button text loader','click','morph color fade'],+ 'star-rating':['button menu shape','click hover','color grow bounce'],+ 'toast-notification':['loader card','click load','slide fade grow'],+ 'segmented-control':['menu button shape','click','slide color bounce'],+ 'pull-to-refresh':['loader page card','drag scroll','slide turn bounce'],+ 'gradient-border':['card button shape','loop hover','color turn'],+ 'spotlight-hover':['card background','hover','follow color'],+ 'add-to-cart-fly':['card button','click','slide grow bounce'],+ 'drag-to-reorder':['card menu','drag','slide follow'],+ 'rolling-numbers':['text','click scroll load','slide stagger turn morph'],+ 'typing-indicator':['loader particles','loop','bounce stagger wave fade'],+ 'hold-to-confirm':['button','click','grow color draw bounce'],+ 'expanding-search':['menu button','click','grow morph slide'],+ 'button-loading-states':['button loader','click','morph turn grow color'],+ 'image-trail':['card','hover','follow grow fade stagger'],+ 'gooey-menu':['button menu','click','morph pieces slide bounce'],+ 'dynamic-island':['loader card shape','click load loop','grow morph bounce fade'],// 05- 'kinetic-typography':['text','load','stagger'],- 'typewriter-effect':['text','load','stagger'],- 'scramble-text':['text','load','stagger'],- 'variable-font-morph':['text','load','stagger'],- 'text-clip-path-reveal':['text','load','stagger'],- 'marquee-ticker':['text','load','stagger'],- 'text-morphing':['text','load','stagger'],- 'text-gradient-animation':['text','load','stagger'],- 'outline-to-fill':['text','load','stagger'],- 'enter-exit-typography':['text','load','stagger'],- 'rotate-word-carousel':['text','load','stagger'],- 'glitch-text':['text','load','stagger'],- 'text-on-path':['text','load','stagger'],- 'wavy-text':['text','load','stagger'],- 'highlighter-sweep':['text','load','stagger'],- 'split-flap-board':['text','load','stagger'],- 'neon-flicker':['text','load','stagger'],- 'handwriting-draw':['text','load','stagger'],- 'text-particles':['text','load','stagger'],+ 'kinetic-typography':['text','load scroll loop','grow slide fade stagger'],+ 'typewriter-effect':['text','load loop scroll','draw stagger'],+ 'scramble-text':['text loader','load hover scroll','glitch morph stagger'],+ 'variable-font-morph':['text','loop hover','grow morph'],+ 'text-clip-path-reveal':['text','load scroll','reveal stagger'],+ 'marquee-ticker':['text card','loop scroll','slide layers'],+ 'text-morphing':['text','loop hover click','morph slide stagger'],+ 'text-gradient-animation':['text','loop hover','color'],+ 'outline-to-fill':['text','load scroll hover','color reveal fade'],+ 'enter-exit-typography':['text','load loop scroll','slide fade grow stagger'],+ 'rotate-word-carousel':['text','loop','slide morph turn'],+ 'glitch-text':['text','loop hover load','glitch pieces bounce'],+ 'text-on-path':['text','loop scroll','slide wave turn'],+ 'wavy-text':['text loader','loop hover','wave bounce'],+ 'highlighter-sweep':['text','scroll load hover','draw color stagger'],+ 'split-flap-board':['text','load loop scroll','turn stagger morph'],+ 'neon-flicker':['text background shape','loop load hover','glitch color'],+ 'handwriting-draw':['text shape','load scroll','draw'],+ 'text-particles':['text particles','hover drag','pieces follow bounce'],// 06- '3d-model-orbit':['card','loop','turn'],- 'scroll-driven-3d-rotation':['card','loop','turn'],- 'parallax-3d-tilt':['card','loop','turn'],- 'canvas-particle-effect':['background','loop','turn'],- 'fluid-simulation':['background','loop','turn'],- 'glassmorphism-animated':['card','loop','turn'],- 'webgl-shader-animation':['background','loop','turn'],- 'noise-based-motion':['background','loop','turn'],- 'svg-path-animation':['card','loop','turn'],- 'chromatic-aberration':['text','loop','turn'],- '2-5d-pseudo-3d':['card','loop','turn'],- 'ray-marching-sdf':['background','loop','turn'],- 'gpgpu-particle-system':['background','loop','turn'],- 'image-distortion-hover':['card','loop','turn'],- 'cloth-simulation':['card','loop','turn'],- 'volumetric-smoke':['background','loop','turn'],- 'morphing-blob':['background','loop','turn'],- 'flip-card-3d':['card','loop','turn'],- 'carousel-3d':['card','loop','turn'],- 'depth-map-photo':['card','loop','turn'],- 'flocking':['background','loop','turn'],- 'ascii-halftone':['card','loop','turn'],- 'physics-2d':['card','loop','turn'],- 'liquid-glass':['card','loop','turn'],- 'holographic-card':['card','loop','turn'],- 'infinite-zoom':['card','loop','turn'],+ '3d-model-orbit':['shape card','loop hover drag','turn follow'],+ 'scroll-driven-3d-rotation':['shape card','scroll','turn pin grow'],+ 'parallax-3d-tilt':['card','hover drag','turn follow color'],+ 'canvas-particle-effect':['particles background','loop hover','drift follow'],+ 'fluid-simulation':['shape background','loop hover','morph drift follow'],+ 'glassmorphism-animated':['card background menu','loop scroll','fade drift color'],+ 'webgl-shader-animation':['background','loop hover','color wave morph'],+ 'noise-based-motion':['particles background shape','loop','wave drift morph'],+ 'svg-path-animation':['shape button text','load scroll hover','draw stagger'],+ 'chromatic-aberration':['text card','loop hover scroll','glitch color'],+ '2-5d-pseudo-3d':['background card','hover scroll drag','layers follow'],+ 'ray-marching-sdf':['shape background','loop','turn morph'],+ 'gpgpu-particle-system':['particles background','loop','drift wave'],+ 'image-distortion-hover':['card background','hover drag','wave follow glitch'],+ 'cloth-simulation':['card shape','loop drag','wave follow'],+ 'volumetric-smoke':['background','loop','drift fade'],+ 'morphing-blob':['shape background','loop hover','morph follow drift'],+ 'flip-card-3d':['card','click hover','turn'],+ 'carousel-3d':['card','drag click loop','turn slide'],+ 'depth-map-photo':['card background','hover drag scroll','layers follow'],+ 'flocking':['particles background','loop hover','drift follow'],+ 'ascii-halftone':['card background text','loop hover','glitch drift morph'],+ 'physics-2d':['shape particles','click drag load','bounce'],+ 'liquid-glass':['card menu button','drag click scroll','wave follow bounce slide'],+ 'holographic-card':['card','hover drag','color turn follow'],+ 'infinite-zoom':['card background page','loop scroll load','grow'],// 07- 'animated-gradient-background':['background','loop','drift'],- 'mesh-gradient':['background','loop','drift'],- 'aurora':['background','loop','drift'],- 'grain-overlay':['background','loop','drift'],- 'scanline':['background','loop','drift'],- 'light-leak':['background','loop','drift'],- 'starfield':['background','loop','drift'],- 'breathing-glow':['background','loop','drift'],- 'ambient-ripple':['background','loop','drift'],- 'floating-elements':['background','loop','drift'],- 'grid-dot-pattern-parallax':['background','loop','drift'],- 'abstract-geometric-motion':['background','loop','drift'],- 'particle-constellation':['background','loop','drift'],- 'flow-field':['background','loop','drift'],- 'synthwave-grid':['background','loop','drift'],- 'matrix-rain':['background','loop','drift'],- 'plasma':['background','loop','drift'],- 'wave-layers':['background','loop','drift'],- 'snow-rain':['background','loop','drift'],- 'fireworks':['background','loop','drift'],- 'topographic-lines':['background','loop','drift'],- 'light-rays':['background','loop','drift'],- 'game-of-life':['background','loop','drift']+ 'animated-gradient-background':['background','loop','color drift'],+ 'mesh-gradient':['background','loop','color drift morph'],+ 'aurora':['background','loop','color wave drift'],+ 'grain-overlay':['background page card','loop','glitch'],+ 'scanline':['background page shape','loop','slide color glitch'],+ 'light-leak':['background card','loop','color fade'],+ 'starfield':['particles background','loop','drift grow layers'],+ 'breathing-glow':['background button loader','loop','grow color fade'],+ 'ambient-ripple':['background shape','loop','wave grow fade'],+ 'floating-elements':['shape background particles','loop hover','drift turn follow'],+ 'grid-dot-pattern-parallax':['background particles','hover loop drag','follow layers drift'],+ 'abstract-geometric-motion':['shape background','loop','turn wave slide'],+ 'particle-constellation':['particles background','loop hover','drift follow'],+ 'flow-field':['particles background shape','loop','drift draw'],+ 'synthwave-grid':['background shape','loop','slide layers drift'],+ 'matrix-rain':['text background','loop','drift draw'],+ 'plasma':['background','loop','color wave morph'],+ 'wave-layers':['background shape','loop','wave layers drift'],+ 'snow-rain':['particles background','loop','drift'],+ 'fireworks':['particles background','loop load click','pieces drift fade'],+ 'topographic-lines':['shape background','loop','morph wave drift'],+ 'light-rays':['background','loop','color drift fade'],+ 'game-of-life':['particles background shape','loop click drag','morph grow glitch']};// The finder's three questions in order (spec, section 2): each answer's key (in the address and in FIND), its words (which name// it) and its picture: a still icon in the site's 24px line style for What and When, the class of a small moving picture for Howdiff --git a/tests/finder.test.js b/tests/finder.test.jsindex a1de9e66..63f957ad 100644--- a/tests/finder.test.js+++ b/tests/finder.test.js@@ -179,3 +179,77 @@ test('the Not here? address opens the form animation_not_here.yml with its title// ── Every card's answers and the test set ──// The reviewed answers: every answer given to some card, the rules every page of a kind shares, and the spec's 28 described effects.++test('FIND holds the reviewed answers, not the draft', () => {+ assert.match(HOME, /\/\/ What moved, when and how: the finder's answers for each card, the main one first\.\r?\nconst FIND=\{/);+});++test('every answer of every question is given to at least one card', () => {+ const find = Object.values(homeConst('FIND'));+ homeConst('FIND_Q').forEach((q, i) => {+ for (const a of q.answers) assert.ok(find.some(row => row[i].split(' ').includes(a.key)), `no card answers ${q.key} ${a.key}`);+ });+});++test('the answers keep the rules every page of a kind shares: transitions answer newpage, loops loop, scroll pages scroll', () => {+ const find = homeConst('FIND'), problems = [];+ for (const cat of homeConst('CATS')) {+ for (const [slug] of cat.entries) {+ const kind = (read(path.join(ROOT, cat.folder, slug, 'index.html')).match(/data-hb-kind="(\w+)"/) || [])[1];+ const when = find[slug][1].split(' ');+ if (cat.n === '03' && !when.includes('newpage')) problems.push(`${slug}: a page transition without newpage`);+ if (kind === 'loop' && !when.includes('loop')) problems.push(`${slug}: a loop page without loop`);+ if ((cat.n === '01' || kind === 'scroll') && !when.includes('scroll')) problems.push(`${slug}: a scroll page without scroll`);+ }+ }+ assert.deepEqual(problems, []);+});++// The finder spec's 28 described effects (section 9), frozen before any answers existed: the answers a visitor would pick ('' for+// Not sure) and the animations that count as right. The right lists only grow; a miss is fixed by changing FIND, never a case.+const CASES = [+ [1, 'card', 'scroll', 'pieces', ['Shatter Effect', 'Dissolve Transition']],+ [2, 'background', 'loop', 'color', ['Mesh Gradient Animation', 'Animated Gradient Background']],+ [3, 'text', 'load', 'stagger', ['Letter-by-Letter Stagger', 'Split Text Reveal', 'Word-by-Word Reveal']],+ [4, 'card', 'load', 'grow', ['Scale In / Zoom In']],+ [5, 'card', 'hover', 'grow', ['Hover State Animation']],+ [6, '', 'scroll', 'pin', ['Pin Animation', 'Sticky Section', 'Scrollytelling']],+ [7, 'card', 'scroll', 'grow', ['Zoom Into Image']],+ [8, '', 'scroll', 'layers', ['Parallax Scrolling', 'Parallax Depth-of-Field']],+ [9, 'page', 'click', '', ['Circle Reveal', 'Overlay Wipe', 'Portal / Tunnel Zoom']],+ [10, 'text', 'load', 'reveal', ['Curtain Reveal', 'Text Clip-Path Reveal']],+ [11, 'page', 'scroll', 'slide', ['Smooth (Inertia) Scroll']],+ [12, 'card', 'scroll', 'turn', ['Scroll Image Sequence', 'Scrub Animation', 'Scroll-Driven 3D Rotation']],+ [13, 'text', 'scroll', 'color', ['Text Fill on Scroll']],+ [14, 'card', 'hover', 'follow', ['Spotlight Hover Glow']],+ [15, 'shape', 'loop', 'turn', ['3D Model Orbit']],+ [16, 'button', 'click', 'morph', ['Hamburger Menu Toggle']],+ [17, 'button', 'hover', 'follow', ['Magnetic Button']],+ [18, 'card', 'hover', 'turn', ['Parallax 3D Tilt', 'Holographic Card']],+ [19, 'loader', 'load', 'color', ['Skeleton Loader', 'Shimmer Effect']],+ [20, 'text', 'scroll', '', ['Counter Animation', 'Rolling Numbers']],+ [21, 'page', 'scroll', 'slide', ['Horizontal Scroll']],+ [22, 'menu', 'scroll', 'slide', ['Hide-on-Scroll Header']],+ [23, 'card', 'hover', 'follow', ['Image Trail']],+ [24, 'particles', 'loop', 'drift', ['Particle Constellation', 'Canvas Particle Effect']],+ [25, 'text', 'loop', 'glitch', ['Glitch Text', 'Chromatic Aberration']],+ [26, 'particles', 'loop', 'drift', ['Snow / Rain']],+ [27, 'page', 'newpage', 'slide', ['Overlay Wipe', 'Slide Transition']],+ [28, 'particles', 'click', 'pieces', ['Success Confetti']]+];++test('the test set: a right animation among the first 6 for at least 24 of the 28 described effects, and among the first 12 for at least 27', t => {+ const page = finder(), names = new Set(homeConst('CATS').flatMap(cat => cat.entries.map(e => e[1])));+ let in6 = 0, in12 = 0;+ for (const [n, what, when, how, right] of CASES) {+ for (const name of right) assert.ok(names.has(name), `case ${n}: no card is named ${name}`);+ const found = page.findMatches({ what, when, how }), list = [...found.best, ...found.close].map(e => e.name);+ const position = list.findIndex(name => right.includes(name)) + 1; // 0: not found+ if (position && position <= 6) in6++;+ if (position && position <= 12) in12++;+ t.diagnostic(`case ${n} (${[what, when, how].map(a => a || 'Not sure').join(' · ')}): ${position ? `${list[position - 1]} at ${position}` : 'not found'}` ++ (!position || position > 6 ? `; first six: ${list.slice(0, 6).join(', ')}` : ''));+ }+ assert.ok(in6 >= 24, `${in6} of 28 cases have a right animation among the first 6 (at least 24)`);+ assert.ok(in12 >= 27, `${in12} of 28 cases have a right animation among the first 12 (at least 27)`);+});