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 search still finds Scroll-Triggered Animation for "scrolltrigger", and a test ties every card's name to its page title
matinb2bd03df91be
diff --git a/index.html b/index.htmlindex 819015c1..ce281f9a 100644--- a/index.html+++ b/index.html@@ -2390,7 +2390,7 @@ function queryWords(text){return [...new Set(keyWords(text).map(stem))];}// word that starts with one of them also finds the cards that use another word of its group, so "a button that bounces when// clicked" finds Button Press Scale, which "springs back" as you "press" it.const SAME=[['bounc','spring','elastic'],['click','press','tap'],['parallax','depth'],['mouse','pointer'],- ['shak','wobbl','wiggl','jiggl'],['loader','loading'],['popup','modal','dialog']];+ ['shak','wobbl','wiggl','jiggl'],['loader','loading'],['popup','modal','dialog'],['scrolltrigger','trigger']];// A word counts 3 in the name, 2 in a place name, 1 in the description or category; each is matched by the start of a word.// A card without the typed word but with another word of its group gets a third of that, once, where it counts most, so for// one word it never passes a card that has the word itself. The score is kept in thirds, so it stays a whole number; own isdiff --git a/tests/pages.test.js b/tests/pages.test.jsindex df8d36db..aa09ce25 100644--- a/tests/pages.test.js+++ b/tests/pages.test.js@@ -278,6 +278,15 @@ for (const d of steps) {for (const field of fields) assert.match(field, /\sautocomplete="off"/, field);});+ test(`${d.slug}: the home page card uses the page's title, or the shorter name an owner ruling keeps`, () => {+ // Four 3D & Advanced cards keep a shorter name than their page title (docs/superpowers/plans/2026-09-29-3d-content.md).+ const SHORTER = { 'fluid-simulation': 'Fluid Simulation', 'ray-marching-sdf': 'Ray Marching / SDF', 'cloth-simulation': 'Cloth Simulation', 'volumetric-smoke': 'Volumetric Smoke' };+ const h1 = decode(pageOf(d).match(/<h1>([^<]*)<\/h1>/)[1]);+ const entry = HOME.match(new RegExp(`\\['${d.slug}','((?:[^'\\\\]|\\\\.)*)',`));+ assert.ok(entry, 'home page entry');+ assert.equal(entry[1].replace(/\\'/g, "'"), SHORTER[d.slug] || h1);+ });+test(`${d.slug}: the home page card uses the page's description`, () => {const lede = decode(pageOf(d).match(/<p class="hb-lede">([^<]*)<\/p>/)[1]);const entry = HOME.match(new RegExp(`\\['${d.slug}','(?:[^'\\\\]|\\\\.)*','((?:[^'\\\\]|\\\\.)*)'\\]`));@@ -707,7 +716,8 @@ test('the search finds what a visitor describes, and each Popular suggestion keetest('a typed word also finds the cards that use another word of its group, after every card that has the word itself', () => {const page = homeSearch(), names = text => page.search(text).map(e => e.name);// Words a visitor may type that no card uses.- for (const [text, name] of [['wobble', 'Error Shake'], ['popup', 'Modal Expand'], ['mouse', 'Cursor Follower'], ['loader', 'Loading Spinner']]) {+ for (const [text, name] of [['wobble', 'Error Shake'], ['popup', 'Modal Expand'], ['mouse', 'Cursor Follower'], ['loader', 'Loading Spinner'],+ ['scrolltrigger', 'Scroll-Triggered Animation'], ['gsap scrolltrigger', 'Scroll-Triggered Animation']]) {assert.ok(names(text).includes(name), `"${text}" finds ${name}: ${names(text).join(', ')}`);}// Each word of every group, typed alone: the cards with the typed word itself come first, then the ones found through the group.