Playground · 43 demos
CSS Buttons 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 Buttons collection for the gallery view with code panels.
01 CSS + JS
Add to Cart
A real e-commerce state machine: click fills a green progress bar along the bottom edge, snaps to a success state with a particle burst, then auto-resets after two seconds.
Open
02 CSS + JS
Download Progress
The button body itself fills left-to-right like a true progress indicator while the arrow bounces, then morphs into a "Complete" state with a checkmark.
Open
03 CSS + JS
Like Heart
A toggle that bursts seven floating heart particles upward on activation; the count ticks up or down with a sliding number animation.
Open
04 CSS + JS
Confirm Delete
A two-step destructive pattern: the first click shakes the button and slides up a red confirmation panel; a second click within three seconds wipes it with a sweep into a "Deleted" ghost state.
Open
05 CSS + JS
Play Pause
A media control whose icon morphs between a triangle and pause bars; a pulsing halo ring appears while playing and a row of waveform bars dances with staggered timing.
Open
06 CSS + JS
Subscribe Confetti
The border fills upward with a purple gradient, the label swaps to a checkmark, then twenty-four confetti pieces in six colors burst outward in a celebratory fan.
Open
07 CSS + JS
Magnetic Mercury
A liquid-metal pill with a polished radial sheen. Click anywhere on the surface and a bright ripple expands from the exact point of contact, like mercury catching the light.
Open
08 CSS + JS
Brutalist Glitch
A raw outlined button that fills hard on hover. Click triggers a chromatic-aberration glitch — the label tears into red and cyan layers with a violent shake before snapping back.
Open
09 CSS + JS
Neon Noir
A cyberpunk terminal button glowing faint cyan. Click detonates a plasma burst — an expanding ring, a radial bloom, and ten sparks flung from the point of contact.
Open
10 CSS + JS
Clay Press
A chunky claymorphism button with a thick 3D base shadow. Press it and the whole shape squishes down and stretches wide, with a soft white bloom blossoming from the click point.
Open
11 CSS + JS
Editorial Ink
A serif, italic button with a thin frame and a hairline underline that draws in on hover. Press and hold and ink floods the button from your finger; release and it retreats.
Open
12 CSS + JS
Particle Burst
A warm, dark editorial button. Click and eighteen triangular shards explode outward in a full circle — each a random size, colour, and spin — like struck flint throwing sparks.
Open
13 Pure CSS
Brushed Brass
Letterpress brass plate with engraved label and steel rivets at the corners. Hover deepens the bevel; click presses the plate into the surface.
Open
14 Pure CSS
Paper Crane
Washi paper with a hand-stamped red ink seal in the corner. The bottom-right corner is folded like an origami crease; hover lifts the whole card like a postcard.
Open
15 Pure CSS
Frosted Ice
Glacier blue with backdrop-filter refraction and noisy frost grain on top. Hover melts the surface to a brighter, glossier ice.
Open
16 Pure CSS
Typewriter Key
Concave ivory keycap with black ring and serif letter. Click depresses the key 4px with a soft mechanical thud shadow.
Open
17 Pure CSS
Lacquered Wood
Walnut grain block with brass corner brackets and gilt label. Hover deepens the lacquer sheen; the brass catches a tilt of light.
Open
18 Pure CSS
Gel Capsule
Pill-shaped pharma capsule split half clinical-blue, half pearl-white, with a chunky black band carrying the dose label. Hover brightens both halves.
Open
19 Pure CSS
Copper Coin
Aged copper disc with verdigris patina blooming around the rim. Hover spins the patina conically.
Open
20 Pure CSS
Origami Fortune
Triangular fold of cream paper with a single ink-red strip. Hover unfolds slightly to reveal the fortune underneath.
Open
21 Pure CSS
Holographic Foil
Iridescent cyan→magenta sheen with a ragged sticker edge. Hover shifts the spectrum across the surface.
Open
22 Pure CSS
Brutalist Slab
Rough concrete with a safety-yellow stripe and hard 6px offset. Click slams the slab to flush with the page.
Open
23 Pure CSS
Mercury Bead
Quicksilver bead that morphs its border-radius on hover, like surface tension giving way under pressure.
Open
24 Pure CSS
Soft Pill
The Linear / Raycast / Vercel button trend of 2026 — soft gradient pill with a crisp inset highlight, ambient glow, and a tiny shortcut chip on the right. Hover brightens the glow without moving the button.
Open
25 Pure CSS
Masking Tape
Kraft masking tape with torn perforated edges and a hand-stamped ink label. Hover lifts the corner like a peel.
Open
26 Pure CSS
Glass Shard
Obsidian shard with a faceted clip-path; magenta and cyan refract through the cuts on hover.
Open
27 Pure CSS
Velvet Ribbon
Wine-velvet pill with gilt edges; the nap shimmers like brushed fabric on hover.
Open
28 Pure CSS
LED Segment
Phosphor-green 7-segment-style display on a pure black panel with a faint scanline overlay.
Open
29 Pure CSS
Cassette Label
Hot-pink mixtape J-card with electric-teal corner sticker and ruled lines. Hover gives it a 90s cassette tilt.
Open
30 Pure CSS
Chalkboard
Slate-green chalkboard with a chalk-drawn label and dusty grain. Hover smudges a faint eraser trail.
Open
31 CSS + JS
Vinyl Sleeve
Sleeve-red record cover with concentric grooves; click drops the needle and ripples outward from the click point.
Open
32 Pure CSS
Polaroid Snapshot
A genuine Polaroid frame — square sepia photo on top, the iconic chunky white bottom border with a handwritten caption and date stamp. Tilts casually on hover like it was just dropped on a table.
Open
33 Pure CSS
Boarding Pass
Airline-navy ticket with three-letter airport codes, a flight-path arrow, magenta tear-line stub, and a real barcode strip along the bottom.
Open
34 CSS + JS
Subway Token
Aged brass subway token with a curved arc sweep that traces a clock-like ring around the inscription on click. The arc is an SVG path so the curve stays smooth at every angle.
Open
35 Pure CSS
Rx Label
Cream pharmacy label with letterpress serif, dotted underline, and a red Rx badge. Vintage prescription chic.
Open
36 CSS + JS
Radio Dial
Bakelite-cream dial with a brass pointer locked to OFF. Click toggles to ON: the pointer swings clockwise to the right tick mark and stays there until the next click.
Open
37 Pure CSS
Postage Stamp
Regal blue stamp with scalloped perforated edges and a faded ink date. Pure SVG-mask perforation.
Open
38 Pure CSS
Cigar Band
Gold filigree foil seal over a maroon ribbon; ornate Victorian club-lounge energy.
Open
39 Pure CSS
Calculator Key
Beige concave keycap with olive-green accent label; click flips the press shadow flush.
Open
40 CSS + JS
Toolbox Latch
Enamel teal lever with chrome bolt; the cursor spotlight illuminates the metal as you move across.
Open
41 CSS + JS
Receipt Paper
Newsprint-cream receipt with a dashed perforation along the top, a tilted "PAID" rubber stamp watermark in the top-left corner, and a total that counts up on click before resetting.
Open
42 CSS + JS
Punch Card
Manila IBM-style punch card with the iconic clipped top-right corner, a stamped FORTRAN-style header at the top, and a real grid of column-and-row holes punched through the body. On hover the whole card follows the cursor magnetically.
Open
43 Pure CSS
Periscope Lens
Brass periscope rim around a glowing cyan lens with crosshair etching. Hover pulses the lens like a sub coming online.
Open