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: Star Rating: the reduced-motion Compare note reads plainly
matina4384b1d6ec4
diff --git a/animations/04-micro-interactions/star-rating/index.html b/animations/04-micro-interactions/star-rating/index.htmlindex 84d6ea26..65180a66 100644--- a/animations/04-micro-interactions/star-rating/index.html+++ b/animations/04-micro-interactions/star-rating/index.html@@ -460,7 +460,7 @@// The notes in the markup are for motion; under reduced motion the pop is left out of bothconst notes=[document.querySelector('[data-hb-for="inside"]'),document.querySelector('[data-hb-for="compare"]')];const NOTES=notes.map(n=>n.textContent),NOTES_RM=['Inside, each dashed box is the spot that picks a star: pointing previews the rating and clicking chooses it. Point along the stars, or press Show me.',- 'Click only: nothing shows until you click; Previews and pops: the stars fill up to the pointer first, and with motion on the chosen one pops. Point along the stars.'];+ 'Click only: nothing shows until you click; Previews and pops: the stars fill up to the pointer first, and the chosen one pops when motion is on. Point along the stars.'];function writeNotes(){notes.forEach((n,i)=>{const t=(RM.matches?NOTES_RM:NOTES)[i];if(n.textContent!==t)n.textContent=t})}writeNotes();RM.addEventListener('change',()=>{writeNotes();refresh()});build();