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: give the player bar two rows on phones
matinb1bffd7101ee
diff --git a/assets/css/demo-page.css b/assets/css/demo-page.cssindex 65ae5146..836fc580 100644--- a/assets/css/demo-page.css+++ b/assets/css/demo-page.css@@ -54,7 +54,8 @@ body.hb [hidden]{display:none!important}.hb-step-head p{margin:4px 0 0;font:400 16px/1.5 var(--hb-font);color:var(--hb-dim)}/* Step 1: stage and player bar. 420px is roughly everything above and below the stage on the- first screen, so on a laptop the stage and the player bar are both visible on arrival. */+ first screen, so on a laptop the stage and the player bar are both visible on arrival.+ The height is declared twice: browsers that know svh use the second, others keep the vh one. */.hb-page .stage{box-sizing:border-box;width:100%;min-width:0;min-height:0;margin:0;flex:none;height:clamp(300px,calc(100vh - 420px),440px);height:clamp(300px,calc(100svh - 420px),440px);border:1px solid rgba(255,255,255,.1);border-radius:12px;overflow:hidden}@@ -150,8 +151,10 @@ body.hb [hidden]{display:none!important}.hb-step-head{gap:12px}.hb-num{width:30px;height:30px;font-size:15px}.hb-step-head p{font-size:15px}- .hb-player{gap:8px}- .hb-play,.hb-toggle{gap:8px;padding:0 12px;font-size:14px}+ /* Three controls do not fit on one line at phone widths: Replay takes the first row, the two switches share the second */+ .hb-player{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}+ .hb-play{grid-column:1/-1}+ .hb-play,.hb-toggle{justify-content:center;gap:8px;padding:0 12px;font-size:14px}.hb-page .seg button{flex:1 1 0;min-width:0;padding:0 8px}.hb-prompt{font-size:16px;line-height:1.6}.hb-prompt.is-clamped{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}