Focus Toolbar Textarea
Comment box that keeps its formatting toolbar folded away until the textarea is focused, when the bar unrolls above it.
- lines of CSS
- 50lines of CSS
- dependencies
- 0dependencies
- browser, for years
- Everybrowser, for years
- motion only on interaction
- Hovermotion only on interaction
Vue, Svelte, styled-components and Tailwind exports are part of Pro. HTML, CSS and React are free forever.
.fx-v13-in-toolbar-15398 {
width: 250px;
background: #0f172a;
border: 1px solid #334155;
border-radius: 0.6rem;
overflow: hidden;
transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.fx-v13-in-toolbar-15398 .t {
display: flex;
align-items: center;
gap: 0.15rem;
padding: 0 0.5rem;
max-height: 0;
opacity: 0;
border-bottom: 1px solid transparent;
background: #131c31;
transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.28s ease, border-color 0.28s ease;
}
.fx-v13-in-toolbar-15398 .t > * {
display: grid;
place-items: center;
width: 22px;
height: 22px;
font-size: 0.72rem;
font-style: normal;
color: #94a3b8;
border-radius: 0.25rem;
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease;
}
.fx-v13-in-toolbar-15398 .t > *:hover { background: #1e293b; color: #e2e8f0; }
.fx-v13-in-toolbar-15398 .t b { font-weight: 800; }
.fx-v13-in-toolbar-15398 .t i { font-style: italic; font-family: Georgia, serif; }
.fx-v13-in-toolbar-15398 .t span { font-family: ui-monospace, monospace; font-size: 0.6rem; }
.fx-v13-in-toolbar-15398 textarea {
display: block;
width: 100%;
padding: 0.6rem 0.7rem;
font: inherit;
font-size: 0.8rem;
line-height: 1.5;
color: #e2e8f0;
background: none;
border: none;
outline: none;
resize: none;
}
.fx-v13-in-toolbar-15398:focus-within { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(129,140,248,0.16); }
.fx-v13-in-toolbar-15398:focus-within .t { max-height: 34px; opacity: 1; padding: 0.3rem 0.5rem; border-bottom-color: #253049; }<div class="fx-v13-in-toolbar-15398">
<div class="t">
<b>B</b>
<i>I</i>
<u>U</u>
<s>S</s>
<span></></span>
</div>
<textarea rows="2">Notes for the release…</textarea>
</div>What do I do with this?
- Put
focus-toolbar-textarea-15399.cssanywhere your page already loads CSS from — in Next.js that isapp/globals.css, or any stylesheet with a<link>in your HTML. - Then put the class on the element you want it on:
<button class="fx-v13-in-toolbar-15398">. The CSS does nothing until a class name in it matches something on the page.
- Link the stylesheet, then paste the markup wherever you need it.
npx hoverlab add focus-toolbar-textarea-15399What's included
- The markup and the stylesheet, in whichever framework you pick
- No runtime dependencies
Works with
- React
- Vue
- Svelte
- Tailwind
- styled-components
- Plain CSS
npx hoverlab add focus-toolbar-textarea-15399
Or over MCP, from your editor's agent — no account needed.
License
Free to read, copy and install, for personal and non-commercial projects. Shipping it in client work or a paid product needs Pro ($79 once). The source lands in your repo and stops being ours — no attribution, nothing to upgrade.
Motion safety
Static estimate, read from the CSS
- Reduced motion
- Brief motion, no guard
Animates briefly or on interaction. Only looping motion gets a guard in this catalog; copy the one from the Insights tab if this ships on a critical path.
- What it animates
- Reflows
Animates
max-height,padding(andbackground,border-color,box-shadow,color). The browser re-lays-out the page on every frame; prefertransformif you can. - Flashing (WCAG 2.3.1)
- No flashing found
No repeating change in opacity, colour or brightness large enough to count as a flash.
- Layout shift (CLS)
- May shift layout
Animates
max-height,paddingon a box in flow, so content beside or after it can move. Measured in Chromium: layout-shift score 0.0004 across 9 shifts in 7.6 s, one preview with a neighbour beside it. Not a page-level CLS.
Every row is read from the shipped CSS. Only a figure marked measured came from a browser. Customizing the speed changes the timing, so recheck a customized copy. How it is computed
38 more effects in Inputs & Hover
All of them free to read, copy and install — no account, no locked tiles, no watermarked preview. The whole catalog is open, and so are the API and the CLI.
Browse Inputs & HoverShipping one commercially
Copying the code is free. Putting it in client work or a paid product is what Pro is for — the licence, not the access.
- A commercial licence for everything in the catalog
- Unlimited bundle exports, in Vue, Svelte and Tailwind
- One payment — no subscription, nothing to renew
7 variations of Focus Toolbar Textarea
Finished looks, each one a position in the customizer above. Copy any of them, or open it and keep moving the sliders.