Playground · 20 demos

CSS Tags & Chips Playground

Pick any demo to open it in a live, side-by-side editor. Tweak the HTML, CSS or JS and see your changes render instantly. Reset any time to return to the original.

Or browse the full CSS Tags & Chips collection for the gallery view with code panels.

01 Pure CSS
Removable Pill
Three filter chips with × buttons that actually remove the chip — pure CSS via :has(:checked) hiding the parent. The canonical filter pattern, working without a single line of JS.
Open
02 Pure CSS
Magnetic Hover
On hover the chip text drifts toward the cursor edge via a CSS-only "magnet" trick — purely transition-based, no pointer math, no JS.
Open
03 Pure CSS
Sliding Border
A real @property-animated conic gradient traces around the chip on hover — true CSS angle animation, not the keyframes-on-position hack everyone else uses.
Open
04 Pure CSS
Liquid Fill
Outline chip whose interior fills with brand colour from left-to-right on hover. Text colour inverts at the fill boundary using mix-blend-mode: difference.
Open
05 Pure CSS
Stack of Three
Chip rendered as three stacked layers offset by 2px each — depth illusion. On hover the layers fan out diagonally. Pure CSS via two ::before/::after pseudo-elements.
Open
06 Pure CSS
Notch Chip
Chip with a triangular notch cut into the left edge using clip-path — a real shape, not a background trick. Reads as a luggage tag or boarding-pass entry.
Open
07 Pure CSS
Glassmorphic
Frosted-glass chip with backdrop-blur over a coloured page background. Translucent surface, white border, soft inner highlight.
Open
08 Pure CSS
Aurora Outline
Continuously rotating conic-gradient border (violet → pink → mint) using @property for true angle animation. The chip stays still, only the rim rotates. Honours prefers-reduced-motion.
Open
09 Pure CSS
Pixel Grid
Chip background is a tiny dotted CSS pattern reading as retro/print. On hover the dot density increases via background-size transition.
Open
10 Pure CSS
Brutalist Stamp
Hard-edged offset-shadow chip with mono font and a hot-pink shadow. Press collapses into the shadow on click. Brutalist design system fixture.
Open
11 Pure CSS
Gradient Edge
Solid dark chip whose only accent is a thin gradient line on the bottom edge — minimalism with a single unmistakable signal. Fades up on hover.
Open
12 Pure CSS
Status Pulse
Status chip with a coloured leading dot that pulses for live/active state. Different colours = different states (success, warning, error, info). The standard health-indicator pattern.
Open
13 Light JS
Drag to Reorder
Three chips that can be drag-reordered with real pointer math — no library. Keyboard accessible: Tab to focus, ←/→ to swap with neighbour. The full reorder pattern.
Open
14 Light JS
Tag Input
Type to add a chip; Backspace on empty input removes the last chip. Real autocomplete dropdown filtered live by input — the full filter-input pattern with aria-controls/expanded.
Open
15 Light JS
Remove with Undo
Click × to remove a chip — but a small Undo toast appears for 4 seconds before deletion is final. The pattern Gmail and Linear made standard.
Open
16 Light JS
Counter Chip
Chip with a number badge inside; click − / + to decrement/increment with aria-valuenow updated for screen readers. The Gmail label-count pattern.
Open
17 Pure CSS
Marquee Chip
When the chip text overflows its width, the text scrolls horizontally on hover like a stock ticker. Pause on focus. Pure CSS using a duplicated text trick.
Open
18 Pure CSS
Expandable Detail
Native <details>/<summary> chip that expands inline to reveal a description on click. Real semantic disclosure, not a tooltip — keyboard accessible by default.
Open
19 Pure CSS
Linked Group
Three connected chips sharing a single border with hairline dividers — like a segmented breadcrumb of tags. Hover lights individual segments.
Open
20 Light JS
Lifecycle Chip
Animates through three states — Adding (slide in + spinner) → Active (settle + checkmark) → Removing (fade out + strikethrough). Click Run demo to replay the full add/remove dance.
Open

Search CodeFronts

Loading…