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: rootMargin 50% to cover full zone-size slider range (10-40%)

matin4bf561e4d185
diff --git a/animations/01-scroll-based/fly-in-fly-out-contact-list/index.html b/animations/01-scroll-based/fly-in-fly-out-contact-list/index.html
index daf27655..11fa8768 100644
--- a/animations/01-scroll-based/fly-in-fly-out-contact-list/index.html
+++ b/animations/01-scroll-based/fly-in-fly-out-contact-list/index.html
@@ -227,7 +227,7 @@
const io = new IntersectionObserver(entries => {
entries.forEach(e => e.isIntersecting ? visible.add(e.target) : visible.delete(e.target));
- }, { root: stage, rootMargin: '25% 0px', threshold: 0 });
+ }, { root: stage, rootMargin: '50% 0px', threshold: 0 }); // 50% covers max zone size (40%)
rows.forEach(r => io.observe(r));
function lerp(a, b, t) { return a + (b - a) * t; }