Skip to content

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.

docs: where the technique count is written, the whole home check, PLACES after PV, and the owner rulings

matin6d72514e3fc2
diff --git a/CLAUDE.md b/CLAUDE.md
index bcfe4e59..b71fda93 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -201,7 +201,8 @@ inside an entry's "Production notes" section, never as their own entry.
`PLACES` in the same order as `CATS` (a test checks it).
7. Update `animations/<category>/README.md` and the root `README.md` list (the card's name and one-line
description, in home page order), and the technique count wherever it is written: the root `README.md`,
- the home page, `tests/pages.test.js`, `.github/ISSUE_TEMPLATE/config.yml` and `docs/launch-kit.md`.
+ the home page, the home check in `tools/check-pages.mjs`, `.github/ISSUE_TEMPLATE/config.yml` and
+ `docs/launch-kit.md`.
8. Run the tests and the page check on the new folder and on every page you edited. Run the home page check
(`home`) too: the new card's Copy prompt is compared there.
@@ -226,8 +227,8 @@ Run both before calling a page done. They need Node 22 or later (the `--test` gl
handles a demo draws there by hand.
- **Home page:** `node tools/check-pages.mjs --base http://127.0.0.1:<port> home` checks the home page at the same
six setups (six `ok` lines). Its desktop run also tries the tiles, the search and Show all, and compares
- Copy prompt on the home page with every page's own; its phone run tries a tile and the slim bar. Run it after
- changing any page's settings or prompt.
+ Copy prompt on the home page with every page's own; its phone run tries a tile and the slim bar, and its
+ reduced-motion run checks that nothing moves. Run it after changing any page's settings or prompt.
## Out of scope
- Backend code, databases, APIs.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 858ae6d1..f3deb4e0 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -64,16 +64,16 @@ fix a bug, or improve an explanation are all welcome.
`aria-label`, and copy the markup from a neighbor. Adding a page in the middle of a category
renumbers the `NN.MM` category line of every later page.
5. Register the entry in the root `index.html` `CATS` array (slug, name, one-line description),
- give it one or more places in `PLACES` (the home page's tiles: `btn` Buttons, `text` Text,
- `imgcard` Images & cards, `bg` Backgrounds, `menu` Menus & forms, `load` Loading &
- messages, `intro` Page intros, `scroll` Scrolling, `page` Page changes; the first labels
- its card) and add the page to `sitemap.xml`. The description is the page's one-line
- description, word for word. The entry goes at the same position in `PLACES` as in
- `CATS` (both lists follow home page order; a test checks it).
+ give it one or more places in `PLACES`, which sits right after `PV` in the same script (the
+ home page's tiles: `btn` Buttons, `text` Text, `imgcard` Images & cards, `bg` Backgrounds,
+ `menu` Menus & forms, `load` Loading & messages, `intro` Page intros, `scroll` Scrolling,
+ `page` Page changes; the first labels its card) and add the page to `sitemap.xml`. The
+ description is the page's one-line description, word for word. The entry goes at the same
+ position in `PLACES` as in `CATS` (both lists follow home page order; a test checks it).
6. Add it to the category's `README.md` list and to the list in the root `README.md`, with
the same name and description, and update the technique count where it is written: the
- root `README.md`, the home page, `tests/pages.test.js`, `.github/ISSUE_TEMPLATE/config.yml`
- and `docs/launch-kit.md`.
+ root `README.md`, the home page, the home check in `tools/check-pages.mjs`,
+ `.github/ISSUE_TEMPLATE/config.yml` and `docs/launch-kit.md`.
7. Run the tests and the page check (see [Tests and the page check](#tests-and-the-page-check))
on the new page and on every page you edited. Run the home page check (`home`) too: the
new card's Copy prompt is compared there.
@@ -255,7 +255,8 @@ control with no label or value is left out and the console warns). It skips cont
The home page has a check of its own:
`node tools/check-pages.mjs --base http://127.0.0.1:<port> home`. It checks the layout at the
six setups. Its desktop run also tries the tiles, the search and Show all, and compares Copy
-prompt on the home page with every page's own prompt and default settings. Run it after
+prompt on the home page with every page's own prompt and default settings; its phone run tries
+a tile and the slim bar, and its reduced-motion run checks that nothing moves. Run it after
changing any page's settings or prompt.
## Writing style
diff --git a/docs/superpowers/specs/2026-09-30-home-page-redesign-design.md b/docs/superpowers/specs/2026-09-30-home-page-redesign-design.md
index 44380e72..ae064bef 100644
--- a/docs/superpowers/specs/2026-09-30-home-page-redesign-design.md
+++ b/docs/superpowers/specs/2026-09-30-home-page-redesign-design.md
@@ -73,23 +73,26 @@ list, never typed in.
- **Nothing found**: a white panel: "Nothing matches “zebra” yet", "Try a simpler word, or pick one of these:", the
five popular suggestions, and **Browse all 129 animations**.
+After a tile, a phone-bar chip or a Popular suggestion is pressed, the results scroll into view at every width, not
+only on phones (owner ruling, 2026-10-01).
+
The view lives in the address, so a view can be shared and **Back** from a demo page returns to it:
`?place=buttons`, `?q=fade%20in`, `?view=all`, with `&all=1` once Show all is pressed. Pressing a tile, Browse all,
-Clear or a suggestion adds a history step;
-typing only replaces the address. Old links keep working: `?q=` as today, and `?cat=micro-interactions` (the
-category's name in the form today's chips write it) opens All animations at that category's heading.
+Clear or a suggestion adds a history step when it changes the address; typing only replaces the address. Old links
+keep working: `?q=` as today, and `?cat=micro-interactions` (the category's name in the form today's chips write it)
+opens All animations at that category's heading.
## Search
Search looks at each animation's name, its one-line description, the names of its places and its category name. The
query is split into words; common small words are dropped (a, an, and, the, that, this, to, for, with, when, on, in,
of, my, it, i, want, make, some); each word is matched by its start, so "bounces", "bounce" and "bouncing" all match
-"bounce" (a typed word drops the first of the endings "ies", "ing", "ed", "es" and "s" that leaves three letters with a
-vowel, but not the last "s" of "ss"; after "ing" or "ed", a doubled last letter other than l, s, f or z loses one letter
-while three remain: "snapping" finds "snap", "ring" stays whole). An animation matches when at least one word matches;
-results are ordered by how well they match (a word in the name counts 3, in a place name 2, in the description 1),
-ties in home order. "a button that bounces when clicked" therefore puts Click / Tap Ripple, Bounce In and the other
-button animations at the top.
+"bounce" (a typed word drops the first of the endings "ies", "ing", "ed", "es" and "s" that leaves at least three
+letters with a vowel, but not the last "s" of "ss"; after "ing" or "ed", a doubled last letter other than l, s, f or z
+loses one letter while three remain: "snapping" finds "snap", "ring" stays whole). An animation matches when at least
+one word matches; results are ordered by how well they match (a word in the name counts 3, in a place name 2, in the
+description 1), ties in home order. "a button that bounces when clicked" therefore puts Click / Tap Ripple, Bounce In
+and the other button animations at the top.
The "/" key focuses the search and Escape clears it, as today.
## Cards
@@ -135,7 +138,8 @@ copy" and pressing it opens the demo page at its Copy the prompt step.
- Previews play only while on screen, as today. The tile pictures and floating shapes use transforms and opacity
only.
- With reduced motion: the tile pictures, previews and the pill's dot hold still on a clear frame, the floating
- shapes are hidden, and cards do not lift.
+ shapes are hidden, and cards do not lift. Every preview holds still on a clear, recognizable frame of its animation,
+ never an empty stage; the preview code may change for that, but only under reduced motion (owner ruling, 2026-10-01).
- The All animations view renders all 129 cards but only the visible previews run.
## Accessibility
diff --git a/tools/check-pages.mjs b/tools/check-pages.mjs
index 7817037a..864a6762 100644
--- a/tools/check-pages.mjs
+++ b/tools/check-pages.mjs
@@ -4,7 +4,9 @@
// Usage: node tools/check-pages.mjs [--base http://127.0.0.1:8731] [--out <folder>] <page or category folder, or home>...
// e.g. node tools/check-pages.mjs animations/02-entrance-and-exit
// node tools/check-pages.mjs home checks the home page at the same six setups: overflow, small targets on phones,
-// the search box and the place tiles on the first screen, the tile counts and the eight Start cards.
+// the search box and the place tiles on the first screen, the tile counts and the eight Start cards. The desktop run
+// also tries the tiles, the search and Show all and compares Copy prompt with every page's own; the phone run tries a
+// tile, the slim bar and long words; the reduced-motion run checks that nothing moves.
// A folder with no index.html of its own stands for the page folders inside it. Each page is loaded at six screen
// setups and prints one line for each (ok or FAIL); problems are printed and screenshots saved, by default into
// a folder of its own in the temp folder, whose path is printed. Console warnings count as problems too (the page