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: our version of the menu that drops in, link by link (checked on its site 2026-10-22); review fixes: versions that do not scroll leave the wheel to the pop-up, the ribbon caps its canvas, the reveal's trail keeps 60 Hz steps and shows its focus ring, a runtime reduced-motion change never resumes a pause, and the page reads reduced motion live
matinc9f49d1f0fb3
diff --git a/CLAUDE.md b/CLAUDE.mdindex 3915f35e..6b7e2e77 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -292,7 +292,7 @@ entry; "Watch the real one on <host> ↗". Copy a neighbor entry's markup and ti**Our version** (`famous/versions/<id>.html`) is a self-contained page of under about 300 lines, loaded in the stage onlywhile its pop-up is open: `noindex`, only the site font loaded, and the demo rules of this file (fluid down to 280px, 44pxtargets, keyboard and touch, transform and opacity, frame loops by elapsed time, a lighter version when the parent page is a-phone, reduced motion as its prompt says, `overscroll-behavior: contain`). It does everything its prompt says and moves as+phone, reduced motion as its prompt says, `overscroll-behavior: contain` on its own scroller and nowhere else). It does everything its prompt says and moves asclose to the real effect as it can (the same steps, order, timing and distances), while all you see in it is ours: shapes,pictures, words and the handbook palette. It obeys only its parent's messages `{fx: 'pause' | 'play' | 'replay' | 'show' |'top'}` and runs its arrival once on load (a loop runs, a load plays, Show me or Play is pressed once), never under reduceddiff --git a/famous/index.html b/famous/index.htmlindex 4216c7cc..70afb80c 100644--- a/famous/index.html+++ b/famous/index.html@@ -256,11 +256,11 @@ button{font:inherit;color:inherit}.v-lens .fa i{background:radial-gradient(circle at 36% 30%,#4b5c93,#10142a 62%);box-shadow:inset 0 0 0 calc(var(--u) * .08) rgba(63,214,196,.6)}.v-lens .fb i{background:radial-gradient(circle closest-side,#fff 0 20%,#0e1226 20% 38%,var(--c3) 38% 50%,#0e1226 50% 63%,var(--c1) 63% 75%,#0e1226 75% 88%,var(--c6) 88%)}-/* the liquid reveal: the night picture, and a soft window onto the same scene by day; the day picture is moved the other way, so it stays put */+/* the liquid reveal: the night picture, and a crisp-edged blob with a short tail that shows the same scene by day; the day picture is moved the other way, so it stays put */.gp-reveal{background:#0a0a1c}.rv-a,.rv-b{position:absolute;left:0;top:0;width:100cqw;height:100cqh;overflow:hidden;background:var(--sky)}.rv-a{--sky:linear-gradient(180deg,#0b0a22,#1c1952 42%,#432f82 72%);--o1:#f8f3ff;--o2:#c9b9ff;--far:#2b2870;--near:#14123a;--tree:#0b0922}-.rv-b{--sky:linear-gradient(180deg,var(--c5),var(--c4) 42%,#ffd873 72%);--o1:#fffbe3;--o2:var(--c7);--far:#2cb5a3;--near:#14867d;--tree:#0b524f;transform:translate(-40cqw,-19cqh)}+.rv-b{--sky:linear-gradient(180deg,var(--c5),var(--c4) 42%,#ffd873 72%);--o1:#fffbe3;--o2:var(--c7);--far:#2cb5a3;--near:#14867d;--tree:#0b524f;transform:translate(-31cqw,-17.2cqh)}.rv-o{left:56cqw;top:9cqh;width:17cqw;height:17cqw;border-radius:50%;background:radial-gradient(circle at 40% 35%,var(--o1),var(--o2))}.rv-f{left:-24cqw;top:47cqh;width:86cqw;height:60cqh;border-radius:50%;background:var(--far)}.rv-g{left:30cqw;top:52cqh;width:90cqw;height:60cqh;border-radius:50%;background:var(--far)}@@ -269,7 +269,7 @@ button{font:inherit;color:inherit}.rv-t.t2{left:87cqw;top:53cqh;height:15cqw}.rv-t.t3{left:9cqw;top:60cqh}.rv-n{left:-10cqw;top:76cqh;width:120cqw;height:60cqh;border-radius:50%;background:var(--near)}-.rv-blob{position:absolute;left:0;top:0;width:36cqw;height:28cqw;transform:translate(40cqw,19cqh);-webkit-mask-image:radial-gradient(ellipse closest-side,#000 86%,transparent);mask-image:radial-gradient(ellipse closest-side,#000 86%,transparent)}+.rv-blob{position:absolute;left:0;top:0;width:44cqw;height:26cqw;transform:translate(31cqw,17.2cqh);clip-path:polygon(56.7% 7.5%,59.3% 5.4%,62.1% 3.7%,64.9% 2.4%,67.8% 1.7%,70.8% 1.5%,73.7% 1.9%,76.6% 2.7%,79.4% 4.0%,82.2% 5.8%,84.8% 8.0%,87.2% 10.7%,89.5% 13.9%,91.6% 17.3%,93.5% 21.2%,95.1% 25.3%,96.5% 29.7%,97.6% 34.3%,98.4% 39.1%,98.9% 44.0%,99.1% 49.0%,99.0% 53.9%,98.6% 58.9%,97.9% 63.7%,97.0% 68.4%,95.7% 72.9%,94.2% 77.1%,92.4% 81.1%,90.4% 84.7%,88.2% 88.0%,85.8% 90.9%,83.3% 93.3%,80.6% 95.3%,77.8% 96.8%,74.9% 97.9%,72.0% 98.4%,69.1% 98.4%,66.1% 97.9%,63.3% 96.9%,60.5% 95.4%,54.9% 90.4%,49.3% 85.5%,43.6% 80.8%,37.9% 76.5%,32.1% 72.6%,26.2% 69.1%,20.2% 66.0%,14.1% 63.3%,8.0% 60.8%,1.8% 58.5%,7.7% 54.6%,13.6% 50.7%,19.3% 46.5%,25.0% 41.9%,30.6% 37.0%,36.0% 31.7%,41.3% 26.1%,46.5% 20.1%,51.6% 13.9%)}/* the headline that comes into focus: two bars for the headline and a thin one under them, two buttons and the top of an app window. Each bar is a sharp bar over a soft copy of itself;the copy fades out as the bar fades in, which reads as coming into focus. At rest the later parts are fainter, as if caught half way in. */@@ -289,18 +289,25 @@ button{font:inherit;color:inherit}/* the menu that opens: its button turns into an X while the links drop in */.gp-menu{background:radial-gradient(80% 100% at 50% 20%,#12162a,#08080a 70%)}-.mn-bar{position:absolute;left:8cqw;right:8cqw;top:22cqh;height:15cqh;border-radius:999px;background:#171a25;border:1px solid #2a2f40}-.mn-dot{left:4cqw;top:50%;width:5cqw;height:5cqw;margin-top:-2.5cqw;border-radius:50%;background:var(--c1)}-.mn-btn{position:absolute;right:4.4cqw;top:50%;width:6cqw;height:4.4cqw;margin-top:-2.2cqw}+.mn-pg i{top:56cqh;width:28cqw;height:52cqh;border-radius:2cqw;opacity:.85;background:linear-gradient(150deg,var(--a),var(--b))}+.mn-pg i:nth-child(1){left:6cqw;--a:var(--c1);--b:var(--c3)}+.mn-pg i:nth-child(2){left:36cqw;--a:var(--c4);--b:var(--c5)}+.mn-pg i:nth-child(3){left:66cqw;--a:var(--c6);--b:var(--c2)}+.mn-bar{position:absolute;left:0;right:0;top:21cqh;height:15cqh;border-bottom:1px solid rgba(255,255,255,.08)}+.mn-dot{left:5cqw;top:50%;width:4.6cqw;height:4.6cqw;margin-top:-2.3cqw;border-radius:50%;background:linear-gradient(135deg,var(--c1),var(--c3))}+.mn-dot::after{content:"";position:absolute;left:calc(100% + 1.6cqw);top:50%;width:13cqw;height:1.6cqw;margin-top:-.8cqw;border-radius:1cqw;background:#e9ebf3}+.mn-btn{position:absolute;right:5cqw;top:50%;width:6cqw;height:4.4cqw;margin-top:-2.2cqw}.mn-btn i{left:0;right:0;height:.8cqw;min-height:2px;border-radius:2px;background:#e9ebf3}.mn-btn i:nth-child(1){top:0;transform:translateY(1.8cqw) rotate(45deg)}.mn-btn i:nth-child(2){top:50%;margin-top:-.4cqw;opacity:0}.mn-btn i:nth-child(3){bottom:0;transform:translateY(-1.8cqw) rotate(-45deg)}-.mn-panel{position:absolute;left:8cqw;right:8cqw;top:41cqh;bottom:6cqh;border-radius:2.6cqw;background:#12141d;border:1px solid #232838}-.mn-panel i{left:6cqw;height:5.6cqh;border-radius:1cqh;background:#cdd2e0}-.mn-panel i:nth-child(1){top:6cqh;width:42cqw}-.mn-panel i:nth-child(2){top:19cqh;width:30cqw}-.mn-panel i:nth-child(3){top:32cqh;width:36cqw}+.mn-panel{position:absolute;left:0;right:0;top:36cqh;bottom:0;background:rgba(12,13,19,.88)}+.mn-panel i{left:6cqw;height:4.2cqh;border-radius:.9cqh;background:#e9ebf3}+.mn-panel i:nth-child(1){top:4.5cqh;width:30cqw}+.mn-panel i:nth-child(2){top:16cqh;width:22cqw}+.mn-panel i:nth-child(3){top:27.5cqh;width:27cqw}+.mn-panel i:nth-child(4){top:39cqh;width:20cqw;--d:.42s}+.mn-panel i:nth-child(5){top:50.5cqh;width:24cqw;--d:.56s}/* link previews: a pointer rests on a link and a small card rises above it */.gp-wiki{background:radial-gradient(80% 90% at 60% 70%,#111627,#08080a 72%)}@@ -405,8 +412,8 @@ button{font:inherit;color:inherit}@keyframes g-lift{0%,26%{transform:translateZ(calc(var(--u) * var(--z1)))}44%{transform:translateZ(calc(var(--u) * var(--z1)))}70%,100%{transform:translateZ(calc(var(--u) * var(--z0)))}}@keyframes g-away{0%,24%{opacity:1;transform:translateZ(calc(var(--u) * var(--z1)))}44%{opacity:1;transform:translateZ(calc(var(--u) * var(--z2)))}46%,100%{opacity:0;transform:translateZ(calc(var(--u) * var(--z2)))}}@keyframes g-tip{0%,4%{transform:translateY(62cqh) rotateX(64deg) rotateY(-16deg)}28%,44%{transform:translateY(0) rotateX(64deg) rotateY(-16deg)}70%,84%{transform:translateY(0) rotateX(188deg) rotateY(12deg)}98%,100%{transform:translateY(-72cqh) rotateX(188deg) rotateY(12deg)}}-@keyframes g-blob{0%,100%{transform:translate(40cqw,19cqh)}25%{transform:translate(58cqw,30cqh)}50%{transform:translate(30cqw,44cqh)}75%{transform:translate(8cqw,22cqh)}}-@keyframes g-blob-i{0%,100%{transform:translate(-40cqw,-19cqh)}25%{transform:translate(-58cqw,-30cqh)}50%{transform:translate(-30cqw,-44cqh)}75%{transform:translate(-8cqw,-22cqh)}}+@keyframes g-blob{0%{opacity:0;transform:translate(-45cqw,49.2cqh)}6.3%{opacity:1;transform:translate(-38.6cqw,45cqh)}12.5%{transform:translate(-30.2cqw,39.2cqh)}18.8%{transform:translate(-21.9cqw,33.2cqh)}25%{transform:translate(-13cqw,27.2cqh)}31.3%{transform:translate(-4cqw,21.3cqh)}37.5%{transform:translate(5.3cqw,16.4cqh)}43.8%{transform:translate(16cqw,14.4cqh)}50%{transform:translate(27.6cqw,16cqh)}56.3%{transform:translate(36.9cqw,20.6cqh)}62.5%{transform:translate(44.9cqw,27.4cqh)}68.8%{transform:translate(52cqw,34.2cqh)}75%{transform:translate(58.2cqw,41.4cqh)}81.3%{transform:translate(64.5cqw,45.7cqh)}87.5%{transform:translate(72.2cqw,44.7cqh)}93.8%{opacity:1;transform:translate(79.3cqw,42.7cqh)}100%{opacity:0;transform:translate(85cqw,41.2cqh)}}+@keyframes g-blob-i{0%{transform:translate(45cqw,-49.2cqh)}6.3%{transform:translate(38.6cqw,-45cqh)}12.5%{transform:translate(30.2cqw,-39.2cqh)}18.8%{transform:translate(21.9cqw,-33.2cqh)}25%{transform:translate(13cqw,-27.2cqh)}31.3%{transform:translate(4cqw,-21.3cqh)}37.5%{transform:translate(-5.3cqw,-16.4cqh)}43.8%{transform:translate(-16cqw,-14.4cqh)}50%{transform:translate(-27.6cqw,-16cqh)}56.3%{transform:translate(-36.9cqw,-20.6cqh)}62.5%{transform:translate(-44.9cqw,-27.4cqh)}68.8%{transform:translate(-52cqw,-34.2cqh)}75%{transform:translate(-58.2cqw,-41.4cqh)}81.3%{transform:translate(-64.5cqw,-45.7cqh)}87.5%{transform:translate(-72.2cqw,-44.7cqh)}93.8%{transform:translate(-79.3cqw,-42.7cqh)}100%{transform:translate(-85cqw,-41.2cqh)}}@keyframes g-line{0%,6%{opacity:0;transform:translateY(5cqh)}24%,80%{opacity:1;transform:none}92%,100%{opacity:0;transform:translateY(-2cqh)}}@keyframes g-soft{0%,6%{opacity:.95}22%,100%{opacity:0}}@keyframes g-sharp{0%,6%{opacity:0}22%,100%{opacity:1}}@@ -443,8 +450,9 @@ button{font:inherit;color:inherit}.gp-visor .vz>.v-glass,.gp-visor .vz>.v-frame{animation-name:g-away}.gp-visor .vz>.v-frame{--d:.22s}.gp-visor .vz>.v-band{--d:.14s}- .rv-blob{animation:g-blob 9s ease-in-out infinite backwards}- .rv-b{animation:g-blob-i 9s ease-in-out infinite backwards}+ .gp-reveal{--x:4.7s}+ .rv-blob{animation:g-blob 9s linear infinite backwards;animation-delay:calc(0s - var(--x))}+ .rv-b{animation:g-blob-i 9s linear infinite backwards;animation-delay:calc(0s - var(--x))}.gp-intro{--x:1.5s}.gp-intro i{animation:g-line 6s var(--ease) infinite backwards;animation-delay:calc(var(--d,0s) - var(--x))}.gp-intro .t::before{animation:g-soft 6s var(--ease) infinite backwards;animation-delay:calc(var(--d,0s) - var(--x))}@@ -776,7 +784,7 @@ html.fx-open{overflow:hidden;padding-right:var(--fx-gap,0px)} /* the page does n</li><li class="tile" data-fx-tile="apple-menu"><div class="t-stage">- <div class="gp gp-menu" aria-hidden="true"><div class="mn-bar"><i class="mn-dot"></i><div class="mn-btn"><i></i><i></i><i></i></div></div><div class="mn-panel"><i></i><i></i><i></i></div></div>+ <div class="gp gp-menu" aria-hidden="true"><div class="mn-pg"><i></i><i></i><i></i></div><div class="mn-bar"><i class="mn-dot"></i><div class="mn-btn"><i></i><i></i><i></i></div></div><div class="mn-panel"><i></i><i></i><i></i><i></i><i></i></div></div><div class="t-tags"><span class="t-tag">Our version</span><span class="t-tag t-start">On press</span></div></div><div class="t-meta">@@ -998,9 +1006,19 @@ html.fx-open{overflow:hidden;padding-right:var(--fx-gap,0px)} /* the page does n</section><section class="fx" id="apple-menu" aria-labelledby="apple-menu-t" data-fx-site="Apple" data-fx-start="press">- <p class="fx-seen">Seen on <a href="https://www.apple.com/" target="_blank" rel="noopener">apple.com<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://www.apple.com/" target="_blank" rel="noopener">apple.com<span class="sr"> (opens in a new tab)</span></a> in <time datetime="2026-10-22">2026</time></p><h2 id="apple-menu-t" tabindex="-1">The menu that drops in, link by link</h2><p class="fx-chips"><span class="fx-chip">Starts on press</span><span class="fx-chip">Made from 3 animations</span></p>+ <div class="fx-version">+ <div class="fx-stage">+ <iframe title="Our version: The menu that drops in, link by link" data-src="versions/apple-menu.html"></iframe>+ <span class="fx-vlabel" aria-hidden="true">Our version</span>+ </div>+ <div class="fx-player">+ <button type="button" class="fx-pbtn" data-fx-cmd="show">Show me</button>+ <p class="fx-phint">Built from the prompt below. Press it, or press Show me.</p>+ </div>+ </div><h3 class="fx-sub">What you see</h3><p class="fx-what">On a phone, the two-line menu button folds into an X while the menu fills the screen and its links drop into place one after another. On a computer, pointing at a top item opens a panel that grows down from the bar, its links appearing in turn, while the page behind blurs.</p><h3 class="fx-sub">Good to know</h3>@@ -1189,7 +1207,7 @@ html.fx-open{overflow:hidden;padding-right:var(--fx-gap,0px)} /* the page does nbtn.addEventListener('click',()=>{const next=document.documentElement.dataset.theme==='dark'?'light':'dark';setTheme(next);try{localStorage.setItem('ah-theme',next);}catch(e){}});})();-const reduce=matchMedia('(prefers-reduced-motion:reduce)').matches;+const reduceMQ=matchMedia('(prefers-reduced-motion:reduce)'),reduced=()=>reduceMQ.matches;const dlg=document.getElementById('fx-dlg');// Opened from disk, a link to a folder shows the browser's list of its files, so there every link to a folder names its@@ -1242,7 +1260,7 @@ document.querySelectorAll('.fx .card[data-slug]').forEach(card=>{if(!p||!pv)return;pv.classList.add('pv-'+p.pv);pv.innerHTML=p.markup;- if(reduce){hold(card,p.still);return;}+ if(reduced()){hold(card,p.still);return;}card.addEventListener('focusin',()=>card.classList.add('playing'));if(io)io.observe(card);else card.classList.add('playing');});@@ -1251,7 +1269,7 @@ document.querySelectorAll('.fx .card[data-slug]').forEach(card=>{// focus, as the recipe cards do. The pictures are drawn at rest and the style moves them only where motion is allowed, so reduced// motion needs nothing here.document.querySelectorAll('.tile[data-fx-tile]').forEach(tile=>{- if(reduce)return;+ if(reduced())return;tile.addEventListener('focusin',()=>tile.classList.add('playing'));if(io)io.observe(tile);else tile.classList.add('playing');});@@ -1349,7 +1367,7 @@ function popup(){// Under reduced motion each recipe card holds one clear frame. A card moved into the dialog starts again, so it is held again.function holdCards(entry){- if(!reduce)return;+ if(!reduced())return;entry.querySelectorAll('.card[data-slug]').forEach(card=>{const p=PREVIEWS[card.dataset.slug];if(p)hold(card,p.still);});}@@ -1365,7 +1383,7 @@ function popup(){const frame=entry.querySelector('.fx-version iframe');if(!frame)return;// a loop's one button is Pause while it runs and Play while it is held (a version of a loop starts held under reduced motion)- if(entry.dataset.fxStart==='loop')entry.querySelectorAll('.fx-player [data-fx-cmd]').forEach(btn=>setToggle(btn,reduce?'play':'pause'));+ if(entry.dataset.fxStart==='loop')entry.querySelectorAll('.fx-player [data-fx-cmd]').forEach(btn=>setToggle(btn,reduced()?'play':'pause'));frame.addEventListener('load',()=>{frame.dataset.ready='1';if(frame._queued){post(frame,frame._queued);frame._queued=null;}diff --git a/famous/versions/apple-menu.html b/famous/versions/apple-menu.htmlnew file mode 100644index 00000000..4bc8fb8f--- /dev/null+++ b/famous/versions/apple-menu.html@@ -0,0 +1,156 @@+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<meta name="robots" content="noindex">+<title>Our version: The menu that drops in, link by link</title>+<style>+@font-face{font-family:'Schibsted Grotesk';src:url('../../assets/fonts/schibsted-latin-ext.woff2') format('woff2');font-weight:400 900;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}+@font-face{font-family:'Schibsted Grotesk';src:url('../../assets/fonts/schibsted-latin.woff2') format('woff2');font-weight:400 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}+:root{--c1:#6ea8ff;--c2:#5fd88a;--c3:#b98cff;--c4:#ff9d5c;--c5:#ff6f8b;--c6:#3fd6c4;--bh:56px;--gx:clamp(16px,5vw,44px);--e:cubic-bezier(.4,0,.2,1);color-scheme:dark}+/* inside the pop-up the "Our version" label sits over the left end of the bar (--gx), so the bar and its panels start after it */+.framed{--gx:112px}+*{box-sizing:border-box;margin:0}+html,body{height:100%}+html{background:#0b0b0f}+body{color:#f4f4f2;font:400 15px/1.5 'Schibsted Grotesk',system-ui,-apple-system,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}+.stage{position:relative;height:100%;min-height:200px;overflow:hidden;background:#0b0b0f}+/* the page behind the menu: a heading, a line and three cards, so the blur has something to blur */+.page{position:absolute;inset:0;display:flex;flex-direction:column;padding:calc(var(--bh) + 16px) clamp(16px,5vw,44px) 0}+h1{font-size:clamp(24px,5.2vw,44px);line-height:1.1;font-weight:700;letter-spacing:-.025em}+.page p{margin-top:8px;max-width:30em;color:#b9bccd;font-size:clamp(14px,2.2vw,17px)}+.cards{display:grid;grid-template-columns:repeat(3,1fr);flex:1;gap:clamp(8px,2vw,16px);margin-top:clamp(12px,3vh,24px)}+.cards i{border-radius:16px 16px 0 0;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);background:linear-gradient(150deg,var(--a),var(--b))}+.cards i:nth-child(1){--a:var(--c1);--b:var(--c3)}+.cards i:nth-child(2){--a:var(--c4);--b:var(--c5)}+.cards i:nth-child(3){--a:var(--c6);--b:var(--c2)}+/* the veil over the page: it is there at once when a menu opens, and on closing it rolls up and away */+.veil{position:absolute;inset:0;z-index:1;visibility:hidden;opacity:0;transform:translateY(-100%);pointer-events:none;background:rgba(11,11,15,.6);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transition:transform .33s cubic-bezier(.4,0,.6,1) .13s,opacity 0s linear .46s,visibility 0s linear .46s}+.stage:not([data-open=""]) .veil{visibility:visible;opacity:1;transform:none;transition:opacity .06s linear,transform 0s,visibility 0s}+.lite .veil{background:rgba(11,11,15,.86);-webkit-backdrop-filter:none;backdrop-filter:none}+/* the top bar */+.bar{position:absolute;left:0;right:0;top:0;z-index:3;display:flex;align-items:center;gap:clamp(4px,2vw,16px);height:var(--bh);padding:0 clamp(6px,2vw,20px) 0 var(--gx)}+.mark{position:relative;z-index:1;display:flex;align-items:center;gap:9px;font-size:16px;font-weight:700;letter-spacing:-.01em;white-space:nowrap;transition:opacity .12s linear .1s}+.mark i{width:22px;height:22px;border-radius:50%;background:linear-gradient(135deg,var(--c1),var(--c3))}+.top{display:none;height:100%;margin-left:clamp(4px,3vw,28px);transition:opacity .12s linear .1s}+.grp{display:flex;align-items:center;height:100%}+.op{position:relative;z-index:1;min-width:44px;min-height:44px;padding:0 14px;border:0;border-radius:99px;background:none;color:#e9ebf3;font:inherit;font-weight:600;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .15s,color .15s}+.op[aria-expanded="true"]{background:rgba(255,255,255,.12);color:#fff}+@media(hover:hover){.op:hover{background:rgba(255,255,255,.12);color:#fff}}+@media(min-width:601px){.top{display:flex}}+.stage[data-open="menu"] .mark,.stage[data-open="menu"] .top{opacity:0;pointer-events:none;transition-delay:.15s}+/* the menu button: three lines. Opening, the outer two slide to the middle, the middle one goes, then the pair turns into an X. Closing is the same backward, quicker. */+.burger{position:relative;z-index:1;margin-left:auto;width:44px;height:44px;border:0;border-radius:50%;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}+.burger::before{content:"";position:absolute;inset:0;border-radius:50%;background:rgba(255,255,255,.14);opacity:0;transform:scale(.7);transition:opacity .12s,transform .12s}+.burger.tap::before,.burger:active::before{opacity:1;transform:none}+@media(hover:hover){.burger:hover::before{opacity:1;transform:none}}+.burger i{position:absolute;left:11px;top:50%;width:22px;height:2px;margin-top:-1px;border-radius:2px;background:#f4f4f2;transition:rotate .07s cubic-bezier(.4,0,1,1) .05s,translate .075s cubic-bezier(0,0,.3,1) .12s,opacity .04s linear .1s}+.burger i:nth-child(1){translate:0 -8px}+.burger i:nth-child(3){translate:0 8px}+.burger[aria-expanded="true"] i{transition:translate .065s cubic-bezier(.4,0,1,1) .05s,rotate .105s cubic-bezier(0,0,.2,1) .135s,opacity .04s linear .11s}+.burger[aria-expanded="true"] i:nth-child(1){translate:0 0;rotate:45deg}+.burger[aria-expanded="true"] i:nth-child(2){opacity:0}+.burger[aria-expanded="true"] i:nth-child(3){translate:0 0;rotate:-45deg}+.op:focus-visible,.burger:focus-visible,.panel a:focus-visible{outline:3px solid #fff;outline-offset:-3px}+.burger:focus-visible{outline-offset:1px}+/* a menu: its sheet fades in, then its links drop 8px into place one after another (20ms apart); on closing they fade together */+.panel{position:absolute;left:0;right:0;top:0;visibility:hidden;transition:visibility 0s linear .3s}+.panel.on{visibility:visible;transition-delay:0s}+#menu{bottom:0;z-index:2}+.drop{max-height:100vh}+.panel::before{content:"";position:absolute;inset:0;background:rgba(12,13,19,.8);opacity:0;transition:opacity .06s linear .12s}+.panel.on::before{opacity:1;transition:opacity .4s cubic-bezier(.4,0,.6,1) .03s}+.lite .panel::before{background:rgba(12,13,19,.97)}+.panel ul{position:relative;max-height:100%;overflow-y:auto;overscroll-behavior:contain;padding:calc(var(--bh) + 4px) 0 10px;list-style:none}+.drop ul{max-height:100vh}+.panel li{opacity:0;transform:translateY(-8px);transition:opacity .2s ease-out .06s,transform .2s ease-out .06s}+.panel.on li{opacity:1;transform:none;transition:opacity .2s var(--e) calc(.245s + var(--i) * .02s),transform .2s var(--e) calc(.245s + var(--i) * .02s)}+.panel a{display:flex;align-items:center;min-height:clamp(44px,6.2vh,48px);padding:0 clamp(20px,6vw,44px);color:#f4f4f2;font-size:clamp(20px,5.6vw,28px);font-weight:650;letter-spacing:-.015em;text-decoration:none}+.drop a{padding-left:var(--gx);font-size:20px;font-weight:600}+@media(hover:hover){.panel a:hover{color:var(--c1)}}+@media(max-width:480px){.cards{grid-template-columns:repeat(2,1fr)}.cards i:nth-child(3){display:none}}+@media (prefers-reduced-motion: reduce){*,*::before,*::after{transition:none!important}}+</style>+<script>+{+ const q = '(max-width:600px),(max-height:500px)';+ let lite;+ try { lite = window.parent.matchMedia(q).matches; } catch (e) { lite = screen.width <= 600 || screen.height <= 500; }+ document.documentElement.classList.toggle('lite', lite);+ document.documentElement.classList.toggle('framed', window.parent !== window);+}+</script>+</head>+<body>+<div class="stage" id="stage" data-open="">+ <main class="page">+ <h1>Your page</h1>+ <p>Press the menu button and its links drop in, one after another, over a blurred page.</p>+ <div class="cards" aria-hidden="true"><i></i><i></i><i></i></div>+ </main>+ <div class="veil" aria-hidden="true"></div>+ <header class="bar">+ <span class="mark"><i aria-hidden="true"></i>Your logo</span>+ <nav class="top" aria-label="Sections">+ <div class="grp"><button type="button" class="op" aria-expanded="false" aria-controls="d1">Products</button>+ <div class="panel drop" id="d1"><ul><li><a href="#">Explore all</a></li><li><a href="#">New arrivals</a></li><li><a href="#">Compare models</a></li><li><a href="#">Accessories</a></li></ul></div></div>+ <div class="grp"><button type="button" class="op" aria-expanded="false" aria-controls="d2">Learn</button>+ <div class="panel drop" id="d2"><ul><li><a href="#">Guides</a></li><li><a href="#">Tutorials</a></li><li><a href="#">Webinars</a></li><li><a href="#">Community</a></li></ul></div></div>+ <div class="grp"><button type="button" class="op" aria-expanded="false" aria-controls="d3">Support</button>+ <div class="panel drop" id="d3"><ul><li><a href="#">Help center</a></li><li><a href="#">Contact us</a></li><li><a href="#">Service status</a></li><li><a href="#">Downloads</a></li></ul></div></div>+ </nav>+ <button type="button" class="burger" id="burger" aria-label="Menu" aria-expanded="false" aria-controls="menu"><i></i><i></i><i></i></button>+ </header>+ <nav class="panel" id="menu" aria-label="Menu"><ul><li><a href="#">Products</a></li><li><a href="#">Learn</a></li><li><a href="#">Support</a></li><li><a href="#">Stories</a></li><li><a href="#">Contact</a></li></ul></nav>+</div>+<script>+const $ = s => document.querySelector(s), $$ = s => [...document.querySelectorAll(s)];+const reduce = matchMedia('(prefers-reduced-motion: reduce)'), wide = matchMedia('(min-width:601px)');+const stage = $('#stage'), burger = $('#burger'), ops = $$('[aria-controls]');+let cur = null, acted = false, quiet = false, timers = [], hov = 0;+$$('.panel ul').forEach(ul => [...ul.children].forEach((li, i) => li.style.setProperty('--i', i)));++// One menu is open at a time: the full menu from the button, or the panel of a top item. Everything else follows from the markup's state.+function set(btn) {+ cur = btn;+ ops.forEach(b => { const on = b === btn; b.setAttribute('aria-expanded', on); $('#' + b.getAttribute('aria-controls')).classList.toggle('on', on); });+ stage.dataset.open = btn ? (btn === burger ? 'menu' : 'drop') : '';+}+ops.forEach(b => b.addEventListener('click', () => set(cur === b ? null : b)));++// Top items (wide boxes): the pointer opens a panel after a short pause, a key reaching the item opens it at once, a press opens or closes it (touch).+$$('.grp').forEach(g => {+ const b = g.querySelector('.op'), later = (open, ms) => { clearTimeout(hov); hov = setTimeout(() => { if (open) set(b); else if (cur === b) set(null); }, ms); };+ g.addEventListener('pointerenter', e => { if (e.pointerType !== 'touch') later(true, cur ? 0 : 100); });+ g.addEventListener('pointerleave', e => { if (e.pointerType !== 'touch') later(false, 80); });+ g.addEventListener('focusin', () => { if (!quiet && cur !== b && b.matches(':focus-visible')) set(b); });+ g.addEventListener('focusout', e => { if (cur === b && !g.contains(e.relatedTarget)) set(null); });+});+wide.addEventListener('change', () => set(null));+document.addEventListener('click', e => { if (e.target.closest('a')) e.preventDefault(); });++// Escape shuts the open menu and gives focus back to its button; with nothing open it passes on (the pop-up closes).+addEventListener('keydown', e => {+ if (e.key !== 'Escape' || !cur) return;+ e.stopImmediatePropagation(); e.preventDefault();+ const b = cur; set(null); quiet = true; b.focus(); quiet = false;+}, true);++// Show me: the button is pressed (a ring shows), the menu opens, rests a moment, and a second press closes it. A real input stops it.+const stop = () => { timers.forEach(clearTimeout); timers = []; burger.classList.remove('tap'); };+function show() {+ stop(); set(null);+ const press = (t, fn) => timers.push(setTimeout(() => { burger.classList.add('tap'); timers.push(setTimeout(() => burger.classList.remove('tap'), 170)); fn(); }, t));+ press(250, () => set(burger)); press(2150, () => set(null));+}+['pointerdown', 'pointermove', 'touchstart', 'keydown', 'wheel'].forEach(t => addEventListener(t, e => { if (e.isTrusted) { acted = true; stop(); } }, { capture: true, passive: true }));+addEventListener('message', e => {+ if (e.source !== parent || !e.data) return;+ if (e.data.fx === 'show') { acted = true; show(); }+});+reduce.addEventListener('change', () => { stop(); set(null); });+addEventListener('load', () => setTimeout(() => { if (!acted && !reduce.matches) show(); }, 700));+</script>+</body>+</html>diff --git a/famous/versions/landonorris-reveal.html b/famous/versions/landonorris-reveal.htmlindex 3a6f90db..d0ac7528 100644--- a/famous/versions/landonorris-reveal.html+++ b/famous/versions/landonorris-reveal.html@@ -10,11 +10,12 @@@font-face{font-family:'Schibsted Grotesk';src:url('../../assets/fonts/schibsted-latin.woff2') format('woff2');font-weight:400 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*{box-sizing:border-box}html,body{height:100%;margin:0}-html{background:#0b0b0f;color-scheme:dark;overflow:hidden;overscroll-behavior:contain}+html{background:#0b0b0f;color-scheme:dark;overflow:hidden}body{color:#f4f4f2;font:400 15px/1.5 'Schibsted Grotesk',system-ui,-apple-system,'Segoe UI',sans-serif}/* The stage holds two pictures of the same scene, stacked exactly: the night picture, and the day picture that shows only through the blob. */.stage{position:relative;width:100%;height:100%;min-height:160px;overflow:hidden;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}-.stage:focus-visible{outline:3px solid #fff;outline-offset:-8px}+.stage:focus-visible{outline:none}+.stage:focus-visible::after{content:"";position:absolute;inset:6px;border:3px solid #fff;border-radius:8px;box-shadow:0 0 0 1px rgba(11,11,15,.8),inset 0 0 0 1px rgba(11,11,15,.8);pointer-events:none}.pic{position:absolute;inset:0;pointer-events:none}.pic svg{display:block;width:100%;height:100%}.day{visibility:hidden}@@ -43,7 +44,7 @@ body{color:#f4f4f2;font:400 15px/1.5 'Schibsted Grotesk',system-ui,-apple-system<script>const $ = s => document.querySelector(s), clamp = (v, a, b) => Math.min(Math.max(v, a), b), root = document.documentElement;const reduce = matchMedia('(prefers-reduced-motion: reduce)'), FRAME = 1000 / 60, LITE = root.classList.contains('lite');-const stage = $('#stage'), dayEl = $('#day'), dot = $('#dot'), LIFE = LITE ? 700 : 900, MAXD = LITE ? 42 : 96;+const stage = $('#stage'), dayEl = $('#day'), dot = $('#dot'), LIFE = LITE ? 700 : 900, MAXD = LITE ? 60 : 120;// Our own picture, drawn in shapes: the same moon, hills and pines at night and by day. The shapes are written once; each picture gives them its colors.const NIGHT = { i: 'n', sky: ['#0b0a22', '#1c1952', '#432f82'], halo: '#b98cff', orb: ['#f8f3ff', '#c9b9ff'], far: ['#34307f', '#221f5c'], mid: ['#1f1c53', '#161440'], near: ['#14123a', '#0c0a26'], tree: '#0b0922', haze: '#7b5cd6' };@@ -74,7 +75,7 @@ $('#night').innerHTML = scene(NIGHT, true); dayEl.innerHTML = scene(DAY, false);// The blob is a trail of discs. Each frame the head, which follows the pointer a little behind it, leaves a disc; its size grows with the head's speed// and with how lately the pointer moved, and every disc shrinks away with age. The union of the discs is the clip that lets the day picture through.-let W = 1, H = 1, U = 1, T = 0, lastT = null, raf = 0, tx = 0, ty = 0, hx = 0, hy = 0, sp = 0, pres = 0, moved = -1e9, hold = false, trail = [];+let W = 1, H = 1, U = 1, T = 0, lastT = null, raf = 0, tx = 0, ty = 0, hx = 0, hy = 0, sp = 0, pres = 0, moved = -1e9, hold = false, trail = [], acc = 0, lx = 0, ly = 0, lt = -1e9;let run = null, acted = false, seen = null, kx = 0, ky = 0, timers = [];const PATHS = !window.CSS || !CSS.supports || CSS.supports('clip-path', "path('M0 0h1v1z')");const measure = () => { const r = stage.getBoundingClientRect(); W = Math.max(r.width, 1); H = Math.max(r.height, 1); U = Math.min(W, H); };@@ -86,11 +87,11 @@ function hull([x1, y1, r1], x2, y2, r2) {const ph = Math.atan2(dy, dx), al = Math.acos((r1 - r2) / dd), a = ph + al, b = ph - al, P = (x, y, r, t) => `${(x + r * Math.cos(t)).toFixed(1)} ${(y + r * Math.sin(t)).toFixed(1)}`;return `M${P(x1, y1, r1, a)}L${P(x2, y2, r2, a)}L${P(x2, y2, r2, b)}L${P(x1, y1, r1, b)}z`;}-function draw(f) {+function draw(f, R) {let d = '', dist = 0, px = hx, py = hy, n = 0, prev = null, head = null;- const reach = 1.1 * U, A = .07 + .09 * f;- for (let i = trail.length - 1; i >= 0; i--) {- const [tx0, ty0, rb, born] = trail[i], age = T - born, life = 1 - age / LIFE;+ const reach = 1.1 * U, A = .07 + .09 * f, all = R > .6 ? trail.concat([[hx, hy, R, T]]) : trail; // the head is drawn as the newest disc, at the pointer's pace+ for (let i = all.length - 1; i >= 0; i--) {+ const [tx0, ty0, rb, born] = all[i], age = T - born, life = 1 - age / LIFE;if (life <= 0) break;dist += Math.hypot(tx0 - px, ty0 - py); px = tx0; py = ty0;if (dist > reach) break;@@ -120,13 +121,19 @@ function frame(ts) {pres += ((act ? 1 : 0) - pres) * k(.09);if (!act && pres < .01) pres = 0;const R = U * (.105 + .1 * f) * pres;- if (R > .6) {- const m = clamp(Math.ceil(Math.hypot(hx - ox, hy - oy) / (R * (LITE ? .35 : .22))), 1, 6);- for (let j = 1; j <= m; j++) trail.push([ox + (hx - ox) * j / m, oy + (hy - oy) * j / m, R, T - dt * (m - j) / m]);- if (trail.length > MAXD) trail.splice(0, trail.length - MAXD);+ if (R > .6) { // discs are laid once every 60th of a second, so the trail is the same at 60, 90 or 120 Hz+ if (T - lt > 100) { lx = ox; ly = oy; lt = T - dt; acc = 0; }+ acc += dt;+ if (acc >= FRAME - 1) { // (a millisecond of slack, and the rest carried over, keep the pace at 60 a second whatever the frame times)+ acc = Math.min(acc - FRAME, FRAME);+ const m = clamp(Math.ceil(Math.hypot(hx - lx, hy - ly) / (R * (LITE ? .35 : .22))), 1, 6);+ for (let j = 1; j <= m; j++) trail.push([lx + (hx - lx) * j / m, ly + (hy - ly) * j / m, R, lt + (T - lt) * j / m]);+ lx = hx; ly = hy; lt = T;+ if (trail.length > MAXD) trail.splice(0, trail.length - MAXD);+ }}while (trail.length && T - trail[0][3] > LIFE) trail.shift();- draw(f);+ draw(f, R);if (act || pres || trail.length || run) raf = requestAnimationFrame(frame); else lastT = null;}const wake = () => { if (!raf && !reduce.matches) { lastT = null; raf = requestAnimationFrame(frame); } };diff --git a/famous/versions/linear-intro.html b/famous/versions/linear-intro.htmlindex 283eb01f..f257c275 100644--- a/famous/versions/linear-intro.html+++ b/famous/versions/linear-intro.html@@ -11,7 +11,7 @@:root{--c1:#6ea8ff;--c2:#5fd88a;--c3:#b98cff;--c4:#ff9d5c;--c5:#ff6f8b;--c6:#3fd6c4;--c7:#ffce5a;color-scheme:dark}html.lite{--bs:.4}*{box-sizing:border-box;margin:0}-html{background:#0b0b0f;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#3c3c4a #0b0b0f}+html{background:#0b0b0f;scrollbar-width:thin;scrollbar-color:#3c3c4a #0b0b0f}body{color:#f4f4f2;font:400 15px/1.5 'Schibsted Grotesk',system-ui,-apple-system,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}.hero{display:flex;flex-direction:column;align-items:center;min-height:100vh;min-height:100svh;padding:clamp(44px,12vh,92px) clamp(16px,5vw,48px) 0;text-align:center;overflow:hidden;background:radial-gradient(90% 60% at 50% 0,rgba(110,168,255,.1),transparent 70%)}h1{font-size:clamp(22px,min(9.5vw,9.4vh),60px);line-height:1.08;font-weight:650;letter-spacing:-.025em}diff --git a/famous/versions/stripe-ribbon.html b/famous/versions/stripe-ribbon.htmlindex 3264695f..8594d094 100644--- a/famous/versions/stripe-ribbon.html+++ b/famous/versions/stripe-ribbon.html@@ -10,7 +10,7 @@@font-face{font-family:'Schibsted Grotesk';src:url('../../assets/fonts/schibsted-latin.woff2') format('woff2');font-weight:400 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*{box-sizing:border-box}html,body{height:100%;margin:0}-html{background:#0b0b0f;color-scheme:dark;overflow:hidden;overscroll-behavior:contain}+html{background:#0b0b0f;color-scheme:dark;overflow:hidden}body{color:#f4f4f2;font:400 15px/1.5 'Schibsted Grotesk',system-ui,-apple-system,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}/* the still picture: soft bands of the ribbon's colors, shown until the first drawn frame is ready */.hero{position:relative;height:100%;min-height:160px;overflow:hidden;display:grid;place-items:center;background:radial-gradient(70% 38% at 24% 76%,rgba(63,214,196,.3),transparent 72%),radial-gradient(64% 40% at 74% 26%,rgba(185,140,255,.34),transparent 72%),radial-gradient(60% 30% at 50% 52%,rgba(110,168,255,.3),transparent 72%),#0b0b0f}@@ -41,7 +41,7 @@ p{margin:.6em 0 0;font-size:clamp(14px,.8vw + 11px,18px);text-wrap:balance}<script>const $ = s => document.querySelector(s), frac = x => x - Math.floor(x), smooth = x => { x = Math.min(Math.max(x, 0), 1); return x * x * (3 - 2 * x); };const reduce = matchMedia('(prefers-reduced-motion: reduce)'), FRAME = 1000 / 60, root = document.documentElement;-const LITE = root.classList.contains('lite'), NS = LITE ? 48 : 80, STILL = 3, scale = LITE ? .6 : Math.min(devicePixelRatio || 1, 1.25);+const LITE = root.classList.contains('lite'), NS = LITE ? 48 : 80, STILL = 3;const PAL = [[63, 214, 196], [110, 168, 255], [185, 140, 255], [255, 111, 139]]; // teal, blue, violet, a touch of coral// The ribbon's shape is four short formulas (u runs along it, ts is the 60 s loop from 0 to 1): the shader has them below, the Canvas 2D fallback the same ones in JS.const FS = `#ifdef GL_FRAGMENT_PRECISION_HIGH@@ -89,7 +89,7 @@ void main(){gl_FragColor = vec4(col, 1.);}`;const cv = $('#gl'), c2 = $('#c2'), wrap = $('.hero');-let gl, U, g2, pat, W = 1, H = 1, ax = [1, 0], T = STILL, paused = reduce.matches, vis = true, lastT = null, raf = 0;+let gl, U, g2, pat, W = 1, H = 1, scale = 1, ax = [1, 0], T = STILL, paused = reduce.matches, vis = true, lastT = null, raf = 0;function initGL() {try { gl = cv.getContext('webgl', { antialias: false, alpha: false, powerPreference: 'low-power', failIfMajorPerformanceCaveat: true }); } catch (e) {}@@ -151,6 +151,8 @@ function draw() {}function size() {const r = wrap.getBoundingClientRect(), a = Math.atan2(r.height, r.width) * .85;+ // at most about 250,000 canvas pixels (the shader's cost grows with them) and 1.25 a CSS pixel; a phone draws at 0.6+ scale = LITE ? .6 : Math.min(devicePixelRatio || 1, 1.25, Math.sqrt(2.5e5 / Math.max(r.width * r.height, 1)));cv.width = c2.width = W = Math.max(1, Math.round(r.width * scale)); cv.height = c2.height = H = Math.max(1, Math.round(r.height * scale));ax = [Math.cos(a), Math.sin(a)]; draw();}@@ -172,7 +174,7 @@ addEventListener('message', e => {});document.addEventListener('visibilitychange', () => { if (document.hidden) halt(); else kick(); });cv.addEventListener('webglcontextlost', e => { e.preventDefault(); useFallback(); });-reduce.addEventListener('change', () => { if (reduce.matches) { setPaused(true); T = STILL; draw(); } else setPaused(false); });+reduce.addEventListener('change', () => { if (reduce.matches) { setPaused(true); T = STILL; draw(); } }); // turning it off resumes nothing: only Play doestry { new IntersectionObserver(es => { vis = es[es.length - 1].isIntersecting; if (vis) kick(); else halt(); }).observe(wrap); } catch (e) {}if (!initGL()) useFallback(); else size();new ResizeObserver(size).observe(wrap);diff --git a/tests/famous.test.js b/tests/famous.test.jsindex ba0f6f56..9f87a465 100644--- a/tests/famous.test.js+++ b/tests/famous.test.js@@ -489,7 +489,7 @@ const SITE_PHRASES = [const CHECKED_IDS = ['stripe-ribbon', 'apple-scroll', 'landonorris-reveal', 'linear-intro', 'apple-menu', 'wikipedia-previews', 'apple-sweep', 'spotify-cards', 'youtube-loading', 'pudding-chart', 'medium-top-bar'];const CHECKED_DAY = '2026-10-13';// Entries checked again on their site before the gallery release, and the day of that check.-const RECHECKED = { 'apple-scroll': '2026-10-22', 'landonorris-reveal': '2026-10-22', 'linear-intro': '2026-10-22', 'stripe-ribbon': '2026-10-22' };+const RECHECKED = { 'apple-menu': '2026-10-22', 'apple-scroll': '2026-10-22', 'landonorris-reveal': '2026-10-22', 'linear-intro': '2026-10-22', 'stripe-ribbon': '2026-10-22' };// 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).@@ -736,7 +736,10 @@ for (const e of VERSIONS) {assert.ok(/@media\s*\(\s*prefers-reduced-motion\s*:\s*reduce\s*\)/.test(html) || /matchMedia\(\s*['"]\(prefers-reduced-motion\s*:\s*reduce\)['"]/.test(script), 'a reduced-motion rule');assert.ok(/@media\s*\(\s*prefers-reduced-motion\s*:\s*reduce\s*\)/.test(html), 'in its style');assert.ok(/matchMedia\(\s*['"]\(prefers-reduced-motion\s*:\s*reduce\)['"]\s*\)/.test(script), 'it asks matchMedia about reduced motion');- assert.ok(/overscroll-behavior\s*:\s*contain/.test(html), 'its scroller keeps the scroll to itself (overscroll-behavior: contain)');+ const start = (MARKUP.match(new RegExp(`<section class="fx" id="${e.id}"[^>]*data-fx-start="([a-z]+)"`)) || [])[1];+ const rootRules = [...html.matchAll(/(?:^|[}\s])(?:html|body)\s*(?:,\s*(?:html|body)\s*)*\{([^}]*)\}/g)].map(m => m[1]).join(';');+ if (start === 'scroll') assert.ok(/overscroll-behavior\s*:\s*contain/.test(html), 'its scroller keeps the scroll to itself (overscroll-behavior: contain)');+ else assert.ok(!/overscroll-behavior\s*:\s*contain/.test(rootRules), 'it does not scroll, so html and body leave the wheel and a finger free to scroll the pop-up (no overscroll-behavior: contain there)');if (/requestAnimationFrame/.test(script)) {assert.ok(/\bFRAME\s*=\s*1000\s*\/\s*60\b/.test(script) && /Math\.min\(\s*ts\s*-\s*lastT\s*,\s*50\s*\)/.test(script) && /\bdt\s*\)?\s*\/\s*FRAME\b/.test(script), 'its frame loop steps by elapsed time (dt / FRAME), not by a fixed amount a frame');}