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(form-field-morph): keep the focused Company field opaque over the dot grid
matina72bee334cfd
diff --git a/animations/04-micro-interactions/form-field-morph/index.html b/animations/04-micro-interactions/form-field-morph/index.htmlindex e8de3049..109e580b 100644--- a/animations/04-micro-interactions/form-field-morph/index.html+++ b/animations/04-micro-interactions/form-field-morph/index.html@@ -42,7 +42,7 @@.box-field{position:relative;padding-top:20px}.box-field label{position:absolute;left:12px;top:calc(20px + 10px);font-size:12px;color:var(--ui-muted);transition:transform var(--field-dur) ease,color var(--field-dur) ease;pointer-events:none;transform-origin:left center}.box-field input{display:block;width:100%;background:var(--ui-bg);border:1px solid var(--ui-border);color:var(--ui-text);font-family:inherit;font-size:13px;padding:24px 12px 8px;outline:none;border-radius:6px;transition:border-color var(--field-dur) ease,background var(--field-dur) ease;min-height:56px}- .box-field:is(:focus-within,.is-demo) input{border-color:var(--focus-color);background:color-mix(in srgb,var(--focus-color) 4%,transparent)}+ .box-field:is(:focus-within,.is-demo) input{border-color:var(--focus-color);background:color-mix(in srgb,var(--focus-color) 4%,#0b0b0d)}.box-field:is(:focus-within,.is-demo) label,.box-field.filled label{transform:translateY(-12px) scale(0.78);color:var(--focus-color)}/* The fields show focus with their own line, label color and border, so the site focus ring (0,2,1) is switched off on them.The .stage in front (0,3,1) outranks it and the stage's inward ring rule (0,3,0). */diff --git a/docs/superpowers/plans/2026-09-29-micro-content-part1.md b/docs/superpowers/plans/2026-09-29-micro-content-part1.mdindex 329440cd..f9f199cf 100644--- a/docs/superpowers/plans/2026-09-29-micro-content-part1.md+++ b/docs/superpowers/plans/2026-09-29-micro-content-part1.md@@ -1010,6 +1010,7 @@ None: leave out the `details.hb-options` block.- **Stage:** Full name (underlined), Company (boxed) and Message (underlined, several lines) stay. The Email address field goes (owner decision): it is a second underlined field like Full name, and without it the form fits the phone stage. The stage gets `padding:16px`, `.form` gets `gap:16px` (was 24px), and the textarea `min-height:56px` (was 80px). `hb-dots`: yes. Measured: 282px on phones and laptops.- The fields keep their own focus look: the line, the label colour and the box border. The site's focus ring (`body.hb :focus-visible`, specificity 0,2,1) beats their `outline:none` (0,1,1). It would draw an orange box around each focused field, through its raised label.- So the page adds `.stage .float-field :is(input,textarea):focus-visible,.stage .box-field input:focus-visible{outline:none}` (0,3,1).+ - The focused Company box stays opaque: its focused background mixes 4% of the focus colour into the stage's own `#0b0b0d` (`color-mix(in srgb,var(--focus-color) 4%,#0b0b0d)`, `rgb(14,17,23)` with Blue), not into `transparent`. Over `transparent` the stage's `hb-dots` grid showed through the focused box; the unfocused box was already opaque (`--ui-bg`). Changed in the final wave.**Main settings**