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
docs: the home page's N, its tiles and its check in the contributing guide
matine503072ad3b5
diff --git a/CLAUDE.md b/CLAUDE.mdindex deb110b1..61d21dc4 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -197,11 +197,13 @@ inside an entry's "Production notes" section, never as their own entry.`CATS` array (slug, name, the page's one-line description), and add the page to `sitemap.xml`. Give it oneor more places in `PLACES` (right after `PV` in the same script): `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 one labels its card.+ `intro` Page intros, `scroll` Scrolling, `page` Page changes; the first one labels its card. Keep+ `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-linedescription, 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`.-8. Run the tests and the page check on the new folder and on every page you edited.+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.## When asked to refactor- Preserve every demo's behavior exactly. Visual parity matters more thandiff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 44b7b772..858ae6d1 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -64,15 +64,19 @@ 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 categoryrenumbers 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`, `text`, `imgcard`,- `bg`, `menu`, `load`, `intro`, `scroll`, `page`; the first labels its card) and add the page- to `sitemap.xml`. The description is the page's one-line description, word for word.+ 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).6. Add it to the category's `README.md` list and to the list in the root `README.md`, withthe same name and description, and update the technique count where it is written: theroot `README.md`, the home page, `tests/pages.test.js`, `.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.+ 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.## The demo page@@ -106,7 +110,8 @@ Two files draw and run the page around the demo. Every page links them after itsin the "Your settings" chips, Copy prompt, What it is and Similar animations, and runs thearrival, Pause, Slow motion, Show me, Play and reduced motion. **When either file changes,bump `N` on every page in the same change**, so visitors do not keep a cached older copy. A-test fails when the pages do not all use the same `N`.+test fails when the pages do not all use the same `N`. The home page links+`assets/js/demo-page.js` too (for its cards' Copy prompt), with the same `N`.The page owns the stage's width, border, corners and height. The demo owns everythingdrawn inside it (overflow, background, alignment, perspective).@@ -249,8 +254,9 @@ control with no label or value is left out and the console warns). It skips contThe 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, 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.+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+changing any page's settings or prompt.## Writing style