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 American spelling in the page text, READMEs and content-sheet quotes (neighbors, labeled, gray, traveled, traveling)

matin690d8feb6434
diff --git a/animations/01-scroll-based/scrollspy-nav/index.html b/animations/01-scroll-based/scrollspy-nav/index.html
index 0cd045de..2b16f075 100644
--- a/animations/01-scroll-based/scrollspy-nav/index.html
+++ b/animations/01-scroll-based/scrollspy-nav/index.html
@@ -33,7 +33,7 @@
.spy-ind{position:absolute;left:0;top:10px;width:3px;height:44px;background:var(--ui-accent);border-radius:2px;transition:transform .25s ease}
.spy-link{display:flex;align-items:center;min-height:44px;padding:0 14px;font:inherit;font-size:14px;font-weight:500;color:var(--ui-muted);background:none;border:0;cursor:pointer;text-align:left;transition:color .25s ease;white-space:nowrap}
.spy-link.on{color:var(--ui-accent)}
- /* After a jump (Back to top, Play starting over) the marker and links change at once instead of travelling */
+ /* After a jump (Back to top, Play starting over) the marker and links change at once instead of traveling */
.spy-nav.jump .spy-ind,.spy-nav.jump .spy-link{transition:none}
@media(hover:hover){.spy-link:hover{color:var(--ui-text)}.spy-link.on:hover{color:var(--ui-accent)}}
.sec{min-height:500px;padding:36px 28px 36px 200px}
diff --git a/animations/01-scroll-based/scrollytelling/index.html b/animations/01-scroll-based/scrollytelling/index.html
index 05450010..fc53fd39 100644
--- a/animations/01-scroll-based/scrollytelling/index.html
+++ b/animations/01-scroll-based/scrollytelling/index.html
@@ -166,7 +166,7 @@
// The scroll position at which each chapter's top reaches the reading line; the first chapter is current from the start
const reach=els.map((el,i)=>i?el.getBoundingClientRect().top-origin-line:0);
let cur=N-1;while(cur>0&&st<reach[cur])cur--;
- // The last chapter to cross the line, and how far the line has travelled from its top toward the next chapter's top
+ // The last chapter to cross the line, and how far the line has traveled from its top toward the next chapter's top
let frac=cur<N-1?cur+(st-reach[cur])/(reach[cur+1]-reach[cur]):cur;
frac=clamp(frac,0,N-0.001);
const ci=Math.floor(frac),cf=frac-ci;
diff --git a/animations/01-scroll-based/scrub-animation/index.html b/animations/01-scroll-based/scrub-animation/index.html
index cf14f14a..5c3c6ef7 100644
--- a/animations/01-scroll-based/scrub-animation/index.html
+++ b/animations/01-scroll-based/scrub-animation/index.html
@@ -141,7 +141,7 @@
<div><h2 id="hb-prompt-title">Copy the prompt</h2><p>Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.</p></div>
</div>
<div class="hb-card">
- <p class="hb-prompt">Add a scroll-scrubbed animation to [your illustration or product explainer]. Hold the scene in view while the visitor scrolls through a taller section, and turn how far they have scrolled into a progress value from 0 to 1. Draw the whole route up front, place the moving object at the point on it that matches the progress, facing along the path, and fill in the part already travelled. Nothing plays on a timer: scrolling back simply moves it back. Shape the progress with the easing given in the settings. If the visitor has reduced motion turned on, drop decorative effects but keep the object following the scroll. Match the settings listed below.</p>
+ <p class="hb-prompt">Add a scroll-scrubbed animation to [your illustration or product explainer]. Hold the scene in view while the visitor scrolls through a taller section, and turn how far they have scrolled into a progress value from 0 to 1. Draw the whole route up front, place the moving object at the point on it that matches the progress, facing along the path, and fill in the part already traveled. Nothing plays on a timer: scrolling back simply moves it back. Shape the progress with the easing given in the settings. If the visitor has reduced motion turned on, drop decorative effects but keep the object following the scroll. Match the settings listed below.</p>
<div class="hb-chips-box" hidden>
<p class="hb-chips-title">Your settings</p>
<ul class="hb-chips"></ul>
diff --git a/animations/01-scroll-based/svg-line-draw/README.md b/animations/01-scroll-based/svg-line-draw/README.md
index 6c755ba7..69a25c4f 100644
--- a/animations/01-scroll-based/svg-line-draw/README.md
+++ b/animations/01-scroll-based/svg-line-draw/README.md
@@ -4,7 +4,7 @@
## What it is
-A scroll-drawn line is a long winding route that draws itself as you scroll down it, like a journey being traced on a map. Labelled stops along the way pop in as the line reaches them, and scrolling back up erases the line again. A faint dashed copy of the route shows where it is heading.
+A scroll-drawn line is a long winding route that draws itself as you scroll down it, like a journey being traced on a map. Labeled stops along the way pop in as the line reaches them, and scrolling back up erases the line again. A faint dashed copy of the route shows where it is heading.
## When to use it
@@ -24,7 +24,7 @@ path.style.strokeDasharray = LEN;
// per scroll frame (coalesced with requestAnimationFrame):
const p = ease(clamp(stage.scrollTop / maxScroll, 0, 1)); // Feel: p for Even, 1 - (1 - p)^3 for Smooth
const drawn = Math.min(LEN, LEN * p / COMPLETE_AT); // COMPLETE_AT below 1 finishes before the scroll does
-path.style.strokeDashoffset = LEN - drawn; // reveal the travelled portion
+path.style.strokeDashoffset = LEN - drawn; // reveal the traveled portion
```
`COMPLETE_AT` is 1 by default, so the line finishes as the scroll does and its tip stays inside the box while it is drawn with Even (Smooth draws ahead early in the scroll). A smaller value finishes the line earlier: the rest of the scroll then shows the finished route, but the tip runs ahead of the box, because the route is many boxes tall.
@@ -54,7 +54,7 @@ The pop itself is CSS — `.on` transitions the waypoint from `scale(.6)` and `o
| Parameter | Default | Effect |
|-----------|---------|--------|
| Feel | Even | Even keeps the tip of the line level with your scroll; Smooth draws quickly at first and slows toward the end |
-| Shows the stops | on | Five labelled stops pop in as the line reaches them and hide again when you scroll back |
+| Shows the stops | on | Five labeled stops pop in as the line reaches them and hide again when you scroll back |
| Line finishes | At the end | How far through the scrolling the line is complete: early at 70%, near the end at 85% and at the end at 100%; finishing early shows the whole route before you reach the bottom |
## Production notes
diff --git a/animations/01-scroll-based/svg-line-draw/index.html b/animations/01-scroll-based/svg-line-draw/index.html
index 004e9c72..9cfa34c7 100644
--- a/animations/01-scroll-based/svg-line-draw/index.html
+++ b/animations/01-scroll-based/svg-line-draw/index.html
@@ -105,7 +105,7 @@
</div>
<div class="hb-setting">
<label class="hb-switch-row"><span>Shows the stops</span><input class="hb-switch" type="checkbox" role="switch" id="wp-tog" checked autocomplete="off"></label>
- <p class="hb-hint">Labelled points pop in as the line reaches them.</p>
+ <p class="hb-hint">Labeled points pop in as the line reaches them.</p>
</div>
</div>
<details class="hb-options">
@@ -130,7 +130,7 @@
<div><h2 id="hb-prompt-title">Copy the prompt</h2><p>Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.</p></div>
</div>
<div class="hb-card">
- <p class="hb-prompt">Add a scroll-drawn route to [your timeline, journey or process steps]. Draw a long winding path down the page with a faint dashed copy underneath, and reveal the solid line in step with the scroll so its tip travels down with the visitor. Measure the path's length once and reveal it by sliding a single dash that is exactly as long as the path. When the settings include them, place labelled stops along the path and pop each one in as the line reaches it; scrolling back up erases the line and hides them again. If the visitor has reduced motion turned on, show each stop without the pop. Match the settings listed below.</p>
+ <p class="hb-prompt">Add a scroll-drawn route to [your timeline, journey or process steps]. Draw a long winding path down the page with a faint dashed copy underneath, and reveal the solid line in step with the scroll so its tip travels down with the visitor. Measure the path's length once and reveal it by sliding a single dash that is exactly as long as the path. When the settings include them, place labeled stops along the path and pop each one in as the line reaches it; scrolling back up erases the line and hides them again. If the visitor has reduced motion turned on, show each stop without the pop. Match the settings listed below.</p>
<div class="hb-chips-box" hidden>
<p class="hb-chips-title">Your settings</p>
<ul class="hb-chips"></ul>
diff --git a/animations/01-scroll-based/text-fill-on-scroll/index.html b/animations/01-scroll-based/text-fill-on-scroll/index.html
index 71545fee..de86cdb6 100644
--- a/animations/01-scroll-based/text-fill-on-scroll/index.html
+++ b/animations/01-scroll-based/text-fill-on-scroll/index.html
@@ -111,7 +111,7 @@
<div><h2 id="hb-prompt-title">Copy the prompt</h2><p>Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.</p></div>
</div>
<div class="hb-card">
- <p class="hb-prompt">Add a scroll-driven text fill to [the statement or paragraph you want read]. Pin the paragraph in place while the visitor scrolls through a section a few screens tall. Split it into words, show every word in a dim but readable grey, and light the words up one by one in step with the scroll, so how far the reader has scrolled decides how much is lit and scrolling back up un-lights them. When the settings include it, show the next word to fill in a highlight color, like a reading cursor. Keep it real text for screen readers. If the visitor has reduced motion turned on, change each word's color without fading. Match the settings listed below.</p>
+ <p class="hb-prompt">Add a scroll-driven text fill to [the statement or paragraph you want read]. Pin the paragraph in place while the visitor scrolls through a section a few screens tall. Split it into words, show every word in a dim but readable gray, and light the words up one by one in step with the scroll, so how far the reader has scrolled decides how much is lit and scrolling back up un-lights them. When the settings include it, show the next word to fill in a highlight color, like a reading cursor. Keep it real text for screen readers. If the visitor has reduced motion turned on, change each word's color without fading. Match the settings listed below.</p>
<div class="hb-chips-box" hidden>
<p class="hb-chips-title">Your settings</p>
<ul class="hb-chips"></ul>
diff --git a/animations/03-page-transitions/zoom-transition/README.md b/animations/03-page-transitions/zoom-transition/README.md
index 214d1500..eb0903a5 100644
--- a/animations/03-page-transitions/zoom-transition/README.md
+++ b/animations/03-page-transitions/zoom-transition/README.md
@@ -1,7 +1,7 @@
# Zoom Transition
## What it is
-A zoom transition scales the pages as they fade, so the change seems to move through depth rather than across the screen. The direction carries meaning: zooming in feels like arriving or going deeper, zooming out like backing away, and a pull-through — where the new page rushes in from larger and settles — feels like travelling forward.
+A zoom transition scales the pages as they fade, so the change seems to move through depth rather than across the screen. The direction carries meaning: zooming in feels like arriving or going deeper, zooming out like backing away, and a pull-through — where the new page rushes in from larger and settles — feels like traveling forward.
## When to use it
- Drilling into detail from an overview, where zoom-in reinforces "going deeper"
diff --git a/animations/03-page-transitions/zoom-transition/index.html b/animations/03-page-transitions/zoom-transition/index.html
index 394e440a..b8521e49 100644
--- a/animations/03-page-transitions/zoom-transition/index.html
+++ b/animations/03-page-transitions/zoom-transition/index.html
@@ -123,7 +123,7 @@
<div><h2 id="hb-prompt-title">Copy the prompt</h2><p>Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.</p></div>
</div>
<div class="hb-card">
- <p class="hb-prompt">Add a zoom transition to [the pages or views you want to move between]. When the page changes, scale the old and the new page while one fades out and the other fades in, so the change seems to move through depth rather than across the screen. Zooming in, where the new page grows into place, feels like going deeper; zooming out feels like stepping back; a pull-through, where the new page rushes in from larger, feels like travelling forward. Scale with transforms only, and keep the fade so no hard edge shows. If the visitor has reduced motion turned on, swap pages without scaling. Match the settings listed below.</p>
+ <p class="hb-prompt">Add a zoom transition to [the pages or views you want to move between]. When the page changes, scale the old and the new page while one fades out and the other fades in, so the change seems to move through depth rather than across the screen. Zooming in, where the new page grows into place, feels like going deeper; zooming out feels like stepping back; a pull-through, where the new page rushes in from larger, feels like traveling forward. Scale with transforms only, and keep the fade so no hard edge shows. If the visitor has reduced motion turned on, swap pages without scaling. Match the settings listed below.</p>
<div class="hb-chips-box" hidden>
<p class="hb-chips-title">Your settings</p>
<ul class="hb-chips"></ul>
diff --git a/animations/04-micro-interactions/star-rating/README.md b/animations/04-micro-interactions/star-rating/README.md
index 88ac6e0a..8bf80487 100644
--- a/animations/04-micro-interactions/star-rating/README.md
+++ b/animations/04-micro-interactions/star-rating/README.md
@@ -36,7 +36,7 @@ The pointer position within a star decides the value — left half rounds to `.5
## Production notes
- **Accessibility**: this demo exposes the row as a single `role="slider"` with `aria-valuemin/max/now` and an `aria-valuetext` ("3 out of 5"), which handles half-steps cleanly from the keyboard. A `role="radiogroup"` of `radio` stars is the other idiomatic choice and maps better to discrete whole-star ratings; pick the model that matches whether half values exist.
- **Keyboard**: arrow keys step by the current increment, Home clears to 0, End jumps to max. The control must be focusable (`tabindex="0"`) and show a visible focus ring — rating with the mouse only is not enough.
-- **Don't rely on color alone**: fill is reinforced by the numeric readout below the row so the value survives for colorblind users and greyscale. Never encode the score in hue by itself.
+- **Don't rely on color alone**: fill is reinforced by the numeric readout below the row so the value survives for colorblind users and grayscale. Never encode the score in hue by itself.
- **Half-star handling**: resolve the half from the pointer's horizontal position inside the hovered star, and keep the committed value and the hover preview separate so leaving the row restores the committed rating rather than a stray hover state.
- **Touch targets**: each star box is at least 44×44px and the control uses Pointer Events, so hover-preview and tap-to-commit both work on touch. There is no CSS `:hover` style, so nothing stays painted after a tap; the preview comes from `pointermove`, and a finger's drag asks `document.elementFromPoint` which star is under it.
- **Library equivalents**: Framer Motion can drive the pop with a `whileTap`/`animate` scale spring; many form kits (e.g. rating inputs in headless UI libraries) ship the radiogroup semantics so you only style the stars.
diff --git a/animations/04-micro-interactions/theme-toggle-morph/README.md b/animations/04-micro-interactions/theme-toggle-morph/README.md
index bd838a4c..b6aafa03 100644
--- a/animations/04-micro-interactions/theme-toggle-morph/README.md
+++ b/animations/04-micro-interactions/theme-toggle-morph/README.md
@@ -8,7 +8,7 @@ A theme toggle morph is one icon that turns from a sun into a crescent moon when
- Any binary appearance toggle where the two options have natural iconography (sun/moon, on/off, day/night).
- Places where a plain checkbox would feel abrupt and a short morph makes the state change legible without a full page flash.
-Reach for a plain labelled switch instead when the control sits in a dense form, or when users may not read a sun/moon as "theme" without a text label beside it.
+Reach for a plain labeled switch instead when the control sits in a dense form, or when users may not read a sun/moon as "theme" without a text label beside it.
## How it works
The icon is one inline SVG: a filled `disc`, a group of eight `line` rays, and a `mask` containing a movable `cutout` circle. In the light state the cutout sits off the disc, so the disc renders whole and the rays are visible. Toggling adds a `.dark` class that scales the rays to zero from the icon's center and slides the cutout circle over the disc — the mask subtracts that overlap, leaving a crescent. A separate flip card rotates on the same duration and easing. The rays, the disc, the cut-out circle and the card change only `transform` and `opacity`. The icon's color fades from orange to lavender through a `color` transition on the button, which the SVG picks up with `currentColor`.
diff --git a/animations/05-text-typography/typewriter-effect/index.html b/animations/05-text-typography/typewriter-effect/index.html
index e03eced6..0003f922 100644
--- a/animations/05-text-typography/typewriter-effect/index.html
+++ b/animations/05-text-typography/typewriter-effect/index.html
@@ -204,7 +204,7 @@
// types: an invisible copy of the finished text, and, when Deletes and retypes is on, of the retyped
// ending too (deleting and retyping always ends up back at the full text, plus " — always.").
// The typed text changes with every keystroke, so it is hidden from screen readers; the wrapper is one image
- // labelled with the finished text instead, which they read once.
+ // labeled with the finished text instead, which they read once.
function syncGhosts(text){
const retyped=text+' — always.';
ghostFull.textContent=text;
diff --git a/animations/05-text-typography/wavy-text/README.md b/animations/05-text-typography/wavy-text/README.md
index 3c2ea895..90aaa061 100644
--- a/animations/05-text-typography/wavy-text/README.md
+++ b/animations/05-text-typography/wavy-text/README.md
@@ -10,7 +10,7 @@ Wavy text sends a wave rolling across a word. Every letter bobs up and down with
- Music, party, or beach-themed sites where a liquid feel fits the tone
## How it works
-JavaScript splits the string into one `<span>` per character and stamps each with an index custom property `--i`. Every span shares a single `bob` keyframe that translates it on the Y axis; the per-letter `animation-delay` of `--i × stagger` phases each letter behind its neighbour, producing the travelling wave:
+JavaScript splits the string into one `<span>` per character and stamps each with an index custom property `--i`. Every span shares a single `bob` keyframe that translates it on the Y axis; the per-letter `animation-delay` of `--i × stagger` phases each letter behind its neighbor, producing the traveling wave:
```js
[...str].forEach((ch,i)=>{
@@ -40,7 +40,7 @@ Only `transform` animates, so the effect stays on the compositor and runs at 60f
|-----------|---------|--------|
| Wave height | Medium | How far each letter travels: low is 8px, medium 16px and high 28px; larger makes a taller wave |
| Speed | Normal | How long one rise and fall takes: slow is 2.6s, normal 1.6s and fast 1s |
-| Delay between letters | Medium | The gap between neighbouring letters: short is 30ms, medium 60ms and long 120ms; longer delays stretch the wave |
+| Delay between letters | Medium | The gap between neighboring letters: short is 30ms, medium 60ms and long 120ms; longer delays stretch the wave |
| Your text | Wavy | The word that waves, up to 14 letters |
## Production notes
diff --git a/animations/06-3d-advanced/cloth-simulation/README.md b/animations/06-3d-advanced/cloth-simulation/README.md
index 74ffba80..02d868cf 100644
--- a/animations/06-3d-advanced/cloth-simulation/README.md
+++ b/animations/06-3d-advanced/cloth-simulation/README.md
@@ -1,7 +1,7 @@
# Cloth / Soft-Body Simulation
## What it is
-A cloth simulation treats fabric as a grid of points joined by links of fixed length. Sixty times a second, every point keeps moving the way it was moving, plus gravity and wind, and then the links pull neighbouring points back into shape. Pin a few points and the grid hangs, sways and folds like fabric, and you can grab it.
+A cloth simulation treats fabric as a grid of points joined by links of fixed length. Sixty times a second, every point keeps moving the way it was moving, plus gravity and wind, and then the links pull neighboring points back into shape. Pin a few points and the grid hangs, sways and folds like fabric, and you can grab it.
## When to use it
- Animated flags and banners on hero sections
diff --git a/animations/06-3d-advanced/cloth-simulation/index.html b/animations/06-3d-advanced/cloth-simulation/index.html
index 2b68aa6c..0a4aa2fa 100644
--- a/animations/06-3d-advanced/cloth-simulation/index.html
+++ b/animations/06-3d-advanced/cloth-simulation/index.html
@@ -125,7 +125,7 @@
<div><h2 id="hb-prompt-title">Copy the prompt</h2><p>Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.</p></div>
</div>
<div class="hb-card">
- <p class="hb-prompt">Add a cloth simulation to [the flag, banner or fabric you want to show]. Model the cloth as a grid of points joined to their neighbours by links of fixed length. In fixed 1/60 s steps, as many as the time since the last frame needs, move every point by its own momentum plus gravity and wind, then pull linked points back toward their proper distance a few times over, so the cloth moves at the same speed on every screen. Pin some points so the cloth hangs, and let the visitor grab and drag the nearest point with the pointer or a finger. Use a coarser grid on phones. If the visitor has reduced motion turned on, show the cloth hanging still. Match the settings listed below.</p>
+ <p class="hb-prompt">Add a cloth simulation to [the flag, banner or fabric you want to show]. Model the cloth as a grid of points joined to their neighbors by links of fixed length. In fixed 1/60 s steps, as many as the time since the last frame needs, move every point by its own momentum plus gravity and wind, then pull linked points back toward their proper distance a few times over, so the cloth moves at the same speed on every screen. Pin some points so the cloth hangs, and let the visitor grab and drag the nearest point with the pointer or a finger. Use a coarser grid on phones. If the visitor has reduced motion turned on, show the cloth hanging still. Match the settings listed below.</p>
<div class="hb-chips-box" hidden>
<p class="hb-chips-title">Your settings</p>
<ul class="hb-chips"></ul>
diff --git a/animations/06-3d-advanced/glassmorphism-animated/index.html b/animations/06-3d-advanced/glassmorphism-animated/index.html
index 9b60bf27..0b96ab8b 100644
--- a/animations/06-3d-advanced/glassmorphism-animated/index.html
+++ b/animations/06-3d-advanced/glassmorphism-animated/index.html
@@ -190,7 +190,7 @@
<div><h2 id="hb-prompt-title">Copy the prompt</h2><p>Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.</p></div>
</div>
<div class="hb-card">
- <p class="hb-prompt">Add frosted glass to [the cards or panels you want to style]. Give each card a see-through tinted background, blur whatever sits behind it, and add a thin light edge. Put colorful shapes that drift slowly behind the cards, with a faint pattern of dots over them, because glass over plain color looks grey and shows no frost. Put a see-through dark layer inside each card under its text so the words stay readable. A card can also breathe, its blur growing and fading, or slowly change its tint. Blurring costs a lot, so keep the glass to small cards and blur the shapes less on phones. If the visitor has reduced motion turned on, keep everything still. Match the settings listed below.</p>
+ <p class="hb-prompt">Add frosted glass to [the cards or panels you want to style]. Give each card a see-through tinted background, blur whatever sits behind it, and add a thin light edge. Put colorful shapes that drift slowly behind the cards, with a faint pattern of dots over them, because glass over plain color looks gray and shows no frost. Put a see-through dark layer inside each card under its text so the words stay readable. A card can also breathe, its blur growing and fading, or slowly change its tint. Blurring costs a lot, so keep the glass to small cards and blur the shapes less on phones. If the visitor has reduced motion turned on, keep everything still. Match the settings listed below.</p>
<div class="hb-chips-box" hidden>
<p class="hb-chips-title">Your settings</p>
<ul class="hb-chips"></ul>
diff --git a/animations/06-3d-advanced/noise-based-motion/README.md b/animations/06-3d-advanced/noise-based-motion/README.md
index c7c84d38..8f9c2d85 100644
--- a/animations/06-3d-advanced/noise-based-motion/README.md
+++ b/animations/06-3d-advanced/noise-based-motion/README.md
@@ -1,7 +1,7 @@
# Noise-Based Motion
## What it is
-Noise-based motion uses smooth noise, a random value that changes gradually from place to place, to move things naturally. Plain random numbers jump about; noise drifts, so neighbouring dots move alike and nothing jerks. The demo turns it into a field of dots swaying like grass in the wind, and into a blob whose edge ripples.
+Noise-based motion uses smooth noise, a random value that changes gradually from place to place, to move things naturally. Plain random numbers jump about; noise drifts, so neighboring dots move alike and nothing jerks. The demo turns it into a field of dots swaying like grass in the wind, and into a blob whose edge ripples.
## When to use it
- Organic background elements: floating dots, undulating blobs, rippling grids
diff --git a/animations/06-3d-advanced/scroll-driven-3d-rotation/index.html b/animations/06-3d-advanced/scroll-driven-3d-rotation/index.html
index 41615cf5..eea96cfc 100644
--- a/animations/06-3d-advanced/scroll-driven-3d-rotation/index.html
+++ b/animations/06-3d-advanced/scroll-driven-3d-rotation/index.html
@@ -72,7 +72,7 @@
<div class="scroll-content">
<div class="sticky-wrap">
<div class="obj-panel">
- <div class="obj-wrap" id="obj-wrap" role="img" aria-label="A cube with its six faces labelled front, back, left, right, top and bottom">
+ <div class="obj-wrap" id="obj-wrap" role="img" aria-label="A cube with its six faces labeled front, back, left, right, top and bottom">
<div class="cube">
<div class="face front"><span>FRONT</span></div>
<div class="face back"><span>BACK</span></div>
@@ -120,7 +120,7 @@
<div><h2 id="hb-prompt-title">Copy the prompt</h2><p>Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.</p></div>
</div>
<div class="hb-card">
- <p class="hb-prompt">Add a scroll-driven 3D rotation to [the product or object you want to show]. Pin the object in view while the visitor scrolls through a tall section, and turn the scroll position, from the top of the section to its end, into a series of poses: turned to one side, tilted forward, larger, then turned round to show its back. Blend smoothly between neighbouring poses so scrolling back plays it in reverse, and when the settings include it, let the object glide to catch up instead of jumping with the scroll. If the visitor has reduced motion turned on, follow the scroll exactly, with no gliding. Match the settings listed below.</p>
+ <p class="hb-prompt">Add a scroll-driven 3D rotation to [the product or object you want to show]. Pin the object in view while the visitor scrolls through a tall section, and turn the scroll position, from the top of the section to its end, into a series of poses: turned to one side, tilted forward, larger, then turned round to show its back. Blend smoothly between neighboring poses so scrolling back plays it in reverse, and when the settings include it, let the object glide to catch up instead of jumping with the scroll. If the visitor has reduced motion turned on, follow the scroll exactly, with no gliding. Match the settings listed below.</p>
<div class="hb-chips-box" hidden>
<p class="hb-chips-title">Your settings</p>
<ul class="hb-chips"></ul>
diff --git a/animations/07-ambient-background/abstract-geometric-motion/index.html b/animations/07-ambient-background/abstract-geometric-motion/index.html
index 76ae5a7c..9988052f 100644
--- a/animations/07-ambient-background/abstract-geometric-motion/index.html
+++ b/animations/07-ambient-background/abstract-geometric-motion/index.html
@@ -157,7 +157,7 @@
let W=0,H=0,raf=null,lastT=null,paused=false;
let t=0; // the pattern's own time: it moves only while the loop runs
let rings=[],ringT=0; // the rings on screen, and the time the last one was sent out
- let barX=0,dashPhase=0; // how far the bars and the dashes have travelled, so a Speed change never moves them
+ let barX=0,dashPhase=0; // how far the bars and the dashes have traveled, so a Speed change never moves them
let PRESET=0,SPD=0.6,CX=6,PAL='cool',CONTRAST=false;
const PALETTES={
cool:c=>`hsla(${200+c*10},70%,65%,`,
diff --git a/docs/superpowers/plans/2026-09-28-text-typography-content.md b/docs/superpowers/plans/2026-09-28-text-typography-content.md
index e4914dd6..ddf7292f 100644
--- a/docs/superpowers/plans/2026-09-28-text-typography-content.md
+++ b/docs/superpowers/plans/2026-09-28-text-typography-content.md
@@ -1070,7 +1070,7 @@ None: leave out the `details.hb-options` block.
|-----------|---------|--------|
| Wave height | Medium | How far each letter travels: low is 8px, medium 16px and high 28px; larger makes a taller wave |
| Speed | Normal | How long one rise and fall takes: slow is 2.6s, normal 1.6s and fast 1s |
- | Delay between letters | Medium | The gap between neighbouring letters: short is 30ms, medium 60ms and long 120ms; longer delays stretch the wave |
+ | Delay between letters | Medium | The gap between neighboring letters: short is 30ms, medium 60ms and long 120ms; longer delays stretch the wave |
| Your text | Wavy | The word that waves, up to 14 letters |
- **README See also:**
diff --git a/docs/superpowers/plans/2026-09-29-3d-content.md b/docs/superpowers/plans/2026-09-29-3d-content.md
index 81568cc6..114be9c9 100644
--- a/docs/superpowers/plans/2026-09-29-3d-content.md
+++ b/docs/superpowers/plans/2026-09-29-3d-content.md
@@ -252,7 +252,7 @@ None: leave out the `details.hb-options` block.
- **Good for:** Product tours · Device launches · Landing pages · Storytelling sections · **Avoid on:** Short pages · Forms and dashboards
- **Prompt:**
- > Add a scroll-driven 3D rotation to [the product or object you want to show]. Pin the object in view while the visitor scrolls through a tall section, and turn the scroll position, from the top of the section to its end, into a series of poses: turned to one side, tilted forward, larger, then turned round to show its back. Blend smoothly between neighbouring poses so scrolling back plays it in reverse, and when the settings include it, let the object glide to catch up instead of jumping with the scroll. If the visitor has reduced motion turned on, follow the scroll exactly, with no gliding. Match the settings listed below.
+ > Add a scroll-driven 3D rotation to [the product or object you want to show]. Pin the object in view while the visitor scrolls through a tall section, and turn the scroll position, from the top of the section to its end, into a series of poses: turned to one side, tilted forward, larger, then turned round to show its back. Blend smoothly between neighboring poses so scrolling back plays it in reverse, and when the settings include it, let the object glide to catch up instead of jumping with the scroll. If the visitor has reduced motion turned on, follow the scroll exactly, with no gliding. Match the settings listed below.
- **README What it is:** rewritten:
@@ -582,7 +582,7 @@ None: leave out the `details.hb-options` block.
- **Good for:** Cards and panels · Dashboards · Modals · Navigation bars · **Avoid on:** Plain backgrounds · Large surfaces
- **Prompt:**
- > Add frosted glass to [the cards or panels you want to style]. Give each card a see-through tinted background, blur whatever sits behind it, and add a thin light edge. Put colorful shapes that drift slowly behind the cards, with a faint pattern of dots over them, because glass over plain color looks grey and shows no frost. Put a see-through dark layer inside each card under its text so the words stay readable. A card can also breathe, its blur growing and fading, or slowly change its tint. Blurring costs a lot, so keep the glass to small cards and blur the shapes less on phones. If the visitor has reduced motion turned on, keep everything still. Match the settings listed below.
+ > Add frosted glass to [the cards or panels you want to style]. Give each card a see-through tinted background, blur whatever sits behind it, and add a thin light edge. Put colorful shapes that drift slowly behind the cards, with a faint pattern of dots over them, because glass over plain color looks gray and shows no frost. Put a see-through dark layer inside each card under its text so the words stay readable. A card can also breathe, its blur growing and fading, or slowly change its tint. Blurring costs a lot, so keep the glass to small cards and blur the shapes less on phones. If the visitor has reduced motion turned on, keep everything still. Match the settings listed below.
- **README What it is:** rewritten:
@@ -741,7 +741,7 @@ None: leave out the `details.hb-options` block.
- **README What it is:** rewritten:
- > Noise-based motion uses smooth noise, a random value that changes gradually from place to place, to move things naturally. Plain random numbers jump about; noise drifts, so neighbouring dots move alike and nothing jerks. The demo turns it into a field of dots swaying like grass in the wind, and into a blob whose edge ripples.
+ > Noise-based motion uses smooth noise, a random value that changes gradually from place to place, to move things naturally. Plain random numbers jump about; noise drifts, so neighboring dots move alike and nothing jerks. The demo turns it into a field of dots swaying like grass in the wind, and into a blob whose edge ripples.
- **README Key parameters:**
@@ -1308,11 +1308,11 @@ None: leave out the `details.hb-options` block.
- **Good for:** Flags and banners · Playful pages · Fashion and textiles · **Avoid on:** Behind text · Serious content
- **Prompt:**
- > Add a cloth simulation to [the flag, banner or fabric you want to show]. Model the cloth as a grid of points joined to their neighbours by links of fixed length. In fixed 1/60 s steps, as many as the time since the last frame needs, move every point by its own momentum plus gravity and wind, then pull linked points back toward their proper distance a few times over, so the cloth moves at the same speed on every screen. Pin some points so the cloth hangs, and let the visitor grab and drag the nearest point with the pointer or a finger. Use a coarser grid on phones. If the visitor has reduced motion turned on, show the cloth hanging still. Match the settings listed below.
+ > Add a cloth simulation to [the flag, banner or fabric you want to show]. Model the cloth as a grid of points joined to their neighbors by links of fixed length. In fixed 1/60 s steps, as many as the time since the last frame needs, move every point by its own momentum plus gravity and wind, then pull linked points back toward their proper distance a few times over, so the cloth moves at the same speed on every screen. Pin some points so the cloth hangs, and let the visitor grab and drag the nearest point with the pointer or a finger. Use a coarser grid on phones. If the visitor has reduced motion turned on, show the cloth hanging still. Match the settings listed below.
- **README What it is:** rewritten:
- > A cloth simulation treats fabric as a grid of points joined by links of fixed length. Sixty times a second, every point keeps moving the way it was moving, plus gravity and wind, and then the links pull neighbouring points back into shape. Pin a few points and the grid hangs, sways and folds like fabric, and you can grab it.
+ > A cloth simulation treats fabric as a grid of points joined by links of fixed length. Sixty times a second, every point keeps moving the way it was moving, plus gravity and wind, and then the links pull neighboring points back into shape. Pin a few points and the grid hangs, sways and folds like fabric, and you can grab it.
- **README Key parameters:**
diff --git a/docs/superpowers/plans/2026-09-29-scroll-content-part1.md b/docs/superpowers/plans/2026-09-29-scroll-content-part1.md
index be19fa0d..f5a432a1 100644
--- a/docs/superpowers/plans/2026-09-29-scroll-content-part1.md
+++ b/docs/superpowers/plans/2026-09-29-scroll-content-part1.md
@@ -645,7 +645,7 @@ None: leave out the `details.hb-options` block.
- **Good for:** Product tours · Explainers · Step-by-step diagrams · **Avoid on:** Short sections · Key information
- **Prompt:**
- > Add a scroll-scrubbed animation to [your illustration or product explainer]. Hold the scene in view while the visitor scrolls through a taller section, and turn how far they have scrolled into a progress value from 0 to 1. Draw the whole route up front, place the moving object at the point on it that matches the progress, facing along the path, and fill in the part already travelled. Nothing plays on a timer: scrolling back simply moves it back. Shape the progress with the easing given in the settings. If the visitor has reduced motion turned on, drop decorative effects but keep the object following the scroll. Match the settings listed below.
+ > Add a scroll-scrubbed animation to [your illustration or product explainer]. Hold the scene in view while the visitor scrolls through a taller section, and turn how far they have scrolled into a progress value from 0 to 1. Draw the whole route up front, place the moving object at the point on it that matches the progress, facing along the path, and fill in the part already traveled. Nothing plays on a timer: scrolling back simply moves it back. Shape the progress with the easing given in the settings. If the visitor has reduced motion turned on, drop decorative effects but keep the object following the scroll. Match the settings listed below.
- **README What it is:** rewritten:
diff --git a/docs/superpowers/plans/2026-09-29-scroll-content-part2.md b/docs/superpowers/plans/2026-09-29-scroll-content-part2.md
index e3970a49..62b1ead4 100644
--- a/docs/superpowers/plans/2026-09-29-scroll-content-part2.md
+++ b/docs/superpowers/plans/2026-09-29-scroll-content-part2.md
@@ -808,7 +808,7 @@ None: leave out the `details.hb-options` block.
- **Good for:** Key statements · Manifestos · Landing page intros · **Avoid on:** Body text · Long articles
- **Prompt:**
- > Add a scroll-driven text fill to [the statement or paragraph you want read]. Pin the paragraph in place while the visitor scrolls through a section a few screens tall. Split it into words, show every word in a dim but readable grey, and light the words up one by one in step with the scroll, so how far the reader has scrolled decides how much is lit and scrolling back up un-lights them. When the settings include it, show the next word to fill in a highlight color, like a reading cursor. Keep it real text for screen readers. If the visitor has reduced motion turned on, change each word's color without fading. Match the settings listed below.
+ > Add a scroll-driven text fill to [the statement or paragraph you want read]. Pin the paragraph in place while the visitor scrolls through a section a few screens tall. Split it into words, show every word in a dim but readable gray, and light the words up one by one in step with the scroll, so how far the reader has scrolled decides how much is lit and scrolling back up un-lights them. When the settings include it, show the next word to fill in a highlight color, like a reading cursor. Keep it real text for screen readers. If the visitor has reduced motion turned on, change each word's color without fading. Match the settings listed below.
- **README What it is:** rewritten:
@@ -957,7 +957,7 @@ None: leave out the `details.hb-options` block.
| Setting | Control | Choices or range (value shown) | Default | Hint | Sets in the demo |
|---|---|---|---|---|---|
| Feel | Choice buttons | Even · Smooth | Even | Even keeps the tip with your scroll; Smooth runs ahead. | `easeMode`: `'linear'` / `'out'` (the `EASES` key), then `update()` |
-| Shows the stops | Switch | on / off | on | Labelled points pop in as the line reaches them. | the drawing's `no-wps` class off / on |
+| Shows the stops | Switch | on / off | on | Labeled points pop in as the line reaches them. | the drawing's `no-wps` class off / on |
**More options**
@@ -973,18 +973,18 @@ None: leave out the `details.hb-options` block.
- **Good for:** Timelines · Journey maps · Process steps · Delivery tracking · **Avoid on:** Short pages
- **Prompt:**
- > Add a scroll-drawn route to [your timeline, journey or process steps]. Draw a long winding path down the page with a faint dashed copy underneath, and reveal the solid line in step with the scroll so its tip travels down with the visitor. Measure the path's length once and reveal it by sliding a single dash that is exactly as long as the path. When the settings include them, place labelled stops along the path and pop each one in as the line reaches it; scrolling back up erases the line and hides them again. If the visitor has reduced motion turned on, show each stop without the pop. Match the settings listed below.
+ > Add a scroll-drawn route to [your timeline, journey or process steps]. Draw a long winding path down the page with a faint dashed copy underneath, and reveal the solid line in step with the scroll so its tip travels down with the visitor. Measure the path's length once and reveal it by sliding a single dash that is exactly as long as the path. When the settings include them, place labeled stops along the path and pop each one in as the line reaches it; scrolling back up erases the line and hides them again. If the visitor has reduced motion turned on, show each stop without the pop. Match the settings listed below.
- **README What it is:** rewritten:
- > A scroll-drawn line is a long winding route that draws itself as you scroll down it, like a journey being traced on a map. Labelled stops along the way pop in as the line reaches them, and scrolling back up erases the line again. A faint dashed copy of the route shows where it is heading.
+ > A scroll-drawn line is a long winding route that draws itself as you scroll down it, like a journey being traced on a map. Labeled stops along the way pop in as the line reaches them, and scrolling back up erases the line again. A faint dashed copy of the route shows where it is heading.
- **README Key parameters:**
| Parameter | Default | Effect |
|-----------|---------|--------|
| Feel | Even | Even keeps the tip of the line level with your scroll; Smooth draws quickly at first and slows toward the end |
- | Shows the stops | on | Five labelled stops pop in as the line reaches them and hide again when you scroll back |
+ | Shows the stops | on | Five labeled stops pop in as the line reaches them and hide again when you scroll back |
| Line finishes | At the end | How far through the scrolling the line is complete: early at 70%, near the end at 85% and at the end at 100%; finishing early shows the whole route before you reach the bottom |
- **README See also:**
diff --git a/docs/superpowers/plans/2026-09-29-transitions-content.md b/docs/superpowers/plans/2026-09-29-transitions-content.md
index 5df1da6f..39c4dd96 100644
--- a/docs/superpowers/plans/2026-09-29-transitions-content.md
+++ b/docs/superpowers/plans/2026-09-29-transitions-content.md
@@ -537,11 +537,11 @@ None: leave out the `details.hb-options` block.
- **Good for:** Opening details · Galleries · Lightboxes · **Avoid on:** Step-by-step flows
- **Prompt:**
- > Add a zoom transition to [the pages or views you want to move between]. When the page changes, scale the old and the new page while one fades out and the other fades in, so the change seems to move through depth rather than across the screen. Zooming in, where the new page grows into place, feels like going deeper; zooming out feels like stepping back; a pull-through, where the new page rushes in from larger, feels like travelling forward. Scale with transforms only, and keep the fade so no hard edge shows. If the visitor has reduced motion turned on, swap pages without scaling. Match the settings listed below.
+ > Add a zoom transition to [the pages or views you want to move between]. When the page changes, scale the old and the new page while one fades out and the other fades in, so the change seems to move through depth rather than across the screen. Zooming in, where the new page grows into place, feels like going deeper; zooming out feels like stepping back; a pull-through, where the new page rushes in from larger, feels like traveling forward. Scale with transforms only, and keep the fade so no hard edge shows. If the visitor has reduced motion turned on, swap pages without scaling. Match the settings listed below.
- **README What it is:** rewritten:
- > A zoom transition scales the pages as they fade, so the change seems to move through depth rather than across the screen. The direction carries meaning: zooming in feels like arriving or going deeper, zooming out like backing away, and a pull-through — where the new page rushes in from larger and settles — feels like travelling forward.
+ > A zoom transition scales the pages as they fade, so the change seems to move through depth rather than across the screen. The direction carries meaning: zooming in feels like arriving or going deeper, zooming out like backing away, and a pull-through — where the new page rushes in from larger and settles — feels like traveling forward.
- **README Key parameters:**