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: mark the shown page name on Blur Transition with aria-current and record its README snippet in the sheet
matind6e7775fb815
diff --git a/animations/03-page-transitions/blur-transition/index.html b/animations/03-page-transitions/blur-transition/index.htmlindex f714bd21..4ae66154 100644--- a/animations/03-page-transitions/blur-transition/index.html+++ b/animations/03-page-transitions/blur-transition/index.html@@ -196,7 +196,7 @@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, sharp, with nothing left over from a blur (its background// stays). A page that is not shown is also out of the Tab order and the accessibility tree (inert). A blur or fade that is// already heading for the same look keeps its own length when its inline transition goes, so it is cancelled too.diff --git a/docs/superpowers/plans/2026-09-29-transitions-content.md b/docs/superpowers/plans/2026-09-29-transitions-content.mdindex 5ff962b7..54c8c6c7 100644--- a/docs/superpowers/plans/2026-09-29-transitions-content.md+++ b/docs/superpowers/plans/2026-09-29-transitions-content.md@@ -713,9 +713,14 @@ None: leave out the `details.hb-options` block.```- The sentence "An "overlap" option starts the incoming sharpen at 50% of the outgoing blur instead of waiting for it to finish, cutting the total time roughly in half while the two stages cross." becomes "The Overlaps the two halves setting starts the incoming sharpen at 50% of the outgoing blur instead of waiting for it to finish, cutting the total time by about a quarter while the two halves cross."+ - The snippet also follows the page's signature and settings:+ - The function is `doTransition(prev, next, dur, ease, maxBlur)`: the page passes the three values it read when the change started (`dur` three times as long in slow motion).+ - It reads the two switches with `const withFade = fadeTog.checked, overlap = overlapTog.checked;` (the snippet used both names without defining them), and builds one string for both pages' `transition`: ``const t = `filter ${dur}ms ${ease}` + (withFade ? `, opacity ${dur}ms ${ease}` : '');``. Opacity is in it only when the pages fade. `o.style.transition = t;` and `n.style.transition = t;` replace the two fixed strings, which always named opacity.+ - At the swap the old page also gets `o.style.opacity = '0'`, on the line with `o.classList.remove('active');`, as the page does.- **README Production notes:** the bullet "**The double `requestAnimationFrame`.** …" becomes "**Commit the start state.** Setting the pre-blur with `transition: none` and then turning the transition on needs a forced reflow in between (reading `offsetWidth`); without it the browser merges the two writes and the page pops in sharp." The rest is unchanged.- **Category line:** `03.08 · Page Transitions`- **Pager:** Previous: Flash / Light Leak Transition (`../flash-transition/`) · Next: Elastic Transition (`../elastic-transition/`)+- **Final fix wave:** the name of the page on show carries `aria-current="page"` and the other two `"false"`, set by `updateNav()` (the same function as Dissolve's), so a screen reader hears which page is shown. The README bullet above now records the snippet as the page has it.---