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
fix: Famous effects entries 1 to 6 say what the live check saw (Stripe's strands, the headset two thirds down the page, the pointer across his head, a link or button below the Linear line, the Wikipedia article), the headset shows Scrub Animation, and a test keeps every site's names and slogans off the page and every checked entry dated 2026-10-13
matin9cb94e6059c3
diff --git a/famous/index.html b/famous/index.htmlindex 5c540eb5..e2499886 100644--- a/famous/index.html+++ b/famous/index.html@@ -212,7 +212,7 @@ button{font:inherit;color:inherit}.pv-shader{background:#05080a;overflow:hidden}.pv-shader .p{position:absolute;inset:-30%;background:radial-gradient(circle at 30% 30%,var(--accent),transparent 45%),radial-gradient(circle at 70% 60%,var(--c3),transparent 45%),radial-gradient(circle at 50% 80%,var(--c1),transparent 45%);filter:blur(10px);mix-blend-mode:screen;animation:d-shader 9s linear infinite}@keyframes d-shader{0%{transform:rotate(0) scale(1.25)}100%{transform:rotate(360deg) scale(1.25)}}-/* scrub: Scroll Image Sequence */+/* scrub: Scrub Animation */.pv-scrub{background:#08090c;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}.pv-scrub .knob{width:26%;max-width:44px;aspect-ratio:1;border-radius:7px;border:1px solid var(--accent);animation:scrubr 2.6s ease-in-out infinite alternate}.pv-scrub .track{position:relative;width:62%;height:6px;border-radius:3px;background:#20242c;overflow:hidden}@@ -332,7 +332,7 @@ button{font:inherit;color:inherit}<section class="fx" id="stripe-ribbon" aria-labelledby="stripe-ribbon-t" data-fx-site="Stripe" data-fx-start="loop"><p class="fx-seen">Seen on <a href="https://stripe.com/" target="_blank" rel="noopener">stripe.com<span class="sr"> (opens in a new tab)</span></a> in <time datetime="2026-10-13">2026</time></p><h2 id="stripe-ribbon-t" tabindex="-1">The twisting ribbon of light</h2>- <p class="fx-what">Behind the headline, a thick ribbon of glowing color slowly twists in depth, sharp in places and blurred in others, as if filmed by a camera, under a fine grain. From 2020 to 2025 the same place held a flat band of blended colors that flowed like slow paint, the look <a href="../animations/07-ambient-background/mesh-gradient/">Mesh Gradient Animation</a> makes.</p>+ <p class="fx-what">Behind the headline, a wide ribbon made of fine strands of glowing color slowly twists in depth, some strands sharp and others soft, as if filmed by a camera, under a fine grain. Before 2026 the same place held a flat band of blended colors that flowed like slow paint, the look <a href="../animations/07-ambient-background/mesh-gradient/">Mesh Gradient Animation</a> makes.</p><h3 class="fx-sub">Made with these animations</h3><div class="fx-cards"><article class="card c7" data-slug="aurora"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">The soft light</span></div><div class="meta"><h4 class="title"><a href="../animations/07-ambient-background/aurora/">Aurora / Northern Lights</a></h4><p class="desc">Blurred bands of light sway like the northern lights. Best for dark backgrounds.</p></div></article>@@ -340,28 +340,28 @@ button{font:inherit;color:inherit}<article class="card c6" data-slug="webgl-shader-animation"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">On the chip</span></div><div class="meta"><h4 class="title"><a href="../animations/06-3d-advanced/webgl-shader-animation/">WebGL Shader Animation</a></h4><p class="desc">Moving color patterns computed for every pixel. Best for bold backgrounds.</p></div></article></div><h3 class="fx-sub">A prompt to build something similar</h3>- <div class="fx-pbox"><p class="fx-prompt">Add a slowly twisting ribbon of colored light behind <mark>[the heading at the top of your page]</mark>. Draw one thick, soft band in three or four of your own colors that drifts and turns in depth, so parts of it come into sharp focus while others blur, like a camera with a shallow focus, and lay a fine grain over it so the colors feel printed rather than flat. Keep the movement slow and the heading readable on every color it passes. Draw it on the graphics chip, show a still picture of it until it is ready, and pause it when it is off screen. On phones, draw a lighter version. If the visitor has reduced motion turned on, show the still picture.</p></div>+ <div class="fx-pbox"><p class="fx-prompt">Add a slowly twisting ribbon of colored light behind <mark>[the heading at the top of your page]</mark>. Draw one wide ribbon of fine strands in three or four of your own colors that drifts and turns in depth, so some strands come into sharp focus while others blur, like a camera with a shallow focus, and lay a fine grain over it so the colors feel printed rather than flat. Keep the movement slow and the heading readable on every color it passes. Draw it on the graphics chip, show a still picture of it until it is ready, and pause it when it is off screen. On phones, draw a lighter version. If the visitor has reduced motion turned on, show the still picture.</p></div><button type="button" class="copy" aria-label="Copy prompt for The twisting ribbon of light"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/></svg><span class="copy-l" aria-live="polite">Copy prompt</span></button></section><section class="fx" id="apple-scroll" aria-labelledby="apple-scroll-t" data-fx-site="Apple" data-fx-start="scroll"><p class="fx-seen">Seen on <a href="https://www.apple.com/apple-vision-pro/" target="_blank" rel="noopener">apple.com/apple-vision-pro<span class="sr"> (opens in a new tab)</span></a> in <time datetime="2026-10-13">2026</time></p><h2 id="apple-scroll-t" tabindex="-1">The headset that comes apart as you scroll</h2>- <p class="fx-what">The headset stays in the middle of the screen while you scroll: its parts rise out of it layer by layer, then it tips up to show its lenses, and scrolling back puts it together. Then a short headline and a paragraph about the part on screen scroll up under it.</p>+ <p class="fx-what">About two thirds of the way down the page, the headset stays in the middle of the screen while you scroll: its parts rise out of it layer by layer, then it tips up to show its lenses, and scrolling back puts it together.</p><h3 class="fx-sub">Made with these animations</h3><div class="fx-cards">- <article class="card c1" data-slug="scroll-image-sequence"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">Scroll plays it</span></div><div class="meta"><h4 class="title"><a href="../animations/01-scroll-based/scroll-image-sequence/">Scroll Image Sequence</a></h4><p class="desc">Scrolling plays a series of pictures like a flip-book. Best for products.</p></div></article>+ <article class="card c1" data-slug="scrub-animation"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">Scroll plays it</span></div><div class="meta"><h4 class="title"><a href="../animations/01-scroll-based/scrub-animation/">Scrub Animation</a></h4><p class="desc">Scroll plays it forward and back, like dragging a video. Best for product tours.</p></div></article><article class="card c1" data-slug="pin-animation"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">It stays put</span></div><div class="meta"><h4 class="title"><a href="../animations/01-scroll-based/pin-animation/">Pin Animation</a></h4><p class="desc">One part stays put while its text changes on scroll. Best for feature lists.</p></div></article></div><h3 class="fx-sub">A prompt to build something similar</h3>- <div class="fx-pbox"><p class="fx-prompt">Add a scroll-driven product reveal to <mark>[your product section]</mark>. Pin the product in the middle of the screen while the visitor scrolls through a section a few screens tall, and let the scroll play a short video or a series of pictures of it, so it turns or comes apart as they scroll down and goes back together as they scroll up. Then let a short headline and a paragraph about the part on screen scroll up under it. Show a still picture until the video or pictures are ready, and give the product a text description for screen readers. Touch scrolling drives it the same way. If the visitor has reduced motion turned on, show a few still pictures with their text instead.</p></div>+ <div class="fx-pbox"><p class="fx-prompt">Add a scroll-driven product reveal to <mark>[your product section]</mark>. Pin the product in the middle of the screen while the visitor scrolls through a section a few screens tall, and let the scroll play a short video or a series of pictures of it, so it turns or comes apart as they scroll down and goes back together as they scroll up. Let a short headline and a paragraph about each part scroll by as usual. Show a still picture until the video or pictures are ready, and give the product a text description for screen readers. Touch scrolling drives it the same way. If the visitor has reduced motion turned on, show a few still pictures with their text instead.</p></div><button type="button" class="copy" aria-label="Copy prompt for The headset that comes apart as you scroll"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/></svg><span class="copy-l" aria-live="polite">Copy prompt</span></button></section><section class="fx" id="landonorris-reveal" aria-labelledby="landonorris-reveal-t" data-fx-site="Lando Norris" data-fx-start="hover"><p class="fx-seen">Seen on <a href="https://landonorris.com/" target="_blank" rel="noopener">landonorris.com<span class="sr"> (opens in a new tab)</span></a> in <time datetime="2026-10-13">2026</time></p><h2 id="landonorris-reveal-t" tabindex="-1">The liquid reveal under the pointer</h2>- <p class="fx-what">A large portrait stands in the middle of the screen. Wherever the pointer goes, a soft, liquid-looking blob shows a second picture through it, his racing helmet, as if the portrait were being wiped away.</p>+ <p class="fx-what">A large portrait stands in the middle of the screen. Wherever the pointer moves across his head, a soft, liquid-looking blob shows a second picture through it, his racing helmet, as if the portrait were being wiped away.</p><h3 class="fx-sub">Made with these animations</h3><div class="fx-cards"><article class="card c4" data-slug="cursor-follower"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">Follows the pointer</span></div><div class="meta"><h4 class="title"><a href="../animations/04-micro-interactions/cursor-follower/">Cursor Follower</a></h4><p class="desc">A dot trails your pointer and flips the colors under it. Best for portfolios.</p></div></article>@@ -384,7 +384,7 @@ button{font:inherit;color:inherit}<article class="card c1" data-slug="stagger-reveal"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">Part after part</span></div><div class="meta"><h4 class="title"><a href="../animations/01-scroll-based/stagger-reveal/">Stagger Reveal</a></h4><p class="desc">Items in a group appear one after another as it scrolls in. Best for card grids.</p></div></article></div><h3 class="fx-sub">A prompt to build something similar</h3>- <div class="fx-pbox"><p class="fx-prompt">Add a focus-in opening to <mark>[the headline, the line under it and the main picture at the top of your page]</mark>. As the page opens, show the headline line by line, each line fading in while it rises a little and sharpens out of a soft blur; then let the line under it and a small link follow the same way, and fade the main picture in last. Keep each step short, so the whole opening is over in about a second and nobody waits to read. Animate only fading, blur and small moves, and use less blur on phones, where it costs more. If the visitor has reduced motion turned on, show everything at once.</p></div>+ <div class="fx-pbox"><p class="fx-prompt">Add a focus-in opening to <mark>[the headline, the line under it and the main picture at the top of your page]</mark>. As the page opens, show the headline line by line, each line fading in while it rises a little and sharpens out of a soft blur; then let the line under it, and any small link or button below, follow the same way, and fade the main picture in last. Keep each step short, so the whole opening is over in about a second and nobody waits to read. Animate only fading, blur and small moves, and use less blur on phones, where it costs more. If the visitor has reduced motion turned on, show everything at once.</p></div><button type="button" class="copy" aria-label="Copy prompt for The headline that comes into focus"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/></svg><span class="copy-l" aria-live="polite">Copy prompt</span></button></section>@@ -404,9 +404,9 @@ button{font:inherit;color:inherit}</section><section class="fx" id="wikipedia-previews" aria-labelledby="wikipedia-previews-t" data-fx-site="Wikipedia" data-fx-start="hover">- <p class="fx-seen">Seen on <a href="https://www.wikipedia.org/" target="_blank" rel="noopener">wikipedia.org<span class="sr"> (opens in a new tab)</span></a> in <time datetime="2026-10-13">2026</time></p>+ <p class="fx-seen">Seen on <a href="https://en.wikipedia.org/wiki/Animation" target="_blank" rel="noopener">en.wikipedia.org/wiki/Animation<span class="sr"> (opens in a new tab)</span></a> in <time datetime="2026-10-13">2026</time></p><h2 id="wikipedia-previews-t" tabindex="-1">Link previews</h2>- <p class="fx-what">Rest the pointer on a link and, after a short pause, a small card with the linked article's first lines and picture fades in under the link, rising slightly into place; move away and it fades out.</p>+ <p class="fx-what">On any article, rest the pointer on a link and, after a short pause, a small card with the linked article's first lines and picture fades in under the link, rising slightly into place; move away and it fades out.</p><h3 class="fx-sub">Made with these animations</h3><div class="fx-cards"><article class="card c4" data-slug="tooltip-reveal"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">The pause</span></div><div class="meta"><h4 class="title"><a href="../animations/04-micro-interactions/tooltip-reveal/">Tooltip Reveal</a></h4><p class="desc">A small label fades in after a short pause. Best for icon buttons.</p></div></article>@@ -461,7 +461,7 @@ const PREVIEWS={"aurora":{"pv":"aurora","still":0.5,"markup":"<span class=\"band b1 anim\"><\/span><span class=\"band b2 anim\"><\/span><span class=\"band b3 anim\"><\/span>"},"grain-overlay":{"pv":"grain2","still":0.5,"markup":"<span class=\"g anim\"><\/span>"},"webgl-shader-animation":{"pv":"shader","still":0.5,"markup":"<span class=\"p anim\"><\/span>"},-"scroll-image-sequence":{"pv":"scrub","still":0.5,"markup":"<span class=\"knob anim\"><\/span><span class=\"track\"><span class=\"fill anim\"><\/span><\/span>"},+"scrub-animation":{"pv":"scrub","still":0.5,"markup":"<span class=\"knob anim\"><\/span><span class=\"track\"><span class=\"fill anim\"><\/span><\/span>"},"pin-animation":{"pv":"pin","still":0.5,"markup":"<div class=\"bg anim\"><b><\/b><b><\/b><b><\/b><b><\/b><b><\/b><b><\/b><b><\/b><b><\/b><\/div><span class=\"box\"><\/span>"},"cursor-follower":{"pv":"cursor","still":0.5,"markup":"<span class=\"tgt anim\"><\/span><span class=\"foll anim\"><\/span>"},"morphing-blob":{"pv":"mesh","still":0.5,"markup":"<span class=\"m m1 anim\"><\/span><span class=\"m m2 anim\"><\/span><span class=\"m m3 anim\"><\/span>"},diff --git a/tests/famous.test.js b/tests/famous.test.jsindex 0cb1fb0d..c3ee0cec 100644--- a/tests/famous.test.js+++ b/tests/famous.test.js@@ -351,3 +351,34 @@ test('no company name in the page\'s title, description or social card, and no wconst shown = textOf(MARKUP.replace(`<p class="fx-legal">${LEGAL}</p>`, ''));assert.ok(!/\b(official|officially|approved|endorsed|sponsored|partner|partners|as used by)\b/i.test(shown), 'no word that implies approval');});++// ---------- What the live check settled ----------+// The names and slogans the live check saw on the sites (its record is in the run folder, not in the repository). The page+// describes each effect in its own words, so none of them is on it. Whole phrases, in any case.+const SITE_PHRASES = [+ 'Financial infrastructure to grow your revenue', 'Global GDP running on Stripe', 'Innovation you can see, hear, and feel',+ 'Pushing boundaries from the inside out', 'More pixels than a 4K TV', 'Spatial Audio', 'spatial computing', 'micro-OLED', 'McLaren',+ 'Redefining limits', 'Defining a legacy', 'The product development system for teams and agents', 'Purpose-built for planning',+ 'Designed for the AI era', 'New · Loops', 'HomeView', 'Designed for life at home', 'Shop Special Stores', 'Page Previews',+ 'Music for everyone', 'Preview of Spotify', 'Your YouTube history is off', 'In pursuit of democracy', 'Each dot represents',+ 'Bright dots are ones', 'Keep scrolling or Skip to next', 'To make Medium work', 'Welcome to the mother chip', 'Pro further', 'A20 Pro'+];+// The entries the live check covered, and the day it checked them (entries 7 and 8 get their day at the owner's review).+const CHECKED_IDS = ['stripe-ribbon', 'apple-scroll', 'landonorris-reveal', 'linear-intro', 'apple-menu', 'wikipedia-previews', 'spotify-cards', 'youtube-loading', 'pudding-chart', 'medium-top-bar'];+const CHECKED_DAY = '2026-10-13';++// The text a visitor reads, with each tag ending a word (textOf above joins the end of one element to the start of the next, so a+// slogan at the end of a card label would run into the card's name and go unseen).+const spaced = html => decode(html.replace(/<[^>]*>/g, ' ')).replace(/\s+/g, ' ').trim();++test('no visible text of the page holds a name or slogan the live check saw on a site', () => {+ const shown = spaced(MARKUP);+ assert.ok(shown.includes('Famous effects') && shown.length > 1000, 'the visible text of the whole page');+ for (const phrase of SITE_PHRASES) assert.ok(!names(shown, phrase), `"${phrase}" is in the text of the page`);+});++test(`each entry the live check covered is dated ${CHECKED_DAY}, the day it was checked`, () => {+ const present = ENTRIES.filter(e => CHECKED_IDS.includes(e.id));+ assert.ok(present.length > 0, 'the page holds some of the checked entries');+ for (const e of present) assert.ok(e.body.includes(`<time datetime="${CHECKED_DAY}">`), `${e.id}: not dated ${CHECKED_DAY}`);+});