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: Cursor Follower: stacked Compare keeps each area's content away from its half's outer edge

Claude715b556dfc3d
diff --git a/animations/04-micro-interactions/cursor-follower/index.html b/animations/04-micro-interactions/cursor-follower/index.html
index fbcd0801..060bc89f 100644
--- a/animations/04-micro-interactions/cursor-follower/index.html
+++ b/animations/04-micro-interactions/cursor-follower/index.html
@@ -83,6 +83,9 @@
.stage[data-hb-mode="compare"]>.zone:nth-child(1){grid-area:3/1}.stage[data-hb-mode="compare"]>.zone:nth-child(2){grid-area:3/2}
.stage[data-hb-mode="compare"]>.zone:nth-child(3){grid-area:4/1}.stage[data-hb-mode="compare"]>.zone:nth-child(4){grid-area:4/2}
.stage[data-hb-mode="compare"] .keys{left:0;top:50%}.stage[data-hb-mode="compare"] .twin{width:100%;height:50%}
+ /* Stacked halves: each area's content sits away from its half's outer edge (the grown dot is 80px across), the same in both halves */
+ .stage[data-hb-mode="compare"]>.zone:nth-child(-n+2),.stage[data-hb-mode="compare"] .twin>.zone:nth-child(-n+2){align-items:flex-end;padding-top:0;padding-bottom:8px}
+ .stage[data-hb-mode="compare"]>.zone:nth-child(n+3),.stage[data-hb-mode="compare"] .twin>.zone:nth-child(n+3){align-items:flex-start;padding-top:8px;padding-bottom:0}
}
</style>
<link rel="stylesheet" href="../../../assets/css/demo-page.css?v=10">