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: ScrollTrigger Animation (01.07) is now Scroll-Triggered Animation, named for the technique rather than GSAP's plugin: its page, its neighbors' Previous and Next links, the See also lines and the 01 list
matin2e6eef320f93
diff --git a/animations/01-scroll-based/README.md b/animations/01-scroll-based/README.mdindex aaab4ace..4310c506 100644--- a/animations/01-scroll-based/README.md+++ b/animations/01-scroll-based/README.md@@ -10,7 +10,7 @@ Techniques driven by scroll position.- [Cover Card to Fixed Header](cover-card-to-fixed-header/) — A tall cover shrinks into a slim header as you scroll. Best for articles.- [Fly-in Fly-out Contact List](fly-in-fly-out-contact-list/) — Rows fade and slide as they near the top or bottom edge. Best for long lists.- [Stacking Cards](stacking-cards/) — Cards stick at the top and pile into a deck. Best for step-by-step stories.-- [ScrollTrigger Animation](scroll-trigger/) — Animations start, follow and pin at set scroll points. Best for landing pages.+- [Scroll-Triggered Animation](scroll-trigger/) — Animations start, follow and pin at set scroll points. Best for landing pages.- [Scrub Animation](scrub-animation/) — Scroll plays it forward and back, like dragging a video. Best for product tours.- [Pin Animation](pin-animation/) — One part stays put while its text changes on scroll. Best for feature lists.- [Snap Scrolling](snap-scrolling/) — The box settles on one whole section at a time. Best for slides and galleries.diff --git a/animations/01-scroll-based/pin-animation/README.md b/animations/01-scroll-based/pin-animation/README.mdindex 63739c41..e576d670 100644--- a/animations/01-scroll-based/pin-animation/README.md+++ b/animations/01-scroll-based/pin-animation/README.md@@ -61,5 +61,5 @@ const featureIndex = Math.min(3, Math.floor(p * 4));## See also- [Scrub Animation](../scrub-animation/) — scroll plays an animation forward and back-- [ScrollTrigger Animation](../scroll-trigger/) — animations start, follow and pin at set scroll points+- [Scroll-Triggered Animation](../scroll-trigger/) — animations start, follow and pin at set scroll points- [Sticky Section](../sticky-section/) — a whole section holds still while its content changesdiff --git a/animations/01-scroll-based/reveal-on-scroll/README.md b/animations/01-scroll-based/reveal-on-scroll/README.mdindex 78a94802..e7cf5955 100644--- a/animations/01-scroll-based/reveal-on-scroll/README.md+++ b/animations/01-scroll-based/reveal-on-scroll/README.md@@ -48,6 +48,6 @@ The pre-states live entirely in CSS — for example `[data-fx="blur"]{opacity:0;## See also- [Stagger Reveal](../stagger-reveal/) — items in a group appear one after another-- [ScrollTrigger Animation](../scroll-trigger/) — animations start, follow and pin at set scroll points+- [Scroll-Triggered Animation](../scroll-trigger/) — animations start, follow and pin at set scroll points- [Fly-in Fly-out Contact List](../fly-in-fly-out-contact-list/) — rows fade and slide as they near the edges- [Scrollytelling](../scrollytelling/) — a picture beside the story changes as you readdiff --git a/animations/01-scroll-based/scroll-trigger/README.md b/animations/01-scroll-based/scroll-trigger/README.mdindex 095dbd58..c4730196 100644--- a/animations/01-scroll-based/scroll-trigger/README.md+++ b/animations/01-scroll-based/scroll-trigger/README.md@@ -1,4 +1,4 @@-# ScrollTrigger Animation+# Scroll-Triggered Animation[Live demo](index.html)diff --git a/animations/01-scroll-based/scroll-trigger/index.html b/animations/01-scroll-based/scroll-trigger/index.htmlindex e194890c..e35d8214 100644--- a/animations/01-scroll-based/scroll-trigger/index.html+++ b/animations/01-scroll-based/scroll-trigger/index.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <title>ScrollTrigger Animation — Animation Handbook</title>+ <title>Scroll-Triggered Animation — Animation Handbook</title><meta name="description" content="Animations start, follow and pin at set scroll points. Best for landing pages."><link rel="canonical" href="https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-trigger/"><link rel="icon" type="image/png" sizes="96x96" href="../../../favicon.png">@@ -11,15 +11,15 @@<link rel="apple-touch-icon" href="../../../apple-touch-icon.png"><meta property="og:type" content="article"><meta property="og:site_name" content="Animation Handbook">- <meta property="og:title" content="ScrollTrigger Animation — Animation Handbook">+ <meta property="og:title" content="Scroll-Triggered Animation — Animation Handbook"><meta property="og:description" content="Animations start, follow and pin at set scroll points. Best for landing pages."><meta property="og:url" content="https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-trigger/"><meta property="og:image" content="https://matinmonshizadeh.github.io/animation-handbook/og-image.png"><meta name="twitter:card" content="summary_large_image">- <meta name="twitter:title" content="ScrollTrigger Animation — Animation Handbook">+ <meta name="twitter:title" content="Scroll-Triggered Animation — Animation Handbook"><meta name="twitter:description" content="Animations start, follow and pin at set scroll points. Best for landing pages."><meta name="twitter:image" content="https://matinmonshizadeh.github.io/animation-handbook/og-image.png">- <script type="application/ld+json">{"@context": "https://schema.org", "@type": "TechArticle", "headline": "ScrollTrigger Animation", "name": "ScrollTrigger Animation", "description": "Animations start, follow and pin at set scroll points. Best for landing pages.", "url": "https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-trigger/", "inLanguage": "en", "articleSection": "Scroll-Based", "isPartOf": {"@type": "WebSite", "name": "Animation Handbook", "url": "https://matinmonshizadeh.github.io/animation-handbook/"}, "author": {"@type": "Person", "name": "matinmonshizadeh"}, "keywords": "web animation, CSS animation, Scroll-Based, ScrollTrigger Animation"}</script>+ <script type="application/ld+json">{"@context": "https://schema.org", "@type": "TechArticle", "headline": "Scroll-Triggered Animation", "name": "Scroll-Triggered Animation", "description": "Animations start, follow and pin at set scroll points. Best for landing pages.", "url": "https://matinmonshizadeh.github.io/animation-handbook/animations/01-scroll-based/scroll-trigger/", "inLanguage": "en", "articleSection": "Scroll-Based", "isPartOf": {"@type": "WebSite", "name": "Animation Handbook", "url": "https://matinmonshizadeh.github.io/animation-handbook/"}, "author": {"@type": "Person", "name": "matinmonshizadeh"}, "keywords": "web animation, CSS animation, Scroll-Based, Scroll-Triggered Animation"}</script><style>:root{--ui-accent:#6ea8ff;--ui-bg:#111114;--ui-border:rgba(255,255,255,.09);--ui-muted:#8a8a92}*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}@@ -70,7 +70,7 @@<main class="hb-page"><header class="hb-head"><p class="hb-cat">01.07 · Scroll-Based</p>- <h1>ScrollTrigger Animation</h1>+ <h1>Scroll-Triggered Animation</h1><p class="hb-lede">Animations start, follow and pin at set scroll points. Best for landing pages.</p></header>diff --git a/animations/01-scroll-based/scrollspy-nav/README.md b/animations/01-scroll-based/scrollspy-nav/README.mdindex 5b79e1b0..38f21fcc 100644--- a/animations/01-scroll-based/scrollspy-nav/README.md+++ b/animations/01-scroll-based/scrollspy-nav/README.md@@ -58,6 +58,6 @@ The menu sits inside the scroller, in a row that is zero tall and `position: sti## See also-- [ScrollTrigger Animation](../scroll-trigger/) — things start, scrub and pin as parts of the page scroll past+- [Scroll-Triggered Animation](../scroll-trigger/) — things start, scrub and pin as parts of the page scroll past- [Progress Bar](../progress-bar/) — a bar shows how far you have read- [Snap Scrolling](../snap-scrolling/) — scrolling stops on one whole section at a timediff --git a/animations/01-scroll-based/scrub-animation/README.md b/animations/01-scroll-based/scrub-animation/README.mdindex aa3c11e1..c212e57f 100644--- a/animations/01-scroll-based/scrub-animation/README.md+++ b/animations/01-scroll-based/scrub-animation/README.md@@ -56,6 +56,6 @@ Nothing here is time-based: the Play button under the demo only scrolls the box## See also-- [ScrollTrigger Animation](../scroll-trigger/) — animations start, follow and pin at set scroll points+- [Scroll-Triggered Animation](../scroll-trigger/) — animations start, follow and pin at set scroll points- [Pin Animation](../pin-animation/) — one part holds still while the page scrolls past- [Progress Bar](../progress-bar/) — the same scroll progress, shown as a filling bardiff --git a/animations/01-scroll-based/scrub-animation/index.html b/animations/01-scroll-based/scrub-animation/index.htmlindex cc02b2e5..a8442b6f 100644--- a/animations/01-scroll-based/scrub-animation/index.html+++ b/animations/01-scroll-based/scrub-animation/index.html@@ -65,7 +65,7 @@<body class="hb" data-hb-kind="scroll" data-hb-autoplay><nav class="hb-bar" aria-label="Animation Handbook"><a class="hb-home" href="../../../"><svg class="hb-mark" viewBox="0 0 32 32" aria-hidden="true"><g class="g"><circle cx="11.16" cy="20.84" r="6.1"/><circle cx="15.12" cy="16.88" r="6.1"/><circle cx="18.51" cy="13.49" r="6.1"/></g><circle class="b" cx="21.2" cy="10.8" r="6.6"/></svg><span>Animation Handbook</span></a>- <span class="hb-pager"><a href="../scroll-trigger/" rel="prev" aria-label="Previous: ScrollTrigger Animation"><svg class="hb-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="m15 18-6-6 6-6"/></svg><span><span class="hb-dir">Previous: </span>ScrollTrigger Animation</span></a><a href="../pin-animation/" rel="next" aria-label="Next: Pin Animation"><span><span class="hb-dir">Next: </span>Pin Animation</span><svg class="hb-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="m9 18 6-6-6-6"/></svg></a></span>+ <span class="hb-pager"><a href="../scroll-trigger/" rel="prev" aria-label="Previous: Scroll-Triggered Animation"><svg class="hb-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="m15 18-6-6 6-6"/></svg><span><span class="hb-dir">Previous: </span>Scroll-Triggered Animation</span></a><a href="../pin-animation/" rel="next" aria-label="Next: Pin Animation"><span><span class="hb-dir">Next: </span>Pin Animation</span><svg class="hb-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="m9 18 6-6-6-6"/></svg></a></span></nav><main class="hb-page"><header class="hb-head">diff --git a/animations/01-scroll-based/stacking-cards/index.html b/animations/01-scroll-based/stacking-cards/index.htmlindex 3c5ec307..fba9fe1b 100644--- a/animations/01-scroll-based/stacking-cards/index.html+++ b/animations/01-scroll-based/stacking-cards/index.html@@ -93,7 +93,7 @@<body class="hb" data-hb-kind="scroll" data-hb-autoplay data-hb-motion-note="The cards stack without shrinking"><nav class="hb-bar" aria-label="Animation Handbook"><a class="hb-home" href="../../../"><svg class="hb-mark" viewBox="0 0 32 32" aria-hidden="true"><g class="g"><circle cx="11.16" cy="20.84" r="6.1"/><circle cx="15.12" cy="16.88" r="6.1"/><circle cx="18.51" cy="13.49" r="6.1"/></g><circle class="b" cx="21.2" cy="10.8" r="6.6"/></svg><span>Animation Handbook</span></a>- <span class="hb-pager"><a href="../fly-in-fly-out-contact-list/" rel="prev" aria-label="Previous: Fly-in Fly-out Contact List"><svg class="hb-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="m15 18-6-6 6-6"/></svg><span><span class="hb-dir">Previous: </span>Fly-in Fly-out Contact List</span></a><a href="../scroll-trigger/" rel="next" aria-label="Next: ScrollTrigger Animation"><span><span class="hb-dir">Next: </span>ScrollTrigger Animation</span><svg class="hb-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="m9 18 6-6-6-6"/></svg></a></span>+ <span class="hb-pager"><a href="../fly-in-fly-out-contact-list/" rel="prev" aria-label="Previous: Fly-in Fly-out Contact List"><svg class="hb-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="m15 18-6-6 6-6"/></svg><span><span class="hb-dir">Previous: </span>Fly-in Fly-out Contact List</span></a><a href="../scroll-trigger/" rel="next" aria-label="Next: Scroll-Triggered Animation"><span><span class="hb-dir">Next: </span>Scroll-Triggered Animation</span><svg class="hb-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="m9 18 6-6-6-6"/></svg></a></span></nav><main class="hb-page"><header class="hb-head">