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: lesson 21 draws the mountains and the hills as one shape each, so no faint line shows where two copies met on screens with a fractional pixel ratio

matinde0c0b1776db
diff --git a/learn/far-things-move-slower/index.html b/learn/far-things-move-slower/index.html
index badb0237..93bedd7c 100644
--- a/learn/far-things-move-slower/index.html
+++ b/learn/far-things-move-slower/index.html
@@ -77,14 +77,12 @@
</div>
<div class="strip far">
<svg viewBox="0 0 1600 400" preserveAspectRatio="none" aria-hidden="true">
- <g id="mtn"><polygon fill="#3b4270" points="0,250 70,190 140,230 230,150 320,215 400,175 480,225 560,160 650,220 730,185 800,250 800,400 0,400"/></g>
- <use href="#mtn" x="800"/>
+ <polygon fill="#3b4270" points="0,250 70,190 140,230 230,150 320,215 400,175 480,225 560,160 650,220 730,185 800,250 870,190 940,230 1030,150 1120,215 1200,175 1280,225 1360,160 1450,220 1530,185 1600,250 1600,400 0,400"/>
</svg>
</div>
<div class="strip mid">
<svg viewBox="0 0 1600 400" preserveAspectRatio="none" aria-hidden="true">
- <g id="hill"><path fill="#2a5a52" d="M0 300 C 100 250, 200 250, 300 290 S 500 330, 600 280 S 750 270, 800 300 L 800 400 L 0 400 Z"/></g>
- <use href="#hill" x="800"/>
+ <path fill="#2a5a52" d="M0 300 C 100 250, 200 250, 300 290 S 500 330, 600 280 S 750 270, 800 300 C 900 250, 1000 250, 1100 290 S 1300 330, 1400 280 S 1550 270, 1600 300 L 1600 400 L 0 400 Z"/>
</svg>
</div>
<div class="strip near">