Multi-Select Chips
Row of filter chips that flip to a solid green pill and grow a tick from nothing as each one is selected.
- lines of CSS
- 35lines 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-tg-chips-15416 {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
width: 220px;
}
.fx-v13-tg-chips-15416 input { position: absolute; opacity: 0; pointer-events: none; }
.fx-v13-tg-chips-15416 label { cursor: pointer; }
.fx-v13-tg-chips-15416 span {
display: inline-flex;
align-items: center;
gap: 0.3rem;
padding: 0.32rem 0.75rem;
font-size: 0.75rem;
color: #94a3b8;
background: #16203a;
border: 1px solid #2b3852;
border-radius: 999px;
transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, padding 0.22s ease;
}
.fx-v13-tg-chips-15416 span::before {
content: '✓';
width: 0;
overflow: hidden;
font-size: 0.7rem;
opacity: 0;
transition: width 0.22s ease, opacity 0.18s ease;
}
.fx-v13-tg-chips-15416 label:hover span { border-color: #475569; color: #cbd5e1; }
.fx-v13-tg-chips-15416 input:checked + span {
color: #052e16;
background: #4ade80;
border-color: #4ade80;
}
.fx-v13-tg-chips-15416 input:checked + span::before { width: 0.8em; opacity: 1; }<div class="fx-v13-tg-chips-15416">
<label>
<input type="checkbox" checked />
<span>Motion</span>
</label>
<label>
<input type="checkbox" />
<span>Glass</span>
</label>
<label>
<input type="checkbox" checked />
<span>Neon</span>
</label>
<label>
<input type="checkbox" />
<span>Retro</span>
</label>
</div>What do I do with this?
- Put
multi-select-chips-15417.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-tg-chips-15416">. 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 multi-select-chips-15417What'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 multi-select-chips-15417
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
width(andbackground,border-color,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
widthon a box in flow, so content beside or after it can move. A category from the CSS, not a measurement for this effect.
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
29 more effects in Toggles & Switches
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 Toggles & SwitchesShipping 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 Multi-Select Chips
Finished looks, each one a position in the customizer above. Copy any of them, or open it and keep moving the sliders.