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: use unicode minus in fmt() to match initial display

matinfa76227ab7af
diff --git a/animations/01-scroll-based/reverse-scrolling-columns/index.html b/animations/01-scroll-based/reverse-scrolling-columns/index.html
index b653ec9a..c2f398b6 100644
--- a/animations/01-scroll-based/reverse-scrolling-columns/index.html
+++ b/animations/01-scroll-based/reverse-scrolling-columns/index.html
@@ -219,7 +219,7 @@
let mult = -1.0;
let ticking = false;
- function fmt(n) { return (n >= 0 ? '+' : '') + n.toFixed(1) + '×'; }
+ function fmt(n) { return (n > 0 ? '+' : n < 0 ? '−' : '') + Math.abs(n).toFixed(1) + '×'; }
function update() {
if (motionMQ.matches) return;