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.
HTML ai-promptsanimationcss-animationsfrontendgithub-pagesjavascriptmicrointeractionsmotion-designno-dependenciesreferencescroll-animationui-animationweb-animationweb-developmentwebgl
fix: SVG Line Draw on Scroll: Compare's copy also holds the end caption, so each half shows it whole at the end of the box
Claudeb95424d88678
diff --git a/animations/01-scroll-based/svg-line-draw/index.html b/animations/01-scroll-based/svg-line-draw/index.htmlindex cdbce64e..91a78316 100644--- a/animations/01-scroll-based/svg-line-draw/index.html+++ b/animations/01-scroll-based/svg-line-draw/index.html@@ -261,7 +261,8 @@copy.querySelectorAll('.ticks,.tip').forEach(el=>el.remove());const copyWps=[...copy.querySelectorAll('.wp')];copyWps.forEach(g=>g.classList.add('on'));- cp.append(copy);map.parentNode.append(cp);+ // the copy's opaque half also holds the end caption, so each half shows it whole+ cp.append(copy,document.querySelector('.scene-cap').cloneNode(true));map.parentNode.append(cp);// The tip and the ticks come from points sampled along the route here, once, so a scroll only reads a tableconst ticks=[...map.querySelectorAll('.ticks line')],tip=map.querySelector('.tip'),NS=240;