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: keep Zoom Transition's pages that are not on show out of the accessibility tree, mark the current page name, and correct its README's library line
matin23d78e0d3ae1
diff --git a/animations/03-page-transitions/zoom-transition/README.md b/animations/03-page-transitions/zoom-transition/README.mdindex d71c8d97..214d1500 100644--- a/animations/03-page-transitions/zoom-transition/README.md+++ b/animations/03-page-transitions/zoom-transition/README.md@@ -43,7 +43,7 @@ Because the incoming and outgoing scales differ per variant, the same code path- **Fade alongside the scale.** Scaling without the opacity cross-fade leaves a hard edge where the two pages overlap; the paired fade hides the seam.- **Springy easing can overshoot past scale 1** and momentarily clip content at the stage edge — keep overshoot modest or add padding.- **Reduced motion** swaps pages by opacity only, skipping the scale.-- **Library equivalents**: the View Transitions API ships a zoom style via `::view-transition` scale keyframes. Framer Motion's `scale` variants in `AnimatePresence`, GSAP's `scale` tweens, and Next.js transitions all express the same scale-plus-fade.+- **Library equivalents**: the View Transitions API can zoom with `scale` keyframes on `::view-transition-old`/`-new` (the Zoom style of the View Transitions API demo). Framer Motion's `scale` variants in `AnimatePresence` and GSAP's `scale` tweens express the same scale-plus-fade.## See also- [View Transitions API](../view-transitions-api/) — the browser can zoom pages toodiff --git a/animations/03-page-transitions/zoom-transition/index.html b/animations/03-page-transitions/zoom-transition/index.htmlindex bad1b694..01445d7c 100644--- a/animations/03-page-transitions/zoom-transition/index.html+++ b/animations/03-page-transitions/zoom-transition/index.html@@ -187,12 +187,13 @@if(i>-1)timers.splice(i,1);}- function updateNav(n){navBtns.forEach((b,i)=>b.classList.toggle('active',i===n))}+ function updateNav(n){navBtns.forEach((b,i)=>{b.classList.toggle('active',i===n);b.setAttribute('aria-current',i===n?'page':'false')})}// One page's resting look: its class alone shows or hides it, with nothing left over from a zoom (its background stays).- // A zoom that is already heading for the same look keeps its own length when its inline transition goes, so it is- // cancelled too.+ // A page that is not shown is also out of the Tab order and the accessibility tree (inert). A zoom that is already+ // heading for the same look keeps its own length when its inline transition goes, so it is cancelled too.function rest(el,on){el.classList.toggle('active',on);+ el.inert=!on;el.style.transition='';el.style.opacity='';el.style.transform='';el.style.pointerEvents='';el.getAnimations().forEach(a=>a.cancel());}diff --git a/docs/superpowers/plans/2026-09-29-transitions-content.md b/docs/superpowers/plans/2026-09-29-transitions-content.mdindex 132d1971..9c9f2514 100644--- a/docs/superpowers/plans/2026-09-29-transitions-content.md+++ b/docs/superpowers/plans/2026-09-29-transitions-content.md@@ -552,9 +552,10 @@ None: leave out the `details.hb-options` block.```- The last paragraph's "and the double `requestAnimationFrame` ensures the start scale is painted before the transition kicks off" becomes "and reading `offsetWidth` makes the browser apply the start scale before the transition begins".-- **README Production notes:** unchanged+- **README Production notes:** unchanged, except the library line (the last bullet), which now reads: "the View Transitions API can zoom with `scale` keyframes on `::view-transition-old`/`-new` (the Zoom style of the View Transitions API demo). Framer Motion's `scale` variants in `AnimatePresence` and GSAP's `scale` tweens express the same scale-plus-fade." Before, it said the API "ships a zoom style" and listed "Next.js transitions"; neither is a zoom of its own.- **Category line:** `03.06 · Page Transitions`- **Pager:** Previous: Slide Transition (`../slide-transition/`) · Next: Flash / Light Leak Transition (`../flash-transition/`)+- **Final fix wave:** `rest()` sets `inert` on a page that is not on show, so a screen reader reads only the page on show and Tab cannot enter a hidden one. The name of the page on show carries `aria-current="page"` and the other two `"false"` (`updateNav`). The README's library line is corrected, as recorded under Production notes above.---