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: Gooey Menu (04.40): the README's setOpen snippet shows the inert line the demo uses

matinc86625986901
diff --git a/animations/04-micro-interactions/gooey-menu/README.md b/animations/04-micro-interactions/gooey-menu/README.md
index a8722ffc..b2835353 100644
--- a/animations/04-micro-interactions/gooey-menu/README.md
+++ b/animations/04-micro-interactions/gooey-menu/README.md
@@ -43,6 +43,7 @@ The upper layer holds the real buttons: a see-through round button whose plus tu
```js
function setOpen(on) {
gm.classList.toggle('open', on);
+ group.inert = !on; // closed: out of reach of Tab and clicks at once, while the buttons still fade
main.setAttribute('aria-expanded', String(on));
main.setAttribute('aria-label', on ? 'Close menu' : 'Open menu');
}