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: let the demo settings scroll on their own so the prompt box never covers them
matine98ddf21eabd
diff --git a/assets/css/handbook.css b/assets/css/handbook.cssindex deac3b7d..cd349aed 100644--- a/assets/css/handbook.css+++ b/assets/css/handbook.css@@ -37,16 +37,16 @@ body.hb :focus-visible{outline:2px solid var(--hb-accent);outline-offset:2px}border:1px solid var(--hb-line);border-radius:999px;background:rgba(17,17,20,.85);color:var(--hb-dim);font:500 12px/1 var(--hb-font);cursor:pointer}.hb-replay:hover{color:var(--hb-ink);border-color:rgba(255,255,255,.25)}-.hb-view>.hb-side{grid-area:side;width:auto;min-width:0;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:18px;+.hb-view>.hb-side{grid-area:side;width:auto;min-width:0;min-height:0;overflow:hidden;display:flex;flex-direction:column;gap:18px;padding:18px 18px 0;background:var(--hb-panel);border:1px solid var(--hb-line);border-radius:10px}-.hb-head{margin:0}+.hb-head{margin:0;flex:none}.hb-cat{margin:0;font:500 11px/1.3 var(--hb-font);letter-spacing:.14em;text-transform:uppercase;color:var(--hb-accent)}.hb-side .hb-head h1{margin:8px 0 0;font:800 clamp(28px,2.6vw,36px)/1 var(--hb-font);letter-spacing:-.03em;color:var(--hb-ink)}.hb-side .hb-lede{margin:8px 0 0;font:400 13px/1.6 var(--hb-font);color:var(--hb-dim)}.hb-label{margin:0 0 8px;font:500 11px/1 var(--hb-font);letter-spacing:.14em;text-transform:uppercase;color:var(--hb-muted)}/* Settings: the demo's own controls, restyled compactly */-.hb-settings{display:flex;flex-direction:column;gap:10px}+.hb-settings{display:flex;flex-direction:column;gap:10px;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#2a2a30 transparent}.hb-settings .lbl{margin:0;font:500 12px/1.3 var(--hb-font);letter-spacing:0;text-transform:none;color:var(--hb-dim)}.hb-settings div:has(>.sr){display:grid;grid-template-columns:1fr auto;grid-template-areas:"label value" "slider slider";column-gap:10px}.hb-settings div:has(>.sr)>.lbl{grid-area:label}@@ -75,7 +75,7 @@ body.hb :focus-visible{outline:2px solid var(--hb-accent);outline-offset:2px}.hb-settings .act.pri{border-color:var(--hb-accent);color:var(--hb-accent)}/* Prompt box and Read more stay visible at the bottom of the column */-.hb-take{margin-top:auto;position:sticky;bottom:0;display:flex;flex-direction:column;gap:10px;padding:12px 0 18px;background:var(--hb-panel)}+.hb-take{margin-top:auto;flex:none;display:flex;flex-direction:column;gap:10px;padding:12px 0 18px;background:var(--hb-panel);border-top:1px solid var(--hb-line)}.hb-prompt-box{padding:12px;border:1px solid var(--hb-line);border-radius:8px;background:var(--hb-panel-2)}.hb-prompt{margin:0;font:400 13px/1.6 var(--hb-font);color:var(--hb-ink)}.hb-clamp{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}@@ -125,6 +125,6 @@ body.hb :focus-visible{outline:2px solid var(--hb-accent);outline-offset:2px}.hb-view{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;grid-template-areas:"stage" "side";height:auto;min-height:0}.hb-view>.stage{height:calc(100vh * .56);height:calc(100svh * .56);min-height:320px}.hb-view>.hb-side{overflow:visible}- .hb-take{position:static}+ .hb-settings{overflow:visible}.hb-settings .sr input[type=range],.hb-settings .seg button,.hb-settings .act,.hb-settings .tog,.hb-settings select{min-height:44px}}