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: Text Clip-Path Reveal takes less padding in a laptop window under 651px tall, so its player bar is on the first screen at 1280x590

matinbcd787f1cf42
diff --git a/animations/05-text-typography/text-clip-path-reveal/index.html b/animations/05-text-typography/text-clip-path-reveal/index.html
index f1ae42ae..80b3b7e0 100644
--- a/animations/05-text-typography/text-clip-path-reveal/index.html
+++ b/animations/05-text-typography/text-clip-path-reveal/index.html
@@ -24,6 +24,8 @@
:root{--ui-accent:#ff6f8b;--line-dur:700ms;--ease:ease-out}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
.stage{display:flex;align-items:center;justify-content:center;background:#04060c;padding:clamp(24px,4vw,48px)}
+ /* A laptop window under 651px tall: less room above and below the headline lets the stage keep its 260px minimum, so the player bar stays on the first screen */
+ @media(min-width:601px) and (max-height:650px){.stage{padding-block:28px}}
.headline{display:flex;flex-direction:column;gap:4px;overflow:visible}
.line-wrap{overflow:hidden;line-height:1.15}
.line-text{