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 11's left panel says it moves on a timer "however you scroll", not "whatever you do", since its own button pauses it

matin80eb24a6e427
diff --git a/learn/follows-the-scroll/index.html b/learn/follows-the-scroll/index.html
index f5f7bf1a..71e36bd9 100644
--- a/learn/follows-the-scroll/index.html
+++ b/learn/follows-the-scroll/index.html
@@ -38,7 +38,7 @@
.track{position:relative;height:var(--ball);border-bottom:2px dashed rgba(255,255,255,.4)}
.runner{position:absolute;inset:0;will-change:transform}
.ball{width:var(--ball);height:var(--ball);border-radius:50%;background:var(--ui-accent)}
- /* Plays by itself: the ball crosses its track on a timer, whatever the visitor does. Its button pauses and plays it. */
+ /* Plays by itself: the ball crosses its track on a timer, however the visitor scrolls. Its button pauses and plays it. */
.clock .runner{animation:cross 2.4s ease-in-out infinite alternate}
.clock[data-ball="paused"] .runner{animation-play-state:paused}
@keyframes cross{to{transform:translateX(calc(100% - var(--ball)))}}
@@ -84,7 +84,7 @@
<div class="view">
<p class="name">Plays by itself</p>
<div class="track"><div class="runner"><div class="ball"></div></div></div>
- <p class="says">Moves on a timer, whatever you do.</p>
+ <p class="says">Moves on a timer, however you scroll.</p>
<button class="toggle" type="button" id="btn-ball">Pause the ball</button>
</div>
</div>
@@ -107,7 +107,7 @@
<section class="hb-why" aria-labelledby="hb-why-title">
<h2 id="hb-why-title">Why it works</h2>
- <p>When an animation follows the scroll, the visitor controls it: scroll slowly and it moves slowly, scroll back and it plays backward, stop and it stops. That ties the movement to reading the page, so it feels like part of it. An animation that plays by itself runs on a clock instead, whatever the visitor does.</p>
+ <p>When an animation follows the scroll, the visitor controls it: scroll slowly and it moves slowly, scroll back and it plays backward, stop and it stops. That ties the movement to reading the page, so it feels like part of it. An animation that plays by itself runs on a clock instead, however the visitor scrolls.</p>
</section>
<section class="hb-seen" aria-labelledby="hb-seen-title">