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: Portal Zoom: the notes say dashed lines for every portal shape, the reduced-motion Compare note matches its still, and the opening's label waits while a Show me run holds
matin5649c7b3f0d6
diff --git a/animations/03-page-transitions/portal-zoom/index.html b/animations/03-page-transitions/portal-zoom/index.htmlindex b342d606..0fdd9fb1 100644--- a/animations/03-page-transitions/portal-zoom/index.html+++ b/animations/03-page-transitions/portal-zoom/index.html@@ -153,7 +153,7 @@<label class="hb-toggle"><input class="hb-switch" type="checkbox" role="switch" id="slow-tog" data-hb-slowmo autocomplete="off"><span>Slow motion</span></label></div><div class="hb-mode-notes" aria-live="polite">- <p data-hb-for="inside" hidden>Inside, the next page sits on top, cut to an opening growing from a point at the portal; rings mark its edge every tenth of the time. Click the portal or press Show me.</p>+ <p data-hb-for="inside" hidden>Inside, the next page sits on top, cut to an opening growing from a point at the portal; dashed lines mark its edge every tenth of the time. Click the portal or press Show me.</p><p data-hb-for="compare" hidden>Switches at once simply changes page; Opens from portal grows the next page out of the portal you click. Click the portal or a page name, or press Show me.</p></div></section>@@ -411,8 +411,8 @@}// Under reduced motion both views are still pictures, and their notes say soif(!motionOk){- document.querySelector('[data-hb-for="inside"]').textContent='Shown still: the next page on top, cut to an opening caught part way out of the portal, and rings marking its edge every tenth of the time.';- document.querySelector('[data-hb-for="compare"]').textContent='Shown still: Switches at once has simply changed page; Opens from portal is caught part way, the next page showing in the opening.';+ document.querySelector('[data-hb-for="inside"]').textContent='Shown still: the next page on top, cut to an opening caught part way out of the portal, and dashed lines marking its edge every tenth of the time.';+ document.querySelector('[data-hb-for="compare"]').textContent='Shown still: Switches at once simply changes page; Opens from portal is caught part way, the next page showing in the opening.';}const setBox=(el,x,y,w,h,r)=>{el.setAttribute('x',x.toFixed(1));el.setAttribute('y',y.toFixed(1));el.setAttribute('width',w.toFixed(1));el.setAttribute('height',h.toFixed(1));el.setAttribute('rx',r.toFixed(1))};// The rings, ticks, outline and labels, from the numbers the change itself uses: where it starts, the page area's size, the@@ -466,6 +466,7 @@unpose();const still=mode!=='normal'&&!animating;stage.classList.toggle('posed',still); // the portal of the page on show stays above the rings, in the hold of a Show me run too+ caps[1].style.visibility=still&&wayBack?'hidden':''; // the hold shows no opening, so its label waitsif(!still||wayBack)return;const el=pages[(current+1)%PAGES.length];el.classList.add('pose');el.inert=true;el.style.zIndex='2';