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: Snow / Rain: See inside's key wraps instead of reaching the right-edge arrow at 320 with Depth off

matin66c50d781dad
diff --git a/animations/07-ambient-background/snow-rain/index.html b/animations/07-ambient-background/snow-rain/index.html
index cf3b7171..fcd1dc55 100644
--- a/animations/07-ambient-background/snow-rain/index.html
+++ b/animations/07-ambient-background/snow-rain/index.html
@@ -32,8 +32,9 @@
.lbl,.sr-up{display:none}
.lbl{position:absolute;padding:4px 9px;border-radius:999px;background:rgba(5,6,10,.88);color:#f4f4f2;font:600 13px/1.2 var(--hb-font);white-space:nowrap}
.stage[data-hb-mode="inside"] .sr-key,.stage[data-hb-mode="inside"] .sr-out,.stage[data-hb-mode="inside"] .sr-up,.stage[data-hb-mode="compare"] .side{display:block}
- .sr-key{left:10px;top:10px;padding:4px 12px 4px 6px;border-radius:14px}
- .sr-key p{display:flex;align-items:center;gap:6px;height:26px}
+ .sr-key{left:10px;top:10px;max-width:calc(100% - 44px);padding:4px 12px 4px 6px;border-radius:14px}
+ .sr-key p{display:flex;align-items:center;gap:6px;min-height:26px}
+ .sr-key span{white-space:normal}
.sr-key p[hidden]{display:none}
.sr-key svg{flex:none;width:44px;height:26px;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.sr-out{right:30px;top:50%;max-width:min(124px,40%);border-radius:14px;white-space:normal;text-align:right}