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.

docs: correct the last Transitions wording found by the fix-wave re-review

matin5026e7394843
diff --git a/animations/03-page-transitions/shared-element-transition/README.md b/animations/03-page-transitions/shared-element-transition/README.md
index fcf939c5..21887a14 100644
--- a/animations/03-page-transitions/shared-element-transition/README.md
+++ b/animations/03-page-transitions/shared-element-transition/README.md
@@ -13,7 +13,8 @@ A shared element transition keeps one piece of content in view while the page ch
FLIP stands for First, Last, Invert, Play. Record the thumbnail's rectangle (First), reveal the destination and read the hero's rectangle (Last), place a fixed copy on the header's rectangle and draw it back onto the thumbnail with a transform (Invert), then transition that transform to none (Play):
```js
-function openDetail(i){
+function openDetail(i, dur, ease){ // dur, ease: the chosen speed and feel
+ const p = PROJECTS[i]; // the project that was clicked
const thumbRect = thumbEls[i].getBoundingClientRect(); // FIRST
detail.classList.add('active');
const heroRect = detailHero.getBoundingClientRect(); // LAST
diff --git a/animations/03-page-transitions/view-transitions-api/README.md b/animations/03-page-transitions/view-transitions-api/README.md
index 3156376d..0223f0d3 100644
--- a/animations/03-page-transitions/view-transitions-api/README.md
+++ b/animations/03-page-transitions/view-transitions-api/README.md
@@ -54,7 +54,7 @@ Switching the `data-vt` attribute swaps in a different keyframe set (slide, zoom
- **Every `view-transition-name` must be unique** on the page at capture time. Two elements sharing a name in the same snapshot make the browser skip the transition: the page still changes, with no animation.
- **Honor reduced motion** — the demo drops straight to `showPage()` with no animation when `prefers-reduced-motion: reduce` is set.
- **Presses wait for the transition.** While a view transition runs, Chrome sends every press on the page to the root element, so buttons do not respond until it ends (`pointer-events: none` on the transition's pseudo-elements does not change this while the root is captured, as it is by default); keep page transitions short. The demo passes a press over its box on as the visitor taking over, so a click there still stops Show me.
-- **Library equivalents**: Astro's `<ClientRouter />` (named `<ViewTransitions />` before Astro 5) and React's experimental `<ViewTransition>` component, which Next.js's App Router supports, wrap this API for client-side page changes; between full page loads the CSS rule `@view-transition { navigation: auto; }` does it without JavaScript. Barba.js and Swup predate the API and animate the old and new page content themselves; on supported browsers you often no longer need them.
+- **Library equivalents**: Astro's `<ClientRouter />` (named `<ViewTransitions />` before Astro 5) and React's `<ViewTransition>` component, which Next.js's App Router supports, wrap this API for client-side page changes; between full page loads the CSS rule `@view-transition { navigation: auto; }` does it without JavaScript. Barba.js and Swup predate the API and animate the old and new page content themselves; on supported browsers you often no longer need them.
## See also
- [Crossfade Transition](../crossfade/) — the same fade, built by hand
diff --git a/docs/superpowers/plans/2026-09-29-transitions-content.md b/docs/superpowers/plans/2026-09-29-transitions-content.md
index d56431c5..ace5d532 100644
--- a/docs/superpowers/plans/2026-09-29-transitions-content.md
+++ b/docs/superpowers/plans/2026-09-29-transitions-content.md
@@ -150,7 +150,7 @@ Eight demos put an element in its starting state with `transition:none` and star
- **Browser support** is a new bullet after Feature-detect: "Same-document view transitions — `document.startViewTransition()`, as in this demo — work in Chrome and Edge 111 and later, Safari 18 and Firefox 144. Cross-document ones, turned on for full page loads with `@view-transition { navigation: auto; }`, work in Chrome and Edge 126 and Safari 18.2; check current support for Firefox. Keep the fallback for older browsers." The versions were checked against MDN's compatibility data for `Document.startViewTransition()`, `ViewTransition` and `@view-transition` (Firefox has no cross-document support yet).
- The unique-name bullet now says two elements sharing a name "make the browser skip the transition: the page still changes, with no animation" (it said this "throws and aborts the transition").
- **Presses wait for the transition** is a new bullet before the library line: "While a view transition runs, Chrome sends every press on the page to the root element, so buttons do not respond until it ends (`pointer-events: none` on the transition's pseudo-elements does not change this while the root is captured, as it is by default); keep page transitions short. The demo passes a press over its box on as the visitor taking over, so a click there still stops Show me."
- - **Library equivalents** is rewritten: "Astro's `<ClientRouter />` (named `<ViewTransitions />` before Astro 5) and React's experimental `<ViewTransition>` component, which Next.js's App Router supports, wrap this API for client-side page changes; between full page loads the CSS rule `@view-transition { navigation: auto; }` does it without JavaScript. Barba.js and Swup predate the API and animate the old and new page content themselves; on supported browsers you often no longer need them." (The old line said Astro and Next.js wrapped it for cross-document navigation, and that Barba.js and Swup work by taking snapshots.)
+ - **Library equivalents** is rewritten: "Astro's `<ClientRouter />` (named `<ViewTransitions />` before Astro 5) and React's `<ViewTransition>` component, which Next.js's App Router supports, wrap this API for client-side page changes; between full page loads the CSS rule `@view-transition { navigation: auto; }` does it without JavaScript. Barba.js and Swup predate the API and animate the old and new page content themselves; on supported browsers you often no longer need them." (The old line said Astro and Next.js wrapped it for cross-document navigation, and that Barba.js and Swup work by taking snapshots.)
- **Category line:** `03.01 · Page Transitions`
- **Pager:** Previous: none · Next: Shared Element Transition (`../shared-element-transition/`)
- **Final fix wave:** the page names carry `aria-current` (`"page"` on the shown page's name, `"false"` on the others); `showPage` makes the pages not shown `inert` and cancels any transition or fade still running on them, so Reset also stops the fallback fade; the README's Production notes gain browser support and the presses-wait note, and lose three wrong statements (duplicate names, the Astro and Next.js line, snapshots).