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: Slide In: Compare's moment caption sits above the divider line

matin082c03f25c93
diff --git a/animations/02-entrance-and-exit/slide-in/index.html b/animations/02-entrance-and-exit/slide-in/index.html
index 0819b4d6..c1721b79 100644
--- a/animations/02-entrance-and-exit/slide-in/index.html
+++ b/animations/02-entrance-and-exit/slide-in/index.html
@@ -54,7 +54,7 @@
.stage[data-hb-mode="compare"] .name,.stage[data-hb-mode="compare"] .when{display:block;left:50%;translate:-50% 0}
.stage[data-hb-mode="compare"] .name{top:8px}
.stage[data-hb-mode="compare"][data-names="bottom"] .name{top:auto;bottom:8px}
- .stage[data-hb-mode="compare"] .when{max-width:calc(100% - 16px);visibility:hidden}
+ .stage[data-hb-mode="compare"] .when{z-index:1;max-width:calc(100% - 16px);visibility:hidden}
.stage[data-hb-mode="compare"].posed .when{visibility:visible}
.stage[data-hb-mode="compare"] .twin{opacity:1!important}
.stage[data-hb-mode="compare"].posed .cmp .card{transform:translate(var(--qx),var(--qy))!important;transition:none!important}