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
feat: the sitemap lists the Famous effects page right after the home page, and llms.txt links it with its description
matineecdddbfb64d
diff --git a/llms.txt b/llms.txtindex f7ec0768..85c7c56a 100644--- a/llms.txt+++ b/llms.txt@@ -191,6 +191,10 @@ Each page plays one technique live and gives a ready-made prompt that describes- [Light Rays](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/light-rays/): Soft beams of light fall from above and slowly sweep across. Best for hero intros.- [Game of Life](https://matinmonshizadeh.github.io/animation-handbook/animations/07-ambient-background/game-of-life/): Cells live and die by their neighbors, and patterns grow. Best for tech sites.+## Famous effects++- [Famous effects](https://matinmonshizadeh.github.io/animation-handbook/famous/): Effects people admire on well-known websites, the handbook animations that make something similar, and a prompt to build your own.+## Skill files- [SKILL.md](https://matinmonshizadeh.github.io/animation-handbook/skills/animation-handbook/SKILL.md): how to find a technique, choose its settings for the user's page and build it, with the rules for real pagesdiff --git a/sitemap.xml b/sitemap.xmlindex cffd5c28..b711ac77 100644--- a/sitemap.xml+++ b/sitemap.xml@@ -1,6 +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-12</lastmod><changefreq>weekly</changefreq><priority>1.0</priority></url>+ <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-13</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>diff --git a/tests/pages.test.js b/tests/pages.test.jsindex a8f7b680..7c56a524 100644--- a/tests/pages.test.js+++ b/tests/pages.test.js@@ -642,9 +642,11 @@ test('the counts written in the issue template, the 404 page and the sitemap matconst template = read(path.join(ROOT, '.github/ISSUE_TEMPLATE/config.yml'));assert.equal(numberIn(template, /See all (\d+) techniques/), cards, 'config.yml: the link to the live handbook');assert.equal(numberIn(read(path.join(ROOT, '404.html')), />Browse all (\d+) animations</), cards, '404.html: the Browse all link');- // The sitemap lists one URL more than the total: the home page.- const urls = count(read(path.join(ROOT, 'sitemap.xml')), '<url>');- assert.equal(urls, cards + 1, 'sitemap.xml lists the home page and every animation');+ // The sitemap lists two URLs more than the total: the home page and the Famous effects page, first and in that order.+ const sitemap = read(path.join(ROOT, 'sitemap.xml'));+ assert.equal(count(sitemap, '<url>'), cards + 2, 'sitemap.xml lists the home page, the Famous effects page and every animation');+ const LIVE = 'https://matinmonshizadeh.github.io/animation-handbook/';+ assert.deepEqual([...sitemap.matchAll(/<loc>([^<]*)<\/loc>/g)].slice(0, 2).map(m => m[1]), [LIVE, `${LIVE}famous/`], 'the home page, then Famous effects');});// GitHub Pages serves 404.html at every address it has no file for, at any depth, so a relative address in it woulddiff --git a/tests/skill.test.js b/tests/skill.test.jsindex 343de2b6..84ede1ca 100644--- a/tests/skill.test.js+++ b/tests/skill.test.js@@ -193,6 +193,16 @@ test('llms.txt lists every card once, in the order of CATS, with its live addres}});+test('llms.txt links the Famous effects page with the page\'s own description, after the categories and before the skill files', () => {+ const text = read(path.join(ROOT, 'llms.txt'));+ const lede = decode(read(path.join(ROOT, 'famous', 'index.html')).match(/<meta name="description" content="([^"]+)">/)[1]);+ const line = `- [Famous effects](${LIVE}famous/): ${lede}`;+ assert.equal(text.split('\n').filter(l => l === line).length, 1, `llms.txt has the line ${line}`);+ assert.ok(text.includes(`## Famous effects\n\n${line}\n`), 'under its own heading');+ assert.ok(text.indexOf(line) > text.lastIndexOf(`](${LIVE}animations/`), 'after the last card');+ assert.ok(text.indexOf(line) < text.indexOf('## Skill files'), 'before the skill files');+});+test('the plugin marketplace parses and its one plugin installs the skill folder', () => {const market = JSON.parse(read(path.join(ROOT, '.claude-plugin', 'marketplace.json')));assert.equal(market.name, 'animation-handbook');diff --git a/tools/make-skill.mjs b/tools/make-skill.mjsindex e8048dff..8f032b30 100644--- a/tools/make-skill.mjs+++ b/tools/make-skill.mjs@@ -14,13 +14,15 @@// a note. From the page's README.md it reads the Key parameters table (name | default | effect): each setting's line// ends with the effect of the row named like the setting on the page, and a page without settings lists every row, the// demo's own values.+// It also reads the Famous effects page's description (the meta description of famous/index.html): llms.txt lists that+// page after the categories.// It writes skills/animation-handbook/SKILL.md, skills/animation-handbook/references/catalog.md, one// skills/animation-handbook/references/<category folder>.md per category, and llms.txt at the root. Each is written with// LF line endings, and only when its text changed; it prints every file with its size. Running it twice changes// nothing. buildSkill(root), exported for the test, returns the same files as { 'path from the root': 'text' } and// writes nothing.// Exit code 1 when a card has no page, a page lacks a part the skill needs, a setting has no row in its README's Key-// parameters, or the skill folder holds a file this tool does not write.+// parameters, famous/index.html is missing or has no description, or the skill folder holds a file this tool does not write.import { existsSync, mkdirSync, readdirSync, readFileSync, realpathSync, writeFileSync } from 'node:fs';import { createRequire } from 'node:module';import { dirname, join, relative, sep } from 'node:path';@@ -348,6 +350,11 @@ export function buildSkill(root) {const CATS = homeConst(home, 'CATS'), PLACES = homeConst(home, 'PLACES');const placeName = Object.fromEntries(homeConst(home, 'PLACE_LIST').map(p => [p.key, p.name]));const total = CATS.reduce((n, cat) => n + cat.entries.length, 0);+ // The Famous effects page, which llms.txt lists after the categories with its own description.+ const famousFile = join(root, 'famous', 'index.html');+ if (!existsSync(famousFile)) throw new Error('famous/index.html is missing: llms.txt lists the Famous effects page');+ const famousLede = (readFileSync(famousFile, 'utf8').match(/<meta name="description" content="([^"]+)">/) || [])[1];+ if (!famousLede) throw new Error('famous/index.html has no description (<meta name="description" content="…">)');// Every category with its pages, each page with its address, places and anchor in its category file.const cats = CATS.map(cat => {@@ -409,6 +416,9 @@ export function buildSkill(root) {`Each page plays one technique live and gives a ready-made prompt that describes it in plain words, with no code. Most pages also have a few plain settings, such as speed or direction, and the prompt you copy lists your choices. Each technique's folder on GitHub has a README on how it works, the values that matter and production notes. To give an AI coding assistant all ${total} prompts and settings at once, install the Agent Skill: \`npx skills add matinmonshizadeh/animation-handbook\`.`, '',...CATS.flatMap(cat => [`## ${cat.name}`, '',...cat.entries.map(([slug, name, desc]) => `- [${name}](${base}${cat.folder.replace(/\/$/, '')}/${slug}/): ${desc}`), '']),+ // The Famous effects page: effects seen on well-known websites, each with the animations that make something similar.+ '## Famous effects', '',+ `- [Famous effects](${base}famous/): ${decode(famousLede, 'famous/index.html')}`, '',// The skill's own files, which the site serves as they are: every prompt and setting, as Markdown.'## Skill files', '',`- [SKILL.md](${base}${SKILL}/SKILL.md): how to find a technique, choose its settings for the user's page and build it, with the rules for real pages`,diff --git a/tools/update-sitemap.mjs b/tools/update-sitemap.mjsindex 21319f3a..bc74329a 100644--- a/tools/update-sitemap.mjs+++ b/tools/update-sitemap.mjs@@ -2,15 +2,16 @@// Writes sitemap.xml from the home page's cards: a development tool, not part of the site. Run it from a git checkout// after adding or changing pages.// Usage: node tools/update-sitemap.mjs [--out <file>]-// The home page comes first, then every page in the order of the CATS array in index.html (the home page's order),-// at the home page's canonical address. A page's lastmod is the date of the last commit that touched its folder-// (git log -1 --format=%cs -- <folder>), or today's date when the folder has changes that are not committed yet (a-// new page too). The home page's lastmod is the latest of index.html and the files it loads (the page script and-// the two fonts): a change to a page alone does not change the home page. changefreq and-// priority stay as they are: weekly and 1.0 for the home page, monthly and 0.7 for every page.+// The home page comes first, then the Famous effects page (famous/), then every page in the order of the CATS array in+// index.html (the home page's order), at the home page's canonical address. A page's lastmod is the date of the last+// commit that touched its folder (git log -1 --format=%cs -- <folder>), or today's date when the folder has changes that+// are not committed yet (a new page too); the Famous effects page is dated the same way, by famous/. The home page's+// lastmod is the latest of index.html and the files it loads (the page script and the two fonts): a change to a page+// alone does not change the home page. changefreq and priority: weekly and 1.0 for the home page, monthly and 0.8 for+// the Famous effects page, monthly and 0.7 for every page.// Without --out it rewrites sitemap.xml at the repo root, keeping its line endings; --out writes the same text to// another file instead, to compare. It prints how many URLs it wrote and how many dates changed.-// Needs git on the PATH. Exit code 1 when a card has no page folder or git cannot be read.+// Needs git on the PATH. Exit code 1 when a card has no page folder, famous/ has no index.html, or git cannot be read.import { execFile, execFileSync } from 'node:child_process';import { existsSync, readFileSync, writeFileSync } from 'node:fs';import { join } from 'node:path';@@ -51,6 +52,9 @@ if (!BASE) { console.error('index.html has no canonical address ending in /'); pconst pages = CATS.flatMap(cat => cat.entries.map(([slug]) => `${cat.folder.replace(/\/$/, '')}/${slug}/`));const missing = pages.filter(folder => !existsSync(join(ROOT, folder, 'index.html')));if (missing.length) { console.error(`cards with no page: ${missing.join(', ')}`); process.exit(1); }+// The Famous effects page (docs/superpowers/specs/2026-10-13-famous-effects-design.md) comes right after the home page.+const FAMOUS = 'famous/';+if (!existsSync(join(ROOT, FAMOUS, 'index.html'))) { console.error('famous/ has no index.html'); process.exit(1); }const now = new Date();const TODAY = [now.getFullYear(), now.getMonth() + 1, now.getDate()].map(n => String(n).padStart(2, '0')).join('-');@@ -83,17 +87,19 @@ async function datesOf(targets, atOnce = 8) {const pageDates = await datesOf(pages);const homeDate = (await datesOf(['index.html', 'assets/js/demo-page.js', 'assets/fonts/schibsted-latin.woff2','assets/fonts/schibsted-latin-ext.woff2'])).sort().pop();+const famousDate = (await datesOf([FAMOUS]))[0];const escape = s => s.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');const line = (loc, lastmod, changefreq, priority) =>` <url><loc>${escape(loc)}</loc><lastmod>${lastmod}</lastmod><changefreq>${changefreq}</changefreq><priority>${priority}</priority></url>`;const lines = ['<?xml version="1.0" encoding="UTF-8"?>', '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">',- line(BASE, homeDate, 'weekly', '1.0'), ...pages.map((folder, i) => line(BASE + folder, pageDates[i], 'monthly', '0.7')), '</urlset>'];+ line(BASE, homeDate, 'weekly', '1.0'), line(BASE + FAMOUS, famousDate, 'monthly', '0.8'),+ ...pages.map((folder, i) => line(BASE + folder, pageDates[i], 'monthly', '0.7')), '</urlset>'];const old = existsSync(SITEMAP) ? readFileSync(SITEMAP, 'utf8') : '';const EOL = old.includes('\r\n') ? '\r\n' : '\n';const oldDates = new Map([...old.matchAll(/<loc>([^<]*)<\/loc><lastmod>([^<]*)<\/lastmod>/g)].map(m => [m[1], m[2]]));-const newDates = [[BASE, homeDate], ...pages.map((folder, i) => [BASE + folder, pageDates[i]])];+const newDates = [[BASE, homeDate], [BASE + FAMOUS, famousDate], ...pages.map((folder, i) => [BASE + folder, pageDates[i]])];const moved = newDates.filter(([loc, date]) => oldDates.get(loc) !== date).length;writeFileSync(OUT, lines.join(EOL) + EOL);console.log(`${OUT}: ${newDates.length} URLs, ${moved} lastmod ${moved === 1 ? 'date' : 'dates'} new or changed`);