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: Fade In / Fade Out's cards turn compact in windows up to 640px tall, so Compare's held words stay inside a box of up to 310px
matine45ad44a8809
diff --git a/animations/02-entrance-and-exit/fade-in-out/index.html b/animations/02-entrance-and-exit/fade-in-out/index.htmlindex f6ab1231..a7f1f461 100644--- a/animations/02-entrance-and-exit/fade-in-out/index.html+++ b/animations/02-entrance-and-exit/fade-in-out/index.html@@ -65,9 +65,9 @@.stage[data-hb-mode="inside"]{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:8px}.stage[data-hb-mode="inside"] .graph{max-width:none;height:100%;aspect-ratio:auto}}- /* Phones and short boxes (a window up to 620px tall, which gives a box of 290px or less): compact cards. Phones, held either- way: four words at most in the graph. */- @media(max-width:600px),(max-height:620px){+ /* Phones and short boxes (a window up to 640px tall, which gives a box of 310px or less; a full card and Compare's words need+ 306px): compact cards. Phones, held either way: four words at most in the graph. */+ @media(max-width:600px),(max-height:640px){.stage[data-hb-mode="inside"] .card,.stage[data-hb-mode="compare"] .card{padding:14px 16px}.stage[data-hb-mode="inside"] .card-sub,.stage[data-hb-mode="compare"] .card-sub{display:none}.stage[data-hb-mode="inside"] .card-icon,.stage[data-hb-mode="compare"] .card-icon{font-size:22px;margin-bottom:6px}