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 README opens with a moving wall of six animations, and a still one under reduced motion
matinb671d34225ac
diff --git a/README.md b/README.mdindex c0347d23..c9aba1a9 100644--- a/README.md+++ b/README.md@@ -1,6 +1,6 @@<div align="center">-<a href="https://matinmonshizadeh.github.io/animation-handbook/"><img src="og-image.png" alt="Animation Handbook — 166 web animation techniques with live demos" width="820"></a>+<a href="https://matinmonshizadeh.github.io/animation-handbook/"><picture><source media="(prefers-reduced-motion: reduce)" srcset="docs/hero.png"><img src="docs/hero.gif" alt="Six animations from the handbook playing at once: Text Particles, Synthwave Grid, Liquid Glass, Shatter Effect, Holographic Card and Dynamic Island. Animation Handbook — 166 web animation techniques with live demos" width="820"></picture></a># Animation Handbookdiff --git a/docs/hero.gif b/docs/hero.gifnew file mode 100644index 00000000..9ba3b3f3Binary files /dev/null and b/docs/hero.gif differdiff --git a/docs/hero.png b/docs/hero.pngnew file mode 100644index 00000000..707407b9Binary files /dev/null and b/docs/hero.png differdiff --git a/docs/superpowers/specs/2026-10-02-readme-hero-design.md b/docs/superpowers/specs/2026-10-02-readme-hero-design.mdindex af2ab5fe..86d4cfd6 100644--- a/docs/superpowers/specs/2026-10-02-readme-hero-design.md+++ b/docs/superpowers/specs/2026-10-02-readme-hero-design.md@@ -54,3 +54,13 @@ This is a one-off, made with scratch scripts that are not committed.## Out of scope- The install command, which comes with the AI skill (step 3).- Changes to `og-image.png`, to the site, or to any other part of the README.++## Notes from the build+- **Tile edges:** each tile has a faint 1 px edge (white at 10%), so the dark tiles don't blend into the background.+- **Shatter Effect:** it cycles through three photos in about 8.4 s, so its tile plays that cycle 1.4 times faster to fit the 6 s loop without a jump.+- **Synthwave Grid:** it repeats every 5/6 s, so its loop is exactly seven repeats, played at 0.97× speed.+- **The other four** each play one Show me run from rest to rest, and their runs are spaced so they take turns.+- **Palette:** it is built from whole frames (`stats_mode=full`) with ordered dithering (`bayer_scale=4`).+ - A palette built from the moving parts only turned the suns pink.+ - Error-diffusion dithering made still areas flicker.+ - Result: 2.86 MB, with no flicker in still areas.diff --git a/tests/pages.test.js b/tests/pages.test.jsindex 409db191..5564790d 100644--- a/tests/pages.test.js+++ b/tests/pages.test.js@@ -455,7 +455,7 @@ test('the counts written on the home page match its cards', () => {test('the counts written in the root README match the cards', () => {const cats = homeConst('CATS'), cards = totalCards();const readme = read(path.join(ROOT, 'README.md'));- assert.equal(numberIn(readme, /<img src="og-image\.png" alt="[^"]*?(\d+) web animation techniques/), cards, "README: the picture's alt text");+ assert.equal(numberIn(readme, /<img src="docs\/hero\.gif" alt="[^"]*?(\d+) web animation techniques/), cards, "README: the picture's alt text");assert.equal(numberIn(readme, /^\*\*A visual reference of (\d+) web animation techniques/m), cards, 'README: the intro line');assert.equal(numberIn(readme, /badge\/techniques-(\d+)-/), cards, 'README: the techniques badge');assert.equal(numberIn(readme, /^All (\d+) techniques, each linked to its live demo\.$/m), cards, 'README: the Full catalog line');