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: Liquid Glass: See inside key lies against the right edge on short mid-width stages

Claude9ccf2b7c1100
diff --git a/animations/06-3d-advanced/liquid-glass/index.html b/animations/06-3d-advanced/liquid-glass/index.html
index aa200796..576ba692 100644
--- a/animations/06-3d-advanced/liquid-glass/index.html
+++ b/animations/06-3d-advanced/liquid-glass/index.html
@@ -61,6 +61,9 @@
.lg-cap{padding:2px 7px;border-radius:5px;background:rgba(12,10,36,.9);color:#f4f4f2;font:600 12px/1.2 var(--hb-font);white-space:nowrap}
/* The key, at the top left: on a phone its three rows end above the place Show me's glide reaches at its left end */
.lg-key{position:absolute;left:6px;top:6px;right:6px;flex-wrap:wrap;align-items:flex-start;gap:3px 6px}
+ /* Short, middling-wide stages (a phone held sideways): the key wraps to two rows, and Show me's glide passes under the left end of the second,
+ so the rows lie against the right edge, where the glide's top is lower */
+ @media(min-width:601px) and (max-width:840px) and (max-height:500px){.lg-key{justify-content:flex-end}}
.lg-half{position:absolute;left:8px;top:8px}
.lg-x{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;fill:none;stroke-linecap:round;stroke-linejoin:round}
.lg-x .lg-u{stroke:rgba(12,10,36,.75);stroke-width:3.5}.lg-x rect{stroke-dasharray:5 4}.lg-rim{stroke:rgba(255,255,255,.85);stroke-width:1.5}.lg-arr{stroke:#fff;stroke-width:1.5}