176 web animation techniques, each a live demo with plain settings and a ready-made prompt for your AI assistant. No dependencies, no build step.
HTML ai-promptsanimationcss-animationsfrontendgithub-pagesjavascriptmicrointeractionsmotion-designno-dependenciesreferencescroll-animationui-animationweb-animationweb-developmentwebgl
docs: bring the Glassmorphism Animated sheet section in line with the fainter dots
matin8dd3c6e41cb7
diff --git a/docs/superpowers/plans/2026-09-29-3d-content.md b/docs/superpowers/plans/2026-09-29-3d-content.mdindex c9c98e8c..12194bc5 100644--- a/docs/superpowers/plans/2026-09-29-3d-content.md+++ b/docs/superpowers/plans/2026-09-29-3d-content.md@@ -541,8 +541,8 @@ None: leave out the `details.hb-options` block.- "Shifting" / "Shifting tint" / "The tint keeps changing." (was "Tint Cycle" / "Frost color rotates through the palette over 8 seconds.")- **Phones:** today the cards wrap into one column, and the 300px stage would show only the first. Under `@media(max-width:600px)` the stage becomes a grid of three equal columns, and the cards share one row at one height: `.stage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:center;align-items:stretch;gap:8px;padding:12px}` (the blobs are absolutely positioned, so they stay out of the grid), `.glass-card{width:auto;min-width:0;min-height:0;padding:12px 8px;border-radius:12px;gap:6px}`, `.card-title` 13px, `.card-tag` 10px with 1px letter spacing, and `.card-body` 12px with `line-height:1.4`. Measured with the site font: three 100×137px cards on a 375px phone and three 82×137px cards on a 320px phone, all text inside.- On computers and tablets the cards stay in one row as today (180×200px on computers, 145×200px on a tablet).- - **A dark layer under the text (owner decision: readable card text).** Over the bright blobs the text sat at 1.7:1 on phones and 2.9:1 on computers (worst text and moment, 10th percentile of each text box, measured against what is really behind the words with the text hidden, at 16 moments of the 8s cycle). Each card gets a see-through dark layer inside it, under its text: `.glass-card::before{content:"";position:absolute;inset:0;border-radius:inherit;background:rgba(6,8,14,.54);z-index:-1}`. The card's `z-index:1` makes it a stacking context, so the layer sits above the card's tint and the blurred backdrop and below its text; `tint-cycle` still animates the card's own background. The title stays `#fff`, the tag is `rgba(255,255,255,.88)` and the body `rgba(255,255,255,.92)`. Measured the same way (worst text and moment, 10th percentile), on computers (1280) / a 375px phone / a 320px phone: at least 9.5 / 5.9 / 5.8:1 with the default settings; 9.0 / 5.6 / 5.6:1 with Frost Off; 8.0 / 5.2 / 5.1:1 with Strong tint strength and the White tint color (the brightest glass the settings can make); 7.6 / 5.0 / 5.0:1 with that and Frost Off (the dots sharp behind the words). A tablet (768) and a sideways phone (812×375) read at least 8.4:1 by default and 6.7:1 with Strong tint strength, the White tint color and Frost Off; a laptop (1366×657) reads at least 9.0:1 by default. Every median is 5.1:1 or more. (The first values tried, .45 for the layer with the tag at .75 and the body at .85, gave 4.0:1 on phones at the brightest.)- - **A faint pattern behind the glass (owner decision: make Frost visible).** Frost Light, Medium and Heavy looked the same: the backdrop is already a 60px blur (36px on phones) of soft blobs, so the glass blur had nothing left to soften. `.stage::after` paints soft white dots between the colors and the cards: `.stage::after{content:"";position:absolute;inset:0;--dots:rgba(255,255,255,.28);--dot-r:16px;--dot-pitch:56px;--fade:68%;background:radial-gradient(circle,var(--dots) 0 var(--dot-r),transparent calc(var(--dot-r) + 2px)) 0 0/var(--dot-pitch) var(--dot-pitch);-webkit-mask-image:radial-gradient(ellipse closest-side,#000 var(--fade),transparent);mask-image:radial-gradient(ellipse closest-side,#000 var(--fade),transparent)}`, and under the phone block `.stage::after{--dots:rgba(255,255,255,.42);--dot-r:20px;--dot-pitch:64px;-webkit-mask-image:linear-gradient(transparent,#000 28%,#000 72%,transparent);mask-image:linear-gradient(transparent,#000 28%,#000 72%,transparent)}` (bigger, stronger dots, because the bright phone backdrop hides white; the mask keeps them behind the row of cards). It comes after the blobs in tree order and the cards have `z-index:1`, so it sits above the blobs and below the cards; it is static (it adds no animation to the stage) and fades out toward the edges, so most of the stage still reads as soft color. Measured with the text hidden (mean of four moments, luminance levels between the middle of a dot and the gap between dots, inside the two cards that follow Frost): on computers Off 24.7, Light 24.9, Medium 14.0, Heavy 1.5; on a 375px phone 16.9, 17.0, 13.4, 4.3. Changed pixels inside those two cards, before → after, over 8 / over 4 levels of a channel: Light vs Heavy on computers 2.2% → 20.8% / 8.7% → 71.5%, on the phone 25.2% → 37.8% / 66.0% → 74.6%; Light vs Medium on computers 0.0% → 8.4% / 0.9% → 32.5%, on the phone 0.7% → 6.6% / 13.2% → 37.3%; Medium vs Heavy on computers 0.3% → 1.6% / 4.1% → 21.5%, on the phone 4.2% → 4.6% / 39.6% → 34.3% (the phone's earlier differences were smooth color shifts that the dark layer now dims; the dots replace them). The middle card breathes on its own, so only Off changes it.+ - **A dark layer under the text (owner decision: readable card text).** Over the bright blobs the text sat at 1.7:1 on phones and 2.9:1 on computers (worst text and moment, 10th percentile of each text box, measured against what is really behind the words with the text hidden, at 16 moments of the 8s cycle). Each card gets a see-through dark layer inside it, under its text: `.glass-card::before{content:"";position:absolute;inset:0;border-radius:inherit;background:rgba(6,8,14,.54);z-index:-1}`. The card's `z-index:1` makes it a stacking context, so the layer sits above the card's tint and the blurred backdrop and below its text; `tint-cycle` still animates the card's own background. The title stays `#fff`, the tag is `rgba(255,255,255,.88)` and the body `rgba(255,255,255,.92)`. Measured the same way (worst text and moment, 10th percentile), with the round-2 dots, on computers (1280) / a 375px phone / a 320px phone: at least 9.7 / 6.8 / 6.4:1 with the default settings; 10.3 / 6.2 / 6.1:1 with Frost Off; 8.2 / 5.9 / 5.6:1 with Strong tint strength and the White tint color (the brightest glass the settings can make); 8.5 / 5.5 / 5.4:1 with that and Frost Off (the dots sharp behind the words). A tablet (768) and a sideways phone (812×375) read at least 8.4:1 by default and 7.2:1 with Strong tint strength, the White tint color and Frost Off; a laptop (1366×657) reads at least 9.6:1 by default and 7.9:1 in that harshest case. Every median is 5.9:1 or more. (With the stronger round-1 dots the same four cases read 9.5 / 5.9 / 5.8, 9.0 / 5.6 / 5.6, 8.0 / 5.2 / 5.1 and 7.6 / 5.0 / 5.0:1; the first values tried, .45 for the layer with the tag at .75 and the body at .85, gave 4.0:1 on phones at the brightest.)+ - **A faint pattern behind the glass (owner decisions: make Frost visible; then make the dots fainter).** Frost Light, Medium and Heavy looked the same: the backdrop is already a 60px blur (36px on phones) of soft blobs, so the glass blur had nothing left to soften. `.stage::after` paints soft white dots between the colors and the cards: `.stage::after{content:"";position:absolute;inset:0;--dots:rgba(255,255,255,.16);--dot-r:16px;--dot-pitch:56px;--fade:68%;background:radial-gradient(circle,var(--dots) 0 var(--dot-r),transparent calc(var(--dot-r) + 2px)) 0 0/var(--dot-pitch) var(--dot-pitch);-webkit-mask-image:radial-gradient(ellipse closest-side,#000 var(--fade),transparent);mask-image:radial-gradient(ellipse closest-side,#000 var(--fade),transparent)}`, and under the phone block `.stage::after{--dots:rgba(255,255,255,.3);-webkit-mask-image:linear-gradient(transparent,#000 28%,#000 72%,transparent);mask-image:linear-gradient(transparent,#000 28%,#000 72%,transparent)}` (stronger dots of the same size, because the bright phone backdrop hides white; the mask keeps them behind the row of cards). It comes after the blobs in tree order and the cards have `z-index:1`, so it sits above the blobs and below the cards; it is static (it adds no animation to the stage) and fades out toward the edges, so most of the stage reads as soft color. Round 1 used .28 on computers and .42 with 20px dots on a 64px grid on phones; the owner found that a dot grid over most of the stage, so round 2 lowered the strength to the values above (the masks, the fade, the dark layer and the text stay). The values come from a sweep of strengths measured with the text hidden at two moments: outside the cards (the pattern against no pattern, Medium frost) the mean change fell from 5.9 to 3.4 levels on computers and from 9.5 to 5.5 on a 375px phone, the pixels changed by more than 20 levels from 11.9% to 7.1% and from 19.7% to 13.6%, and the brightest dot from 68 to 39 and from 100 to 64 levels; on phones the computer-sized dots keep about twice the Light-vs-Heavy difference of the bigger ones for the same quiet (at a mean change of about 5.4 levels outside the cards, 18% against 8% of the card pixels change by more than 8 levels), which is why the phone block no longer overrides the size. Two measured alternatives, should the owner want more Frost difference back: .18 on computers gives 12% / 46% (over 8 / over 4 levels, Light vs Heavy) at a mean change of 3.8 outside the cards; .32 on phones 22% / 62% at 5.8. Dot contrast that survives inside the two cards that follow Frost (the dots' own contribution, a pattern-off shot subtracted at each Frost, luminance levels between the middle of a dot and the gap between dots, mean of four moments; round 1 → round 2): on computers Off 25.9 → 14.9, Light 26.2 → 15.0, Medium 15.2 → 8.7, Heavy 2.5 → 1.4; on the phone Off 23.5 → 15.9, Light 23.5 → 15.9, Medium 19.6 → 10.3, Heavy 9.3 → 3.3 (Heavy now erases the smaller dots better). Changed pixels inside those two cards, over 8 / over 4 levels of a channel, before the pattern → round 1 → round 2: Light vs Heavy on computers 2.2% → 20.8% → 8.7% / 8.7% → 71.5% → 34.4%, on the phone 25.2% → 37.8% → 19.5% / 66.0% → 74.6% → 62.6%; Light vs Medium on computers 0.0% → 8.4% → 0.3% / 0.9% → 32.5% → 11.8%, on the phone 0.7% → 6.6% → 2.6% / 13.2% → 37.3% → 26.9%; Medium vs Heavy on computers 0.3% → 1.6% → 0.3% / 4.1% → 21.5% → 5.1%, on the phone 4.2% → 4.6% → 0.8% / 39.6% → 34.3% → 15.2% (the phone's earliest differences were smooth color shifts that the dark layer dims; the dots replace them); Off vs Light in round 2 7.6% / 37.3% on computers and 61.7% / 83.2% on the phone. Over the whole stage Light vs Heavy changes 1.7% / 6.8% of the pixels on computers and 5.2% / 16.8% on the phone (round 1: 4.1% / 14.1% and 10.2% / 20.0%). The middle card breathes on its own, so only Off changes it.- `hb-dots`: no. Default height.- **Phone fallback:** today's stays: the blobs blur 36px on phones instead of 60px. The glass blur only covers the three small cards. The dot pattern is one static layer: on the throttled phone (375×812 at pixel ratio 2, CPU ×4, headless Chrome drawing in software) the page draws 181 or 182 frames in 3 s (a full 60 fps is 180) with none or one dropped, as before, also with Heavy frost and with Frost Off.