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
a11y: add prefers-reduced-motion to the 5 demos missing it
matin9024b2e49e9d
diff --git a/animations/01-scroll-based/progress-bar/index.html b/animations/01-scroll-based/progress-bar/index.htmlindex 064b8572..8714f194 100644--- a/animations/01-scroll-based/progress-bar/index.html+++ b/animations/01-scroll-based/progress-bar/index.html@@ -54,6 +54,8 @@button.rst{background:transparent;border:1px solid var(--ui-border);color:var(--ui-text);font-family:var(--mono);font-size:10px;padding:14px 8px;border-radius:4px;cursor:pointer;width:100%}@media(hover:hover){button.rst:hover{border-color:var(--ui-accent);color:var(--ui-accent)}}@media(max-width:600px){.layout{flex-direction:column}aside{width:100%}:root{--stage-h:460px}}+ /* Reduced motion: indicators update instantly (they carry no transition today; gated defensively) */+ @media(prefers-reduced-motion:reduce){.stage{scroll-behavior:auto!important}#top-bar,#side-fill,.circ-fg{transition:none!important}}</style></head><body>diff --git a/animations/01-scroll-based/snap-scrolling/index.html b/animations/01-scroll-based/snap-scrolling/index.htmlindex 0a66744b..011ff969 100644--- a/animations/01-scroll-based/snap-scrolling/index.html+++ b/animations/01-scroll-based/snap-scrolling/index.html@@ -46,6 +46,8 @@.jump-btn{background:transparent;border:1px solid var(--ui-border);color:var(--ui-muted);font-family:monospace;font-size:9px;padding:8px;border-radius:4px;cursor:pointer;min-height:36px}@media(hover:hover){.mode-btn:hover,.jump-btn:hover{border-color:var(--ui-accent);color:var(--ui-accent)}}@media(max-width:600px){.layout{flex-direction:column}aside{width:100%}.stage{height:480px}.section{height:480px}.snap-dots{right:8px;position:fixed;top:auto;transform:none;bottom:120px}}+ /* Reduced motion: no smooth-scroll animation, no dot tweening */+ @media(prefers-reduced-motion:reduce){.stage{scroll-behavior:auto!important}.dot{transition:none!important}}</style></head><body>diff --git a/animations/04-micro-interactions/click-ripple/index.html b/animations/04-micro-interactions/click-ripple/index.htmlindex 461ea77b..9f4bfb4b 100644--- a/animations/04-micro-interactions/click-ripple/index.html+++ b/animations/04-micro-interactions/click-ripple/index.html@@ -39,6 +39,8 @@.tog{display:flex;align-items:center;gap:8px;font-size:10px;cursor:pointer;min-height:44px}.tog input{accent-color:var(--ui-accent);width:16px;height:16px;flex-shrink:0}@media(max-width:600px){.layout{flex-direction:column}aside{width:100%}:root{--stage-h:auto}.stage{height:auto;min-height:380px}}+ /* Reduced motion: collapse the ripple to near-instant (keep animationend cleanup firing) */+ @media(prefers-reduced-motion:reduce){.ripple{animation-duration:1ms!important}.rbtn{transition:none!important}}</style></head><body>diff --git a/animations/04-micro-interactions/focus-ring/index.html b/animations/04-micro-interactions/focus-ring/index.htmlindex bbb9db1c..417d97c5 100644--- a/animations/04-micro-interactions/focus-ring/index.html+++ b/animations/04-micro-interactions/focus-ring/index.html@@ -50,6 +50,8 @@button.rst{background:transparent;border:1px solid var(--ui-border);color:var(--ui-text);font-family:monospace;font-size:10px;padding:14px 8px;border-radius:4px;cursor:pointer;width:100%}@media(hover:hover){button.rst:hover{border-color:var(--ui-accent);color:var(--ui-accent)}}@media(max-width:600px){.layout{flex-direction:column}aside{width:100%}:root{--stage-h:auto}.stage{height:auto;min-height:420px;padding:20px}}+ /* Reduced motion: keep the focus outline (a11y) but drop the ring-in expansion */+ @media(prefers-reduced-motion:reduce){.focusable,.tab-step,.form-btn,.form-link,.focusable:focus-visible,.form-btn:focus-visible,.form-link:focus-visible{animation:none!important;transition:none!important}}</style></head><body>diff --git a/animations/04-micro-interactions/hover-state/index.html b/animations/04-micro-interactions/hover-state/index.htmlindex 8b6e4531..5c4cf611 100644--- a/animations/04-micro-interactions/hover-state/index.html+++ b/animations/04-micro-interactions/hover-state/index.html@@ -60,6 +60,8 @@.sv{width:48px;text-align:right;color:var(--ui-text)}select{background:var(--ui-bg);border:1px solid var(--ui-border);color:var(--ui-text);font-family:monospace;font-size:10px;padding:8px 6px;border-radius:4px;width:100%;min-height:44px}@media(max-width:600px){.layout{flex-direction:column}aside{width:100%}:root{--stage-h:auto}.stage{height:auto;min-height:400px}.hgrid{grid-template-columns:1fr}}+ /* Reduced motion: hover states still change, but without the tween */+ @media(prefers-reduced-motion:reduce){.h-color,.h-scale,.h-lift,.arrow,.h-underline .card-link::after,.h-sweep::before{transition:none!important}}</style></head><body>