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: View Transitions API: shorter label words (Zoom's new picture settles in, the longest length is over two seconds) so every label fits on phones at every setting
matinfca776e8a476
diff --git a/animations/03-page-transitions/view-transitions-api/index.html b/animations/03-page-transitions/view-transitions-api/index.htmlindex 99af91c5..15a2067e 100644--- a/animations/03-page-transitions/view-transitions-api/index.html+++ b/animations/03-page-transitions/view-transitions-api/index.html@@ -456,8 +456,8 @@if(c.from+'-'+c.to!==posedKey){setPics(c.from,c.to,true);posedKey=c.from+'-'+c.to}}const OUT={crossfade:'fades out',slide:'slides out',zoom:'shrinks away',custom:'tilts away'};- const IN={crossfade:'fades in',slide:'slides in',zoom:'settles from larger',custom:'tilts in'};- const LEN={300:'about a third of a second',500:'half a second',800:'almost a second',900:'about a second',1500:'a second and a half',2400:'about two and a half seconds'};+ const IN={crossfade:'fades in',slide:'slides in',zoom:'settles in',custom:'tilts in'};+ const LEN={300:'about a third of a second',500:'half a second',800:'almost a second',900:'about a second',1500:'a second and a half',2400:'over two seconds'};function words(){[['w-old',OUT[style]],['w-new',IN[style]],['w-len',LEN[dur*(slowTog.checked?3:1)]]].forEach(([id,t])=>{const el=document.getElementById(id);