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: a new animation gets its own home preview

matin5b8de60289b4
diff --git a/CLAUDE.md b/CLAUDE.md
index b71fda93..f1f10e51 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -198,11 +198,15 @@ inside an entry's "Production notes" section, never as their own entry.
or 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. Keep
- `PLACES` in the same order as `CATS` (a test checks it).
+ `PLACES` in the same order as `CATS` (a test checks it). Give the card its own preview too: its key in
+ `PV`, its CSS at the end of the category's `/* ── bespoke: … ── */` block (transform and opacity only,
+ inside its 16:10 stage and clear of the place label), its markup as a `case` in `pvMarkup()`, and a
+ `STILL` point when the middle of its loop is not a clear frame (reduced motion holds every preview
+ there). Without one the card shows the category's generic picture.
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, the home check in `tools/check-pages.mjs`, `.github/ISSUE_TEMPLATE/config.yml` and
- `docs/launch-kit.md`.
+ description, in home page order), and the technique count wherever it is written: the root `README.md`
+ (the total and the category's count), the home page, `.github/ISSUE_TEMPLATE/config.yml`,
+ `docs/launch-kit.md` and the picture `og-image.png`. The home check reads its totals from the page.
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.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index f3deb4e0..211d3a44 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -70,10 +70,16 @@ fix a bug, or improve an explanation are all welcome.
`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 the card its own preview too: its key in `PV`, its CSS at the end of the category's
+ `/* ── bespoke: … ── */` block (transform and opacity only, inside its 16:10 stage and clear
+ of the place label), its markup as a `case` in `pvMarkup()`, and a `STILL` point when the
+ middle of its loop is not a clear frame (reduced motion holds every preview there). Without
+ one the card shows the category's generic picture.
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, the home check in `tools/check-pages.mjs`,
- `.github/ISSUE_TEMPLATE/config.yml` and `docs/launch-kit.md`.
+ root `README.md` (the total and the category's count), the home page,
+ `.github/ISSUE_TEMPLATE/config.yml`, `docs/launch-kit.md` and the picture `og-image.png`.
+ The home check reads its totals from the page.
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.