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: Button Loading States (04.38): the timer helper's comment names its list argument
matin1f1763a06da3
diff --git a/animations/04-micro-interactions/button-loading-states/index.html b/animations/04-micro-interactions/button-loading-states/index.htmlindex 9432006a..d19835dd 100644--- a/animations/04-micro-interactions/button-loading-states/index.html+++ b/animations/04-micro-interactions/button-loading-states/index.html@@ -202,7 +202,8 @@const easing=[btn,...btn.querySelectorAll('.bg,.words span,.spin,.ico path')];let result='ok',dur=300,waitMs=1200,state='rest',seqTimers=[],runTimers=[],quiet=false;- // wait(fn, move, hold) runs fn after move*(slow?3:1) + hold ms: Slow motion triples the movement, never the hold.+ // wait(list, fn, move, hold) runs fn after move*(slow?3:1) + hold ms and keeps its timer in list (seqTimers for the submit itself,+ // runTimers for Show me's press): Slow motion triples the movement, never the hold.function wait(list,fn,move,hold){const id=setTimeout(()=>{list.splice(list.indexOf(id),1);fn()},move*(slowTog.checked?3:1)+hold);list.push(id);