Skip to content

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.

fix: Mesh Gradient: See inside calls each outlined patch a plain round shape, since the ovals are not circles

matinf0a19f05e311
diff --git a/animations/07-ambient-background/mesh-gradient/index.html b/animations/07-ambient-background/mesh-gradient/index.html
index e4fe1d15..71f9920e 100644
--- a/animations/07-ambient-background/mesh-gradient/index.html
+++ b/animations/07-ambient-background/mesh-gradient/index.html
@@ -134,7 +134,7 @@
<label class="hb-toggle"><input class="hb-switch" type="checkbox" role="switch" id="slow-tog" data-hb-slowmo="css" autocomplete="off"><span>Slow motion</span></label>
</div>
<div class="hb-mode-notes" aria-live="polite">
- <p data-hb-for="inside" hidden>Inside, each soft patch is a plain circle of color, outlined here, blurred until its edges melt. Each drifts to its dashed outline and back, at its own pace.</p>
+ <p data-hb-for="inside" hidden>Inside, each soft patch is a plain round shape of color, outlined here, blurred until its edges melt. Each drifts to its dashed outline and back, at its own pace.</p>
<p data-hb-for="compare" hidden>No blur shows the same circles with hard edges, a spotty pattern. Blurred, as you set it, softens them into a wash of color; a light blur leaves the circles easy to see.</p>
</div>
</section>
@@ -341,7 +341,7 @@
// Under reduced motion the loop starts paused, so See inside is a still and its note says so; once Play moves it on, the
// markup's own words come back. A note is rewritten only when its words change, as its box reads changes out loud.
const note=document.querySelector('[data-hb-for="inside"]'),moving=note.textContent;
- const still='Inside, shown still: each soft patch is a plain circle of color, outlined here, blurred until its edges melt; the arrow shows where it would drift.';
+ const still='Inside, shown still: each soft patch is a plain round shape of color, outlined here, blurred until its edges melt; the arrow shows where it would drift.';
let paused=reduceMQ.matches;
function describe(){const words=reduceMQ.matches&&paused?still:moving;if(note.textContent!==words)note.textContent=words}
describe();