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: how the Famous effects page is kept (entry template, prompt rules, legal checklist, make-famous, the famous check), its README line and CHANGELOG entry, and the generated files written again
matin78e9a059c53e
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.mdindex ce65d84f..19e92f88 100644--- a/.github/pull_request_template.md+++ b/.github/pull_request_template.md@@ -9,6 +9,7 @@- [ ] `node --test "tests/*.test.js"` passes- [ ] The page check gives six `ok` lines for every page the change touches (`node tools/check-pages.mjs --base http://127.0.0.1:<port> <page folder>`)- [ ] If the change touches the home page, or a page's settings or prompt, the home page check gives six `ok` lines too (`node tools/check-pages.mjs --base http://127.0.0.1:<port> home`)+- [ ] If the change touches the Famous effects page (`famous/`), its cards or a preview it shows, `node tools/make-famous.mjs` has run and its check gives six `ok` lines too (`node tools/check-pages.mjs --base http://127.0.0.1:<port> famous`)- [ ] If a shared file changed (`assets/css/demo-page.css`, `assets/js/demo-page.js`), `?v=N` is bumped on every page and on the home page## A new techniquediff --git a/CHANGELOG.md b/CHANGELOG.mdindex efc9c172..f3563886 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -11,6 +11,8 @@ The main steps of Animation Handbook, newest first, with the number of animation- The AI skill builds what the user asks for on their own page: each setting comes with the demo's values as a startingpoint, the catalog is searched rather than read whole, and the rules cover what a real page needs (nothing on thefirst screen waits for a scroll, decorations stay out of the keyboard order, loops pause out of view).+- A Famous effects page: twelve effects people admire on well-known websites, each described in plain words with the+ handbook animations that make something similar and a prompt to build your own. It is linked from the home page's footer.## 1.0.0 — 2026-10-10diff --git a/CLAUDE.md b/CLAUDE.mdindex 8f0ca502..d15c1fa1 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -234,8 +234,52 @@ inside an entry's "Production notes" section, never as their own entry.new card's Copy prompt is compared there.Changing anything the skill or `llms.txt` repeats (a page's title, one-line description, kind, prompt, settings or-Good for and Avoid on tags, a README's Key parameters, or a card's name, places or order in `CATS`) also means running-`node tools/make-skill.mjs` again: the skill test (`tests/skill.test.js`) fails until then.+Good for and Avoid on tags, a README's Key parameters, a card's name, places or order in `CATS`, or the Famous effects+page's description) also means running `node tools/make-skill.mjs` again: the skill test (`tests/skill.test.js`) fails+until then. Changing a preview that the Famous effects page shows (its key in `PV`, its `case` in `pvMarkup()`, its+rules or keyframes, its `STILL` point) or that page's cards means running `node tools/make-famous.mjs` again: the famous+test (`tests/famous.test.js`) fails until then.++## Famous effects page+`famous/index.html` shows effects people admire on well-known websites: what you see, in plain words; the handbook+animations that make something similar, as cards with their moving previews; and one prompt to build it+(`docs/superpowers/specs/2026-10-13-famous-effects-design.md`). It is one page in the home page's look and colors (a test+compares them); it links neither shared file, and its own script copies, shows the message, falls back to the copy keys and+shortens prompts on phones in the animation pages' words. Its two marked blocks, the previews' CSS and the `PREVIEWS`+object, are written by `node tools/make-famous.mjs` from the home page, never by hand.++**An entry** is a `section.fx` with an id (`site-what`, as `stripe-ribbon`), `data-fx-site` (the site's name) and+`data-fx-start` (`loop`, `load`, `scroll`, `hover` or `press`), then, in order: "Seen on" and the site's address as a link+(`https://`, in a new tab, its text the address without `https://` or `www.`, its name ending "(opens in a new tab)") and+the year in a `<time>` whose `datetime` is the day it was checked; the plain title as an `h2` with `tabindex="-1"`; what+you see, 25 to 70 words; "Made with these animations" and one to three cards (the card's `CATS` name and line, its page's+link and `data-slug`, and on its preview a label of one to three words saying what that animation makes here; two different+animations on the page never share a preview); "A prompt to build something similar" and Copy prompt, which names its+entry. Copy a neighbor entry's markup, add its chip to the jump row and count it in the pill.++**Its prompt** follows "The copyable prompt" above, but the page has no settings, so it never ends "Match the settings+listed below.": 60 to 130 words, starting "Add a … to [what the reader fills in]" with each bracketed part in a `<mark>`; it+asks for the reader's own colors and content, never a copy of the site, says what happens under reduced motion and, when+the effect starts on hover or press, what touch does. It never names a site of the page, by name or by address.++**The legal checklist** binds every entry (rules to follow, not legal advice):+- The title, what you see and the prompt are in our own words: no sentence, feature name or slogan from the site.+- The site is named in plain text, in the page's own font and colors (no logo, icon, brand color or typeface), and linked+ to its public page.+- Shown only with the handbook's own demos and previews; nothing from the site in the repository or in posts about the+ page: no code, screenshots, videos, pictures, icons or logos.+- The line saying the handbook is not connected to these sites stays on the page, above the first entry, on the first+ screen.+- Nothing implies approval or partnership: no "official", "approved", "partner", "as used by"; no company name in the+ page's title, description or social card; the prompt names no company.+- "Seen on <site> in <year>", with the day checked in `datetime`.+- A site owner who asks for an entry to be changed or removed gets it done promptly (the Suggest link is the contact).++**Adding or checking an entry again.** Watch the effect on the live site, logged out, and write what you see in your own+words; add the entry, its chip and its count in the pill; run `node tools/make-famous.mjs`, `node tools/update-sitemap.mjs`,+the tests and the page check's `famous` target. Every entry is checked again on its site before each release of the page+and at least once a year: an effect that changed is described again from what shows now, one that has gone stays true as+a past sighting or is replaced, and its `datetime` takes the day of the check.## When asked to refactor- Preserve every demo's behavior exactly. Visual parity matters more than@@ -246,8 +290,8 @@ Good for and Avoid on tags, a README's Key parameters, or a card's name, places## Tests and the page checkRun both before calling a page done. They need Node 22 or later (the `--test` glob, the page check's `WebSocket`).- **Tests:** `node --test "tests/*.test.js"` from the repo root (nothing to install) checks every page and its- README, the shared stylesheet and the home page. GitHub Actions runs them too, on every push to `main` and every- pull request (`.github/workflows/tests.yml`).+ README, the shared stylesheet, the home page and the Famous effects page. GitHub Actions runs them too, on every+ push to `main` and every pull request (`.github/workflows/tests.yml`).- **Page check:** serve the repo root (`python -m http.server <port> --bind 127.0.0.1`), then run`node tools/check-pages.mjs --base http://127.0.0.1:<port> <page or category folder>`. It drives Chrome (set`CHROME` to its path if it is not in the default Windows folder) and loads each page at six setups (1280×800,@@ -261,6 +305,11 @@ Run both before calling a page done. They need Node 22 or later (the `--test` glsix setups (six `ok` lines). Its desktop run also tries the tiles, the search and Show all, and comparesCopy prompt on the home page with every page's own; its phone run tries a tile and the slim bar, and itsreduced-motion run checks that nothing moves. Run it after changing any page's settings or prompt.+- **Famous effects:** `node tools/check-pages.mjs --base http://127.0.0.1:<port> famous` checks `famous/` at the same six+ setups (six `ok` lines): the first screen, overflow and touch targets; its desktop run presses each jump link, watches+ each entry's previews and presses each Copy prompt (twice more with the clipboard refused or missing); its+ reduced-motion run checks that nothing moves and that every preview holds a still frame that shows something. Run it+ after changing that page, its cards or a preview it shows.## Out of scope- Backend code, databases, APIs.diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 2331d24c..92d02c17 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -306,6 +306,11 @@ prompt on the home page with every page's own prompt and default settings; its pa tile and the slim bar, and its reduced-motion run checks that nothing moves. Run it afterchanging any page's settings or prompt.+The Famous effects page has one too: `node tools/check-pages.mjs --base http://127.0.0.1:<port> famous`. It checks the+layout at the six setups, presses each jump link and each Copy prompt and watches the previews; its reduced-motion run+checks that nothing moves. Its previews come from the home page: after changing a preview it shows, run+`node tools/make-famous.mjs`.+## Writing styleProse, not bullet-soup. Show, then explain. Avoid hype ("stunning", "powerful") — describe@@ -318,3 +323,12 @@ CSS property names. Use American spelling (color, behavior, center, neighbor, grOpen an issue (or a PR directly for small fixes). Preserve every demo's behavior — visualparity matters more than code elegance. Never combine multiple animations into one file. Ifyou change a shared file, bump `?v=N` on every page.++## Suggesting a famous effect++The [Famous effects](https://matinmonshizadeh.github.io/animation-handbook/famous/) page shows effects people admire on+well-known websites, each with the handbook animations that make something similar and a prompt to build your own. Seen+one we should add? Open an issue with the *Famous effect* template: the site's address, where on the page it shows and+what you see, in your own words. Please attach no screenshots, videos or code from the site: the page describes each+effect in its own words and shows it only with the handbook's own demos (the rules are in `CLAUDE.md`, under Famous+effects page).diff --git a/README.md b/README.mdindex a5f1b5c0..d83e7e40 100644--- a/README.md+++ b/README.md@@ -32,6 +32,8 @@ Everything is plain HTML, CSS, and JavaScript: no build step, no frameworks, no2. **Watch it and try it.** Each page plays the animation, and most offer a few plain settings, such as speed or direction, so you see exactly what you will get.3. **Copy the prompt.** Paste it into your AI assistant. It describes the animation in plain words, with your settings. The cards on the home page have a Copy prompt button too.+**Seen it on a famous site?** [Famous effects](https://matinmonshizadeh.github.io/animation-handbook/famous/) shows effects people admire on well-known websites, the handbook animations that make something similar, and a prompt to build your own.+<div align="center"><a href="https://matinmonshizadeh.github.io/animation-handbook/"><picture><source media="(prefers-reduced-motion: reduce) and (max-width: 600px)" srcset="docs/demo-phone-still.webp"><source media="(prefers-reduced-motion: reduce)" srcset="docs/demo-still.webp"><source media="(max-width: 600px)" srcset="docs/demo-phone.webp"><img src="docs/demo.webp" alt="Screen recording of the handbook: on the home page, pressing Buttons brings up cards with live previews, Success Confetti opens and plays its demo, and Copy prompt shows Copied" width="820"></picture></a></div>diff --git a/sitemap.xml b/sitemap.xmlindex 28d3b519..ed96ef1d 100644--- a/sitemap.xml+++ b/sitemap.xml@@ -1,7 +1,7 @@<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://matinmonshizadeh.github.io/animation-handbook/</loc><lastmod>2026-10-13</lastmod><changefreq>weekly</changefreq><priority>1.0</priority></url>- <url><loc>https://matinmonshizadeh.github.io/animation-handbook/famous/</loc><lastmod>2026-10-14</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url>+ <url><loc>https://matinmonshizadeh.github.io/animation-handbook/famous/</loc><lastmod>2026-10-15</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url><url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/parallax-depth-of-field/</loc><lastmod>2026-10-12</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url><url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/parallax-scrolling/</loc><lastmod>2026-10-12</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url><url><loc>https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/reverse-scrolling-columns/</loc><lastmod>2026-10-12</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>