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: lesson 21's stage gives back the line its two-line lede adds, so the stage and the player bar stay on the first screen of a laptop
matin4ad177eb5109
diff --git a/learn/far-things-move-slower/index.html b/learn/far-things-move-slower/index.htmlindex 858a96d7..fe1d2333 100644--- a/learn/far-things-move-slower/index.html+++ b/learn/far-things-move-slower/index.html@@ -22,7 +22,7 @@<style>:root{--ui-accent:#c8f169}*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}- .stage{position:relative;overflow:hidden;background:#141b33}+ .stage{--ft-vh:1vh;position:relative;overflow:hidden;background:#141b33}/* Each layer is twice the window's width and repeats halfway, so it can slide forever without a seam */.strip{position:absolute;top:0;left:0;width:200%;height:100%;will-change:transform}.strip svg{position:absolute;inset:0;width:100%;height:100%}@@ -36,6 +36,11 @@.speed i{display:block;height:6px;width:calc(var(--bar,0) * 72px);border-radius:3px;background:var(--ui-accent)}.speed:nth-child(1){top:5%} .speed:nth-child(2){top:38%} .speed:nth-child(3){top:60%} .speed:nth-child(4){top:82%}@media(prefers-reduced-motion:reduce){.strip{will-change:auto}}+ /* The lede runs to two lines here, one more than on most pages: from 601px wide the stage gives that line back, so the stage and+ the player bar stay on the first screen. --ft-vh: the small viewport height where known */+ @supports(height:1svh){.stage{--ft-vh:1svh}}+ @media(min-width:601px){.hb-page .stage{--hb-stage-h:clamp(300px,calc(100 * var(--ft-vh) - 450px),440px)}}+ @media(min-width:601px) and (max-height:760px){.hb-page .stage{--hb-stage-h:clamp(260px,calc(100 * var(--ft-vh) - 356px),440px)}}</style><link rel="stylesheet" href="../../assets/css/demo-page.css?v=8"><script src="../../assets/js/demo-page.js?v=8" defer></script>