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: the menu version never scrolls inside a stage shorter than 200px

matinc2b1dc45408f
diff --git a/famous/versions/apple-menu.html b/famous/versions/apple-menu.html
index c53e9e6b..d138f35d 100644
--- a/famous/versions/apple-menu.html
+++ b/famous/versions/apple-menu.html
@@ -13,9 +13,9 @@
.framed{--gx:112px}
*{box-sizing:border-box;margin:0}
html,body{height:100%}
-html{background:#0b0b0f}
+html{background:#0b0b0f;overflow:hidden}
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}
+.stage{position:relative;height:100%;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}