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: correct WCAG citation, remove scrolljacking claim, fix grammar and hype word
matin24a68e1b19b5
diff --git a/animations/01-scroll-based/README.md b/animations/01-scroll-based/README.mdindex f2539e33..23af2a16 100644--- a/animations/01-scroll-based/README.md+++ b/animations/01-scroll-based/README.md@@ -8,5 +8,5 @@ Techniques driven by scroll position.parallax translation and blur-based depth-of-field driven by scroll progress.- [Parallax Scrolling](parallax-scrolling/) — Four SVG layers at different scroll speedscreate a 3D depth illusion; adjustable speed multipliers show how ratios make or break the effect.-- [Reverse-Scrolling Columns](reverse-scrolling-columns/) — A center column that scrolls- normally while two flanking columns scroll in the opposite direction, looping infinitely.+- [Reverse-Scrolling Columns](reverse-scrolling-columns/) — center column scrolls normally+ while two flanking columns scroll in reverse, all three looping infinitely.diff --git a/animations/01-scroll-based/reverse-scrolling-columns/README.md b/animations/01-scroll-based/reverse-scrolling-columns/README.mdindex 48e2fb96..e71122c2 100644--- a/animations/01-scroll-based/reverse-scrolling-columns/README.md+++ b/animations/01-scroll-based/reverse-scrolling-columns/README.md@@ -15,7 +15,7 @@ explicit and exaggerated.- Hero layouts where bold visual contrast sets the editorial tone- Portfolio or agency showcases that need motion without heavy assets-- Scrolljacking-free scroll-driven features (the stage drives its own scroll)+- Scroll-driven features where the page scroll remains native and a contained stage drives the effect- Anywhere opposing motion is used intentionally to create visual tension## How it works@@ -29,9 +29,9 @@ Each column contains two identical card sets stacked vertically. A singleconst cOff = scrollTop % singleSetH;centerInner.style.transform = `translate3d(0, ${cOff}px, 0)`;-// Side columns — scroll up at the multiplier's magnitude+// Side columns — negative mult reverses direction; magnitude sets speedconst sideOff = (scrollTop * Math.abs(mult)) % singleSetH;-const sideY = mult >= 0 ? sideOff : -sideOff;+const sideY = mult >= 0 ? sideOff : -sideOff; // positive = down, negative = upsideInner.style.transform = `translate3d(0, ${sideY}px, 0)`;```@@ -47,7 +47,7 @@ exactly with where the first set started.| `mult` | −1.0 | Side-column direction and speed; negative = reverse || `singleSetH` | measured | Height of one card set; determines loop period || Card count | 12 | More cards = longer loop period |-| Scene height | 2000px | Total scroll travel (max scroll ≈ 1380px) |+| Scene height | 2000px | Total scroll travel (max scroll = scene − viewport height) |## Production notes@@ -57,8 +57,8 @@ exactly with where the first set started.- **Vestibular risk at high speed.** Opposing motion is a known vestibulartrigger. In production, keep `|mult|` between 0.3 and 1.0; avoid valuesabove 1.5. Always respect `prefers-reduced-motion` by setting `mult = 0`- (side columns freeze) — opposing motion is specifically listed in WCAG 2.3- as a hazard for motion-sensitive users.+ (side columns freeze) — opposing motion is addressed in WCAG 2.1+ SC 2.3.3 (Animation from Interactions, Level AAA) as a vestibular hazard.- **Library equivalents.** GSAP ScrollTrigger can drive column transformswith `scrub: true` and custom callbacks per column. Locomotive Scrollexposes per-element `data-scroll-speed` attributes that accept negativediff --git a/index.html b/index.htmlindex 1c10091e..6f3bd9f1 100644--- a/index.html+++ b/index.html@@ -33,7 +33,7 @@</li><li><a href="animations/01-scroll-based/reverse-scrolling-columns/">Reverse-Scrolling Columns</a>- <span class="desc" style="display:block">A center column scrolls normally while two flanking columns scroll in reverse, looping infinitely — the opposing motion creates a striking depth contrast.</span>+ <span class="desc" style="display:block">A center column scrolls normally while two flanking columns scroll in reverse, looping infinitely — the opposing motion creates strong directional depth contrast.</span></li></ul></body>