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: without JavaScript the home page lists every animation as a plain link
matin11468b0b3943
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 26ee5c5d..452aa45a 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -47,6 +47,8 @@ The main steps of Animation Handbook, newest first, with the number of animationmisspellings (paralax, accordian) and British spellings (colour, grey). When nothing matches, Ask for it opens a shortGitHub form with your words filled in.- After you copy a prompt, the Star on GitHub button under it lights up once.+- Without JavaScript, the home page lists every animation as a plain link under its group, so visitors and search engines+ that run no script can still reach every page.## 1.0.0 — 2026-10-10diff --git a/CLAUDE.md b/CLAUDE.mdindex 7fa842b9..76ee4609 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -222,7 +222,8 @@ inside an entry's "Production notes" section, never as their own entry.use the linked page's `<h1>`; copy the markup from a neighbor. Adding a page mid-category renumbers the`NN.MM` category line of every later page.6. Update the root `index.html` index page to link to it: add a card to the category's `entries` in the- `CATS` array (slug, name, the page's one-line description); `sitemap.xml` is written from `CATS` (step 8). Give it+ `CATS` array (slug, name, the page's one-line description); `sitemap.xml` and the home page's plain list of links (in its+ `<noscript>`, for visitors and crawlers without JavaScript) are written from `CATS` (step 8). Give itone 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@@ -255,7 +256,8 @@ inside an entry's "Production notes" section, never as their own entry.pill: with the repo served, run `node tools/make-social-image.mjs --base http://127.0.0.1:<port>`, which draws itagain from the home page. The home check needs no edit: it reads its totals from `CATS` and `PLACES`.8. Run `node tools/update-sitemap.mjs`: it writes every card into `sitemap.xml`, dated by the last commit to its- folder (today for a folder with changes not yet committed). Run `node tools/make-skill.mjs` too: it writes every+ folder (today for a folder with changes not yet committed), and into the home page's plain list of links (between the+ two `plain-links` comment lines; a test compares the list with `CATS`). Run `node tools/make-skill.mjs` too: it writes everypage's prompt and settings, with its README's Key parameters, into the AI skill (`skills/animation-handbook/`) andevery card into `llms.txt`. Run thetests and the page check on the new folder and on every page you edited. Run the home page check (`home`) too: thediff --git a/index.html b/index.htmlindex 9c0f8659..821dca52 100644--- a/index.html+++ b/index.html@@ -256,6 +256,11 @@ button,input{font:inherit;color:inherit}.empty-ask{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 14px;margin-top:6px;font-size:15px;color:var(--muted)}.empty-ask .pillbtn{color:var(--ink);text-decoration:none}.noscript{max-width:60ch;margin-top:16px;line-height:1.7;color:var(--ink-2)}+/* Without JavaScript: every animation as a plain link, under its group (written by tools/update-sitemap.mjs) */+.plain{margin-top:8px;line-height:1.7;color:var(--ink-2)}+.plain h3{margin:24px 0 6px;font-size:18px;color:var(--ink)}+.plain ul{padding-left:20px}+.plain a{color:var(--ink);font-weight:600}/* how it works, footer, message */.how{margin-top:clamp(56px,8vw,96px);padding:clamp(36px,6vw,80px) 0;background:var(--surface);border-block:1px solid var(--line-2)}@@ -3219,7 +3224,208 @@ button,input{font:inherit;color:inherit}<p class="fd-not-acts"><a class="fd-btn" id="find-gh" href="https://github.com/matinmonshizadeh/animation-handbook/issues/new?template=animation_not_here.yml" target="_blank" rel="noopener">Tell us on GitHub</a><button type="button" class="pillbtn" id="find-words">Describe it in words</button></p><p class="fd-fine">The form is on GitHub and needs a free account.</p></div>- <noscript><p class="noscript">This page shows its animations with JavaScript. All 176 are still easy to reach: see the <a href="https://github.com/matinmonshizadeh/animation-handbook#categories">category list on GitHub</a> or the <a href="sitemap.xml">full sitemap</a>. Each demo is a page of its own under <code>/animations/<category>/<name>/</code>.</p></noscript>+ <noscript><p class="noscript">This page shows its animations with JavaScript. All 176 are still easy to reach: see the <a href="https://github.com/matinmonshizadeh/animation-handbook#categories">category list on GitHub</a> or the <a href="sitemap.xml">full sitemap</a>. Each demo is a page of its own under <code>/animations/<category>/<name>/</code>.</p>+ <div class="plain">+<!-- plain-links: written by tools/update-sitemap.mjs from the cards; not by hand -->+<h3>Scroll-Based</h3>+<ul>+<li><a href="animations/01-scroll-based/parallax-depth-of-field/">Parallax Depth-of-Field</a>: Layers move at their own speed as the focus shifts. Best for cinematic intros.</li>+<li><a href="animations/01-scroll-based/parallax-scrolling/">Parallax Scrolling</a>: Far layers move slower than near ones as you scroll. Best for hero scenes.</li>+<li><a href="animations/01-scroll-based/reverse-scrolling-columns/">Reverse-Scrolling Columns</a>: Side columns run the opposite way to the middle one. Best for portfolios.</li>+<li><a href="animations/01-scroll-based/cover-card-to-fixed-header/">Cover Card to Fixed Header</a>: A tall cover shrinks into a slim header as you scroll. Best for articles.</li>+<li><a href="animations/01-scroll-based/fly-in-fly-out-contact-list/">Fly-in Fly-out Contact List</a>: Rows fade and slide as they near the top or bottom edge. Best for long lists.</li>+<li><a href="animations/01-scroll-based/stacking-cards/">Stacking Cards</a>: Cards stick at the top and pile into a deck. Best for step-by-step stories.</li>+<li><a href="animations/01-scroll-based/scroll-trigger/">Scroll-Triggered Animation</a>: Animations start, follow and pin at set scroll points. Best for landing pages.</li>+<li><a href="animations/01-scroll-based/scrub-animation/">Scrub Animation</a>: Scroll plays it forward and back, like dragging a video. Best for product tours.</li>+<li><a href="animations/01-scroll-based/pin-animation/">Pin Animation</a>: One part stays put while its text changes on scroll. Best for feature lists.</li>+<li><a href="animations/01-scroll-based/snap-scrolling/">Snap Scrolling</a>: The box settles on one whole section at a time. Best for slides and galleries.</li>+<li><a href="animations/01-scroll-based/scrollytelling/">Scrollytelling</a>: A picture beside the story changes as you read down. Best for data stories.</li>+<li><a href="animations/01-scroll-based/reveal-on-scroll/">Reveal on Scroll</a>: Cards appear as they cross a line in the box. Best for long landing pages.</li>+<li><a href="animations/01-scroll-based/stagger-reveal/">Stagger Reveal</a>: Items in a group appear one after another as it scrolls in. Best for card grids.</li>+<li><a href="animations/01-scroll-based/horizontal-scroll/">Horizontal Scroll</a>: Scroll down and a row of panels slides sideways. Best for portfolios.</li>+<li><a href="animations/01-scroll-based/sticky-section/">Sticky Section</a>: A section holds still while its content changes. Best for feature tours.</li>+<li><a href="animations/01-scroll-based/counter-animation/">Counter Animation</a>: Numbers count up when they scroll into view. Best for stats.</li>+<li><a href="animations/01-scroll-based/progress-bar/">Progress Bar</a>: A bar fills as you read down the page. Best for long articles.</li>+<li><a href="animations/01-scroll-based/section-wipe/">Section Wipe</a>: Each section slides up over the one before. Best for full-screen stories.</li>+<li><a href="animations/01-scroll-based/zoom-into-image/">Zoom Into Image</a>: A small window opens up to fill the box as you scroll. Best for hero images.</li>+<li><a href="animations/01-scroll-based/scroll-image-sequence/">Scroll Image Sequence</a>: Scrolling plays a series of pictures like a flip-book. Best for products.</li>+<li><a href="animations/01-scroll-based/smooth-scroll/">Smooth (Inertia) Scroll</a>: Scrolling glides to a stop instead of jumping. Best for portfolio sites.</li>+<li><a href="animations/01-scroll-based/text-fill-on-scroll/">Text Fill on Scroll</a>: Words light up one by one as you scroll. Best for key statements.</li>+<li><a href="animations/01-scroll-based/scroll-velocity-skew/">Scroll Velocity Skew</a>: Rows lean when you scroll fast and straighten when you stop. Best for galleries.</li>+<li><a href="animations/01-scroll-based/svg-line-draw/">SVG Line Draw on Scroll</a>: A line draws itself along a route as you scroll. Best for timelines.</li>+<li><a href="animations/01-scroll-based/scrollspy-nav/">Scrollspy Navigation</a>: A menu highlights the section you are reading. Best for long docs.</li>+<li><a href="animations/01-scroll-based/scroll-background-color/">Scroll-Driven Background Color</a>: The background color changes as you scroll through sections. Best for stories.</li>+<li><a href="animations/01-scroll-based/hide-on-scroll-header/">Hide-on-Scroll Header</a>: Scrolling down hides the top bar; scrolling up shows it. Best for mobile pages.</li>+</ul>+<h3>Entrance & Exit</h3>+<ul>+<li><a href="animations/02-entrance-and-exit/fade-in-out/">Fade In / Fade Out</a>: Fades in to appear and fades out to leave. Best for pop-ups and tooltips.</li>+<li><a href="animations/02-entrance-and-exit/slide-in/">Slide In</a>: Travels into place from one edge. Best for side panels and notifications.</li>+<li><a href="animations/02-entrance-and-exit/slide-up-reveal/">Slide Up Reveal</a>: Text rises into view from behind an invisible edge. Best for headlines.</li>+<li><a href="animations/02-entrance-and-exit/scale-in/">Scale In / Zoom In</a>: Grows from smaller to full size. Best for pop-ups and menus.</li>+<li><a href="animations/02-entrance-and-exit/clip-path-reveal/">Clip-Path Reveal</a>: A growing shape uncovers it while it stays still. Best for images and banners.</li>+<li><a href="animations/02-entrance-and-exit/curtain-reveal/">Curtain Reveal</a>: A colored panel covers it, then slides away. Best for intros and logos.</li>+<li><a href="animations/02-entrance-and-exit/split-text-reveal/">Split Text Reveal</a>: Text breaks into pieces that appear one after another. Best for headlines.</li>+<li><a href="animations/02-entrance-and-exit/letter-by-letter-stagger/">Letter-by-Letter Stagger</a>: A phrase appears letter by letter or typewriter-style. Best for short headlines.</li>+<li><a href="animations/02-entrance-and-exit/word-by-word-reveal/">Word-by-Word Reveal</a>: Words appear one after another at a reading pace. Best for quotes and intros.</li>+<li><a href="animations/02-entrance-and-exit/blur-in/">Blur In</a>: Comes into focus from a blur, like a camera. Best for featured cards and photos.</li>+<li><a href="animations/02-entrance-and-exit/flip-in/">Flip In</a>: Swings into view in 3D, like a card turning over. Best for cards and tiles.</li>+<li><a href="animations/02-entrance-and-exit/bounce-in/">Bounce In</a>: Lands with a springy bounce. Best for badges and success messages.</li>+<li><a href="animations/02-entrance-and-exit/rotate-in/">Rotate In</a>: Spins into place while it grows. Best for icons, stars and badges.</li>+<li><a href="animations/02-entrance-and-exit/shatter-effect/">Shatter Effect</a>: Breaks into pieces that fly apart and fade. Best for galleries and bold exits.</li>+<li><a href="animations/02-entrance-and-exit/ink-spread-reveal/">Ink Spread Reveal</a>: Ink drops spread and merge until the picture shows. Best for art and intros.</li>+</ul>+<h3>Page Transitions</h3>+<ul>+<li><a href="animations/03-page-transitions/view-transitions-api/">View Transitions API</a>: The browser animates the change between two pages for you. Best for web apps.</li>+<li><a href="animations/03-page-transitions/shared-element-transition/">Shared Element Transition</a>: A picture grows from the list into the next page's header. Best for galleries.</li>+<li><a href="animations/03-page-transitions/morph-transition/">Morph Transition</a>: The logo changes shape to match each page you visit. Best for brand marks.</li>+<li><a href="animations/03-page-transitions/crossfade/">Crossfade Transition</a>: The old page fades out as the new one fades in. Best for calm page changes.</li>+<li><a href="animations/03-page-transitions/slide-transition/">Slide Transition</a>: Pages slide across, and going back slides the other way. Best for step flows.</li>+<li><a href="animations/03-page-transitions/zoom-transition/">Zoom Transition</a>: The pages zoom as they swap, as if moving in depth. Best for opening details.</li>+<li><a href="animations/03-page-transitions/flash-transition/">Flash / Light Leak Transition</a>: A burst of light hides the moment the page changes. Best for bold, lively sites.</li>+<li><a href="animations/03-page-transitions/blur-transition/">Blur Transition</a>: The old page blurs away and the new one comes into focus. Best for photo sites.</li>+<li><a href="animations/03-page-transitions/elastic-transition/">Elastic Transition</a>: The new page slides in, goes too far and springs back. Best for playful apps.</li>+<li><a href="animations/03-page-transitions/portal-zoom/">Portal / Tunnel Zoom</a>: The next page opens out of a circle you click. Best for big reveals.</li>+<li><a href="animations/03-page-transitions/dissolve/">Dissolve Transition</a>: The page breaks into tiles that give way to the next. Best for photo galleries.</li>+<li><a href="animations/03-page-transitions/flip-technique/">FLIP Technique</a>: Cards glide to their new places when the layout changes. Best for sorting lists.</li>+<li><a href="animations/03-page-transitions/circle-reveal/">Circle Reveal</a>: Pages grow from any spot you click and shrink back into it. Best for app navigation.</li>+<li><a href="animations/03-page-transitions/overlay-wipe/">Overlay Wipe</a>: A colored panel sweeps over the page as it changes. Best for portfolio sites.</li>+<li><a href="animations/03-page-transitions/page-curl/">Page Curl</a>: The page peels back from its corner like paper. Best for digital magazines.</li>+<li><a href="animations/03-page-transitions/cube-transition/">Cube Transition</a>: The pages sit on a cube that turns to show the next. Best for photo stories.</li>+<li><a href="animations/03-page-transitions/pixelate-transition/">Pixelate Transition</a>: The page breaks into big pixels, then sharpens into the next. Best for galleries.</li>+</ul>+<h3>Micro-Interactions</h3>+<ul>+<li><a href="animations/04-micro-interactions/hover-state/">Hover State Animation</a>: Six ways a card can react when you point at it. Best for buttons and cards.</li>+<li><a href="animations/04-micro-interactions/click-ripple/">Click / Tap Ripple</a>: A ripple spreads out from the spot you press. Best for buttons and list items.</li>+<li><a href="animations/04-micro-interactions/focus-ring/">Focus Ring Animation</a>: A ring closes in around the item the Tab key reaches. Best for forms and menus.</li>+<li><a href="animations/04-micro-interactions/button-press-scale/">Button Press Scale</a>: Shrinks as you press it and springs back as you let go. Best for main buttons.</li>+<li><a href="animations/04-micro-interactions/magnetic-button/">Magnetic Button</a>: Leans toward the pointer, then springs home. Best for one main button.</li>+<li><a href="animations/04-micro-interactions/toggle-switch/">Toggle / Switch Slide</a>: The knob slides across as the switch turns on or off. Best for settings.</li>+<li><a href="animations/04-micro-interactions/heart-burst/">Heart / Like Burst</a>: The heart pops and fills as small hearts burst out. Best for like buttons.</li>+<li><a href="animations/04-micro-interactions/success-confetti/">Success Confetti</a>: Confetti bursts from the button when a task is done. Best for big moments.</li>+<li><a href="animations/04-micro-interactions/skeleton-loader/">Skeleton Loader</a>: Gray shapes hold the place of content while it loads. Best for feeds and cards.</li>+<li><a href="animations/04-micro-interactions/shimmer-effect/">Shimmer Effect</a>: A band of light sweeps over gray placeholders. Best for loading screens.</li>+<li><a href="animations/04-micro-interactions/loading-spinner/">Loading Spinner</a>: Six small shapes loop to show that something is loading. Best for short waits.</li>+<li><a href="animations/04-micro-interactions/progress-animation/">Progress Animation</a>: A bar, a ring and steps fill up to show progress. Best for uploads.</li>+<li><a href="animations/04-micro-interactions/checkmark-draw/">Checkmark Draw</a>: A tick draws itself in a circle once a task succeeds. Best for forms.</li>+<li><a href="animations/04-micro-interactions/form-field-morph/">Form Field Morph</a>: The label moves up out of the way as you type. Best for sign-up forms.</li>+<li><a href="animations/04-micro-interactions/badge-pulse/">Notification Badge Pulse</a>: A badge on an icon pulses to catch the eye. Best for unread messages.</li>+<li><a href="animations/04-micro-interactions/tooltip-reveal/">Tooltip Reveal</a>: A small label fades in after a short pause. Best for icon buttons.</li>+<li><a href="animations/04-micro-interactions/drawer-slide/">Drawer / Panel Slide</a>: A side panel slides in over a dimmed page. Best for mobile menus.</li>+<li><a href="animations/04-micro-interactions/modal-expand/">Modal Expand</a>: A window grows out of the button you pressed. Best for detail views.</li>+<li><a href="animations/04-micro-interactions/accordion/">Accordion Open/Close</a>: Each question opens smoothly to show its answer. Best for FAQ pages.</li>+<li><a href="animations/04-micro-interactions/cursor-follower/">Cursor Follower</a>: A dot trails your pointer and flips the colors under it. Best for portfolios.</li>+<li><a href="animations/04-micro-interactions/error-shake/">Error Shake</a>: A field shakes side to side when the input is wrong. Best for sign-in forms.</li>+<li><a href="animations/04-micro-interactions/swipe-to-dismiss/">Swipe to Dismiss</a>: A card dragged sideways flies off and the list closes up. Best for inboxes.</li>+<li><a href="animations/04-micro-interactions/hamburger-menu-toggle/">Hamburger Menu Toggle</a>: Three lines turn into an X as the menu opens. Best for mobile menus.</li>+<li><a href="animations/04-micro-interactions/theme-toggle-morph/">Theme Toggle Morph</a>: A sun turns into a moon as the colors switch to dark. Best for theme buttons.</li>+<li><a href="animations/04-micro-interactions/copy-to-clipboard/">Copy to Clipboard</a>: Copy turns into a tick and Copied, then changes back. Best for codes and links.</li>+<li><a href="animations/04-micro-interactions/star-rating/">Star Rating</a>: Stars fill up to your pointer and pop when you choose. Best for reviews.</li>+<li><a href="animations/04-micro-interactions/toast-notification/">Toast Notification</a>: Short messages slide into a corner, then leave on their own. Best for updates.</li>+<li><a href="animations/04-micro-interactions/segmented-control/">Segmented Control</a>: A highlight slides to the option you pick. Best for switching views.</li>+<li><a href="animations/04-micro-interactions/pull-to-refresh/">Pull to Refresh</a>: Pulling a list down shows a spinner, then new items. Best for feeds.</li>+<li><a href="animations/04-micro-interactions/gradient-border/">Animated Gradient Border</a>: A band of colors runs around the edge of a card or button. Best for featured offers.</li>+<li><a href="animations/04-micro-interactions/spotlight-hover/">Spotlight Hover Glow</a>: A soft glow follows the pointer and lights card edges. Best for feature grids.</li>+<li><a href="animations/04-micro-interactions/add-to-cart-fly/">Add-to-Cart Fly</a>: The product flies into the cart, which bumps and counts up. Best for shops.</li>+<li><a href="animations/04-micro-interactions/drag-to-reorder/">Drag to Reorder</a>: Drag an item and the others slide aside to make room. Best for to-do lists.</li>+<li><a href="animations/04-micro-interactions/rolling-numbers/">Rolling Numbers</a>: Each digit rolls to its new value, like a mileage counter. Best for prices.</li>+<li><a href="animations/04-micro-interactions/typing-indicator/">Typing Indicator</a>: Three dots in a chat bubble move in turn while someone types. Best for chat apps.</li>+<li><a href="animations/04-micro-interactions/hold-to-confirm/">Hold to Confirm</a>: A button fills up while you hold it and acts only once it is full. Best for delete buttons.</li>+<li><a href="animations/04-micro-interactions/expanding-search/">Expanding Search</a>: A search icon opens into a field, then closes when done. Best for toolbars.</li>+<li><a href="animations/04-micro-interactions/button-loading-states/">Button Loading States</a>: The button becomes a spinner, then a tick or a cross. Best for Save buttons.</li>+<li><a href="animations/04-micro-interactions/image-trail/">Image Trail</a>: Pictures pop up in a trail behind your pointer, then fade. Best for portfolios.</li>+<li><a href="animations/04-micro-interactions/gooey-menu/">Gooey Menu</a>: Small buttons ooze out of a round button like liquid. Best for quick actions.</li>+<li><a href="animations/04-micro-interactions/dynamic-island/">Dynamic Island</a>: A black pill grows into a notification, then shrinks back. Best for live updates.</li>+<li><a href="animations/04-micro-interactions/before-after-slider/">Before/After Slider</a>: Drag a line across two pictures to compare them. Best for photo edits.</li>+<li><a href="animations/04-micro-interactions/magnifier-lens/">Magnifier Lens</a>: A lens follows your pointer and shows the picture up close. Best for product photos.</li>+<li><a href="animations/04-micro-interactions/card-deck-swipe/">Card Deck Swipe</a>: Swipe the top card left or right; the next one rises. Best for quick choices.</li>+</ul>+<h3>Text & Typography</h3>+<ul>+<li><a href="animations/05-text-typography/kinetic-typography/">Kinetic Typography</a>: Words arrive and leave one by one, each moving its own way. Best for intros.</li>+<li><a href="animations/05-text-typography/typewriter-effect/">Typewriter Effect</a>: Text types itself out behind a blinking cursor. Best for short taglines.</li>+<li><a href="animations/05-text-typography/scramble-text/">Scramble / Glitch Text</a>: Random symbols lock into the real text, left to right. Best for tech headlines.</li>+<li><a href="animations/05-text-typography/variable-font-morph/">Variable Font Morph</a>: A word smoothly turns bold, then light, and leans over. Best for headlines.</li>+<li><a href="animations/05-text-typography/text-clip-path-reveal/">Text Clip-Path Reveal</a>: Each line of a headline is uncovered in turn. Best for big headlines.</li>+<li><a href="animations/05-text-typography/marquee-ticker/">Marquee / Ticker</a>: Text scrolls sideways in an endless loop, with no seam. Best for news tickers.</li>+<li><a href="animations/05-text-typography/text-morphing/">Text Morphing</a>: One word changes into the next, letter by letter. Best for short labels.</li>+<li><a href="animations/05-text-typography/text-gradient-animation/">Text Gradient Animation</a>: Colors flow through the letters while the text stays still. Best for headlines.</li>+<li><a href="animations/05-text-typography/outline-to-fill/">Outline to Fill</a>: Hollow letters fill with color, as a wipe or a fade. Best for big headlines.</li>+<li><a href="animations/05-text-typography/enter-exit-typography/">Enter/Exit Typography</a>: Each phrase comes in, stays long enough to read, then leaves. Best for slogans.</li>+<li><a href="animations/05-text-typography/rotate-word-carousel/">Rotate Word Carousel</a>: One word in a sentence keeps swapping for the next. Best for hero headlines.</li>+<li><a href="animations/05-text-typography/glitch-text/">Glitch Text</a>: Text tears into red and cyan strips like a broken signal. Best for bold titles.</li>+<li><a href="animations/05-text-typography/text-on-path/">Text on a Path</a>: Text travels along a wave, an arc or a circle. Best for badges and seals.</li>+<li><a href="animations/05-text-typography/wavy-text/">Wavy Text</a>: A wave rolls through the word, letter by letter. Best for playful titles.</li>+<li><a href="animations/05-text-typography/highlighter-sweep/">Highlighter Sweep</a>: A marker sweeps in behind the key words, one after another. Best for key points.</li>+<li><a href="animations/05-text-typography/split-flap-board/">Split-Flap Board</a>: Tiles flip through the letters to spell a word, like an airport board. Best for hero titles.</li>+<li><a href="animations/05-text-typography/neon-flicker/">Neon Flicker</a>: Glowing letters sputter now and then, like a worn neon sign. Best for night themes.</li>+<li><a href="animations/05-text-typography/handwriting-draw/">Handwriting Draw</a>: A word writes itself stroke by stroke, as if by a pen. Best for greetings and signatures.</li>+<li><a href="animations/05-text-typography/text-particles/">Text Particles</a>: A word of dots scatters from your pointer and springs back. Best for intros.</li>+</ul>+<h3>3D & Advanced</h3>+<ul>+<li><a href="animations/06-3d-advanced/3d-model-orbit/">3D Model Orbit</a>: A lit 3D shape spins, or turns to face your pointer. Best for product views.</li>+<li><a href="animations/06-3d-advanced/scroll-driven-3d-rotation/">Scroll-Driven 3D Rotation</a>: Scrolling turns a 3D cube from pose to pose. Best for product tours.</li>+<li><a href="animations/06-3d-advanced/parallax-3d-tilt/">Parallax 3D Tilt</a>: A card tilts toward your pointer, and a light slides over it. Best for cards.</li>+<li><a href="animations/06-3d-advanced/canvas-particle-effect/">Canvas Particle Effect</a>: Dots drift, link up when close, and dodge your pointer. Best for tech sites.</li>+<li><a href="animations/06-3d-advanced/fluid-simulation/">Fluid Simulation</a>: Blobs drift and melt into each other like liquid. Best for hero backgrounds.</li>+<li><a href="animations/06-3d-advanced/glassmorphism-animated/">Glassmorphism Animated</a>: Frosted glass cards blur the colors behind them. Best for cards and panels.</li>+<li><a href="animations/06-3d-advanced/webgl-shader-animation/">WebGL Shader Animation</a>: Moving color patterns computed for every pixel. Best for bold backgrounds.</li>+<li><a href="animations/06-3d-advanced/noise-based-motion/">Noise-Based Motion</a>: Smooth noise makes dots sway and a blob ripple. Best for calm backgrounds.</li>+<li><a href="animations/06-3d-advanced/svg-path-animation/">SVG Path Animation</a>: A line drawing draws itself, stroke by stroke. Best for icons and logos.</li>+<li><a href="animations/06-3d-advanced/chromatic-aberration/">Chromatic Aberration</a>: A word splits into red, green and blue fringes. Best for bold titles.</li>+<li><a href="animations/06-3d-advanced/2-5d-pseudo-3d/">2.5D / Pseudo-3D</a>: Flat layers slide by different amounts, faking depth. Best for hero scenes.</li>+<li><a href="animations/06-3d-advanced/ray-marching-sdf/">Ray Marching / SDF</a>: A 3D scene drawn only from formulas, circled by a camera. Best for art pages.</li>+<li><a href="animations/06-3d-advanced/gpgpu-particle-system/">GPGPU Particle System</a>: Tens of thousands of particles flow on the graphics chip. Best for hero effects.</li>+<li><a href="animations/06-3d-advanced/image-distortion-hover/">Image Distortion on Hover</a>: The picture ripples and bends around your pointer. Best for portfolio images.</li>+<li><a href="animations/06-3d-advanced/cloth-simulation/">Cloth Simulation</a>: A cloth sways in the wind, and you can drag it around. Best for playful pages.</li>+<li><a href="animations/06-3d-advanced/volumetric-smoke/">Volumetric Smoke</a>: Soft smoke curls upward, drawn as a real 3D cloud. Best for moody backgrounds.</li>+<li><a href="animations/06-3d-advanced/morphing-blob/">Morphing Blob</a>: Blobs melt together, and one drop chases your pointer. Best for hero sections.</li>+<li><a href="animations/06-3d-advanced/flip-card-3d/">3D Flip Card</a>: A card turns over in 3D to show its back. Best for profile and product cards.</li>+<li><a href="animations/06-3d-advanced/carousel-3d/">3D Carousel</a>: Cards stand in a ring that spins in 3D as you drag it. Best for image galleries.</li>+<li><a href="animations/06-3d-advanced/depth-map-photo/">Depth-Map Photo</a>: A flat photo turns 3D as you point: near parts shift more. Best for hero images.</li>+<li><a href="animations/06-3d-advanced/flocking/">Flocking</a>: Birds swirl and turn together as one flock. Best for calm backgrounds.</li>+<li><a href="animations/06-3d-advanced/ascii-halftone/">ASCII / Halftone</a>: A moving picture is redrawn with letters or dots. Best for retro and tech looks.</li>+<li><a href="animations/06-3d-advanced/physics-2d/">2D Physics</a>: Balls drop where you click, bounce and pile up. Best for playful intros.</li>+<li><a href="animations/06-3d-advanced/liquid-glass/">Liquid Glass</a>: Drag a glass panel and the picture behind it bends at the edges. Best for cards.</li>+<li><a href="animations/06-3d-advanced/holographic-card/">Holographic Card</a>: A card tilts as you point, and its rainbow foil shimmers. Best for collectibles.</li>+<li><a href="animations/06-3d-advanced/infinite-zoom/">Infinite Zoom</a>: The view keeps zooming into pictures inside pictures. Best for page intros.</li>+<li><a href="animations/06-3d-advanced/water-ripple/">Water Ripple</a>: Ripples spread from your finger and bend the picture below. Best for hero images.</li>+<li><a href="animations/06-3d-advanced/audio-visualizer/">Audio Visualizer</a>: Bars dance to the music, from bass to treble. Best for music players.</li>+</ul>+<h3>Ambient & Background</h3>+<ul>+<li><a href="animations/07-ambient-background/animated-gradient-background/">Animated Gradient Background</a>: Colors slowly drift across a soft gradient background. Best for hero sections.</li>+<li><a href="animations/07-ambient-background/mesh-gradient/">Mesh Gradient Animation</a>: Blurred blobs of color drift and melt together. Best for landing pages.</li>+<li><a href="animations/07-ambient-background/aurora/">Aurora / Northern Lights</a>: Blurred bands of light sway like the northern lights. Best for dark backgrounds.</li>+<li><a href="animations/07-ambient-background/grain-overlay/">Grain / Film Noise Overlay</a>: Fine grain flickers over the page, like old film. Best for editorial sites.</li>+<li><a href="animations/07-ambient-background/scanline/">Scanline Effect</a>: Dark lines and a sweeping beam imitate an old TV screen. Best for retro sites.</li>+<li><a href="animations/07-ambient-background/light-leak/">Light Leak</a>: Warm light washes in from a corner at random times. Best for photo sites.</li>+<li><a href="animations/07-ambient-background/starfield/">Starfield / Space Particles</a>: Stars stream toward you out of the dark. Best for space themes.</li>+<li><a href="animations/07-ambient-background/breathing-glow/">Breathing / Pulsing Glow</a>: A soft glow slowly grows and shrinks, like calm breathing. Best for idle states.</li>+<li><a href="animations/07-ambient-background/ambient-ripple/">Ambient Ripple Effect</a>: Rings spread from a few spots, like drops on a still pond. Best for hero areas.</li>+<li><a href="animations/07-ambient-background/floating-elements/">Floating Elements</a>: Small shapes drift slowly, each on its own path. Best for hero backgrounds.</li>+<li><a href="animations/07-ambient-background/grid-dot-pattern-parallax/">Grid / Dot Pattern Parallax</a>: A dot grid shifts gently against your pointer for depth. Best for tech sites.</li>+<li><a href="animations/07-ambient-background/abstract-geometric-motion/">Abstract Geometric Motion</a>: Shapes turn, spread and flow in a calm, endless pattern. Best for music players.</li>+<li><a href="animations/07-ambient-background/particle-constellation/">Particle Constellation</a>: Drifting dots link up with lines whenever they come close. Best for tech sites.</li>+<li><a href="animations/07-ambient-background/flow-field/">Flow Field</a>: Particles ride invisible currents, leaving fading trails. Best for art pages.</li>+<li><a href="animations/07-ambient-background/synthwave-grid/">Synthwave Grid</a>: A glowing grid rolls toward you under a striped sun. Best for music and games.</li>+<li><a href="animations/07-ambient-background/matrix-rain/">Matrix Rain</a>: Columns of glowing characters rain down a dark screen. Best for tech themes.</li>+<li><a href="animations/07-ambient-background/plasma/">Plasma Field</a>: Smooth waves of color flow endlessly, made from math. Best for creative sites.</li>+<li><a href="animations/07-ambient-background/wave-layers/">Wave Layers</a>: Layers of waves drift sideways, each at its own speed. Best for hero sections.</li>+<li><a href="animations/07-ambient-background/snow-rain/">Snow / Rain</a>: Snow drifts down, or rain falls in streaks, over a dark town. Best for seasonal pages.</li>+<li><a href="animations/07-ambient-background/fireworks/">Fireworks</a>: Rockets rise and burst into glowing sparks that fall and fade. Best for celebrations.</li>+<li><a href="animations/07-ambient-background/topographic-lines/">Topographic Lines</a>: Lines like those on a hiking map slowly bend and drift. Best for outdoor brands.</li>+<li><a href="animations/07-ambient-background/light-rays/">Light Rays</a>: Soft beams of light fall from above and slowly sweep across. Best for hero intros.</li>+<li><a href="animations/07-ambient-background/game-of-life/">Game of Life</a>: Cells live and die by their neighbors, and patterns grow. Best for tech sites.</li>+<li><a href="animations/07-ambient-background/ken-burns/">Ken Burns Effect</a>: Photos slowly zoom and pan, then fade into the next. Best for hero slideshows.</li>+<li><a href="animations/07-ambient-background/fire-effect/">Fire Effect</a>: Flames flicker and rise as heat climbs and cools. Best for game and event pages.</li>+<li><a href="animations/07-ambient-background/lightning/">Lightning</a>: Jagged bolts strike from the clouds and light up the sky. Best for dramatic intros.</li>+</ul>+<!-- /plain-links -->+ </div></noscript></section><section class="wrap fam" aria-labelledby="fam-title">diff --git a/tests/pages.test.js b/tests/pages.test.jsindex c312c1e0..41e124bd 100644--- a/tests/pages.test.js+++ b/tests/pages.test.js@@ -890,6 +890,18 @@ test('the counts written in the root README match the cards', () => {}});+// Without JavaScript the home page draws no cards, so every animation is also there as a plain link, for visitors and for+// crawlers that run no script. tools/update-sitemap.mjs writes the list from the cards, between two comment lines.+test('the no-JavaScript list links every animation once, in home order, under its group and with its line', () => {+ const START = '<!-- plain-links: written by tools/update-sitemap.mjs from the cards; not by hand -->', END = '<!-- /plain-links -->';+ const noscript = between(HOME, '<noscript>', '</noscript>');+ assert.ok(noscript.includes(START) && noscript.includes(END), 'the list sits inside the noscript block, between its two comment lines');+ const esc = s => s.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');+ const expected = homeConst('CATS').map(cat => `<h3>${esc(cat.name)}</h3>\n<ul>\n` ++ cat.entries.map(([slug, name, desc]) => `<li><a href="${cat.folder}/${slug}/">${esc(name)}</a>: ${esc(desc)}</li>`).join('\n') + '\n</ul>').join('\n');+ assert.equal(between(HOME, START, END).slice(START.length).replace(/\r\n/g, '\n').trim(), expected);+});+test('the counts written in the issue template, the 404 page and the sitemap match the cards', () => {const cards = totalCards();const template = read(path.join(ROOT, '.github/ISSUE_TEMPLATE/config.yml'));diff --git a/tools/update-sitemap.mjs b/tools/update-sitemap.mjsindex bc74329a..b5895a81 100644--- a/tools/update-sitemap.mjs+++ b/tools/update-sitemap.mjs@@ -1,6 +1,6 @@#!/usr/bin/env node-// 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.+// Writes sitemap.xml, and the home page's plain list of links, 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 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@@ -56,6 +56,23 @@ if (missing.length) { console.error(`cards with no page: ${missing.join(', ')}`)const FAMOUS = 'famous/';if (!existsSync(join(ROOT, FAMOUS, 'index.html'))) { console.error('famous/ has no index.html'); process.exit(1); }+// The home page's plain list of links: every card as a link under its group's name, with its line, inside the <noscript>+// block, for visitors and crawlers that run no script (the cards themselves are drawn by the page's script). It is written+// between its two comment lines before the dates are read, so a list that changed dates the home page today. Not with --out.+const escape = s => s.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');+const LIST_START = '<!-- plain-links: written by tools/update-sitemap.mjs from the cards; not by hand -->', LIST_END = '<!-- /plain-links -->';+const listAt = HOME.indexOf(LIST_START), listEnd = HOME.indexOf(LIST_END, listAt);+if (listAt < 0 || listEnd < 0) { console.error('index.html has no plain-links comment lines'); process.exit(1); }+const HOME_EOL = HOME.includes('\r\n') ? '\r\n' : '\n';+const list = CATS.map(cat => [`<h3>${escape(cat.name)}</h3>`, '<ul>',+ ...cat.entries.map(([slug, name, desc]) => `<li><a href="${cat.folder.replace(/\/$/, '')}/${slug}/">${escape(name)}</a>: ${escape(desc)}</li>`),+ '</ul>'].join(HOME_EOL)).join(HOME_EOL);+const withList = HOME.slice(0, listAt + LIST_START.length) + HOME_EOL + list + HOME_EOL + HOME.slice(listEnd);+if (outAt < 0) {+ if (withList !== HOME) writeFileSync(join(ROOT, 'index.html'), withList);+ console.log(`index.html: ${pages.length} plain links, ${withList === HOME ? 'as they were' : 'written again'}`);+}+const now = new Date();const TODAY = [now.getFullYear(), now.getMonth() + 1, now.getDate()].map(n => String(n).padStart(2, '0')).join('-');let changed;@@ -89,7 +106,6 @@ const homeDate = (await datesOf(['index.html', 'assets/js/demo-page.js', 'assets'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">',