25 CSS Button Groups
24 / 25

All 25 in 25 CSS Button Groups

  1. 01CSS Split Button with Anchor-Positioned Popover Menu (Popover API, No JS)
  2. 02CSS Segmented Control with Motion-Path Comet Thumb (offset-path Arc Travel)
  3. 03CSS View Transitions Toggle Button Group with Morphing Thumb (Shared-Element FLIP)
  4. 04CSS Pricing Toggle with Monthly / Yearly Switch (Pure CSS, No JavaScript)
  5. 05CSS Segmented Control with Sliding Thumb Indicator (iOS-Style, Pure CSS)
  6. 06CSS Split Button Dropdown with Native <details> (Primary Action + Menu)
  7. 07CSS Icon Button Group for Toolbar Actions (Accessible Tooltips, Pure CSS)
  8. 08CSS Pill Radio Button Group with Sliding Indicator (Filter Pills, Pure CSS)
  9. 09CSS Toggle Button Group with Radio Inputs (Single-Select Alignment Group)
  10. 10CSS Wallet Connect Button Grid for Web3 Sign-In (MetaMask, WalletConnect, Coinbase)
  11. 11CSS AI Model Selector Button Group with Provider Badges (LLM Model Picker)
  12. 12CSS Segmented Control with Liquid Mercury Thumb (Metallic Stretch Animation)
  13. 13CSS Button Group with Subgrid Underline Beam (Perfectly Aligned Tab Indicator)
  14. 14CSS Multi-Select Chip Buttons with Acid Glow (Toggleable Tag Filters)
  15. 15CSS Split Button with Quantum Chevron Reveal (Animated Menu Materialize)
  16. 16CSS Format Toggle Button Group with Conic Fill (Radial Sweep Select)
  17. 17CSS Pixel Matrix Button Group with LED Segment Glow (Retro Display Buttons)
  18. 18CSS Multi-Action Button Group with Gradient Flow Progress (Animated CTA Bar)
  19. 19CSS Icon Segmented Control with Holographic Sheen (Iridescent View Switcher)
  20. 20CSS Vertical Button Stack with 3D Hover Depth (Tilting Card Buttons)
  21. 21CSS Floating Action Button with Radial Sub-Button Menu (Arc Fan-Out, Pure CSS)
  22. 22CSS Filter Button Group with RGB-Split Glitch Active State (Cyberpunk Toggle)
  23. 23CSS Pill Button Group with Rotating Conic Plasma Border (Animated Gradient Ring)
  24. 24CSS Action Button Row with Radar Shockwave Click Feedback (Ripple Pulse)
  25. 25CSS Date-Range Preset Button Group with Cursor-Following Glow (Spotlight Hover)
Pure CSSMIT licensed

CSS Action Button Row with Radar Shockwave Click Feedback (Ripple Pulse)

An action button row that answers every click with a radar shockwave — concentric rings burst from the button and a reactor core pulses, giving weighty, satisfying tactile feedback. The impactful 'CSS radar shockwave click feedback button group' (a next-gen ripple) for confirm bars, tool palettes and control panels.

Live Demo
Plain CSSTailwind v4
Try it

Build UI like this from scratch: Flexbox, Grid, animations & responsive CSS

ZTM · The CSS Bootcamp · 30‑day money-back guarantee · Affiliate link

10% off at checkout with code
Check ZTM Course

The code

<section class="btn-24" aria-label="Radar shockwave action row demo">
  <div class="btn-24__wrap">
    <p class="btn-24__label">Reactor controls — click a button</p>
    <div class="btn-24__row" role="group" aria-label="Reactor controls">
      <button type="button" class="btn-24__btn btn-24__btn--core" style="--c:#37f5c5">Engage</button>
      <button type="button" class="btn-24__btn" style="--c:#5cc8ff">Scan</button>
      <button type="button" class="btn-24__btn" style="--c:#ffb84d">Vent</button>
      <button type="button" class="btn-24__btn btn-24__btn--danger" style="--c:#ff5470">Abort</button>
    </div>
  </div>
</section>
@property --btn-24-g {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

.btn-24,
.btn-24 *,
.btn-24 *::before,
.btn-24 *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.btn-24 {
  font-family: 'Segoe UI',system-ui,sans-serif;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 50% 40%,#06201c,#03100e);
  padding: 44px 20px;
}

.btn-24__wrap {
  width: min(600px,100%);
}

.btn-24__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #4fd6b8;
  margin: 0 0 16px 2px;
}

.btn-24__row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-24__btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1.5px solid color-mix(in oklab,var(--c) 55%,#0a1a17);
  background: #0a1a17;
  color: var(--c);
  height: 54px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  transition: color .18s,background .18s;
}

.btn-24__btn:hover {
  background: color-mix(in oklab,var(--c) 16%,#0a1a17);
  color: #eafffa;
}

.btn-24__btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle,color-mix(in oklab,var(--c) 70%,transparent) 0 40%,transparent 60%);
  translate: -50% -50%;
  scale: 0;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}

.btn-24__btn:active::after {
  animation: btn-24-wave .6s ease-out;
}

@keyframes btn-24-wave {
  0% {
    scale: 0;
    opacity: .65;
  }

  100% {
    scale: 2.6;
    opacity: 0;
  }
}

.btn-24__btn:active {
  background: color-mix(in oklab,var(--c) 26%,#0a1a17);
}

.btn-24__btn--core {
  box-shadow: 0 0 var(--btn-24-g) -2px var(--c);
  animation: btn-24-breathe 2.6s ease-in-out infinite;
}

@keyframes btn-24-breathe {
  0%,
    100% {
    --btn-24-g: 14px;
  }

  50% {
    --btn-24-g: 34px;
  }
}

.btn-24__btn--danger {
  color: #ff8098;
}

.btn-24__btn:focus-visible {
  outline: 3px solid var(--c);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .btn-24__btn--core {
    animation: none;
  }

  .btn-24__btn:active::after {
    animation: none;
  }
}
Paste this into ChatGPT, Claude, Cursor, or any coding assistant. The block below is pre-framed with everything the AI needs to integrate this demo into your project — markup, styles, scoping notes, and the source URL. Hit Copy and paste straight into your chat.
Here's a working CSS Button Group from CodeFronts. Use it as-is or adapt to your framework. All classes are scoped under a unique prefix so the code won't collide with your existing styles. MIT licensed.
Demo: CSS Action Button Row with Radar Shockwave Click Feedback (Ripple Pulse)
Source: https://codefronts.com/components/css-button-groups/pulse-reactor/

An action button row that answers every click with a radar shockwave — concentric rings burst from the button and a reactor core pulses, giving weighty, satisfying tactile feedback. The impactful 'CSS radar shockwave click feedback button group' (a next-gen ripple) for confirm bars, tool palettes and control panels.
## HTML
```html
<section class="btn-24" aria-label="Radar shockwave action row demo">
  <div class="btn-24__wrap">
    <p class="btn-24__label">Reactor controls — click a button</p>
    <div class="btn-24__row" role="group" aria-label="Reactor controls">
      <button type="button" class="btn-24__btn btn-24__btn--core" style="--c:#37f5c5">Engage</button>
      <button type="button" class="btn-24__btn" style="--c:#5cc8ff">Scan</button>
      <button type="button" class="btn-24__btn" style="--c:#ffb84d">Vent</button>
      <button type="button" class="btn-24__btn btn-24__btn--danger" style="--c:#ff5470">Abort</button>
    </div>
  </div>
</section>
```
## CSS
```css
@property --btn-24-g {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

.btn-24,
.btn-24 *,
.btn-24 *::before,
.btn-24 *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.btn-24 {
  font-family: 'Segoe UI',system-ui,sans-serif;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 50% 40%,#06201c,#03100e);
  padding: 44px 20px;
}

.btn-24__wrap {
  width: min(600px,100%);
}

.btn-24__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #4fd6b8;
  margin: 0 0 16px 2px;
}

.btn-24__row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-24__btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1.5px solid color-mix(in oklab,var(--c) 55%,#0a1a17);
  background: #0a1a17;
  color: var(--c);
  height: 54px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  transition: color .18s,background .18s;
}

.btn-24__btn:hover {
  background: color-mix(in oklab,var(--c) 16%,#0a1a17);
  color: #eafffa;
}

.btn-24__btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle,color-mix(in oklab,var(--c) 70%,transparent) 0 40%,transparent 60%);
  translate: -50% -50%;
  scale: 0;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}

.btn-24__btn:active::after {
  animation: btn-24-wave .6s ease-out;
}

@keyframes btn-24-wave {
  0% {
    scale: 0;
    opacity: .65;
  }

  100% {
    scale: 2.6;
    opacity: 0;
  }
}

.btn-24__btn:active {
  background: color-mix(in oklab,var(--c) 26%,#0a1a17);
}

.btn-24__btn--core {
  box-shadow: 0 0 var(--btn-24-g) -2px var(--c);
  animation: btn-24-breathe 2.6s ease-in-out infinite;
}

@keyframes btn-24-breathe {
  0%,
    100% {
    --btn-24-g: 14px;
  }

  50% {
    --btn-24-g: 34px;
  }
}

.btn-24__btn--danger {
  color: #ff8098;
}

.btn-24__btn:focus-visible {
  outline: 3px solid var(--c);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .btn-24__btn--core {
    animation: none;
  }

  .btn-24__btn:active::after {
    animation: none;
  }
}
```

How this works

Each button holds a ::after ring that sits invisible until pressed. On :active, a one-shot animation scales the ring from a point to a wide, fading circle — the shockwave — while a ::before core does a quick brightness pulse. Unlike Material ripple (which needs JS to place the origin), this radar wave emanates from the button center purely in CSS.

An idle "reactor" glow breathes on the primary button via an @property-eased box-shadow so it feels alive before you even click. The shockwave is transform+opacity only and re-triggers on each press because :active restarts the animation, so repeated clicks feel responsive.

.btn:active::after{ animation:btn-24-wave .55s ease-out }
@keyframes btn-24-wave{ from{scale:0;opacity:.6} to{scale:2.6;opacity:0} }

Techniques used: :active-triggered one-shot shockwave ring · center-emanating radar (no JS origin math) · core brightness pulse · idle reactor glow breathing · transform/opacity-only for 60fps · reduced-motion removes the wave

Make it yours

  • Wave color/reach = the ring's color and the keyframe end scale.
  • Per-button accent via inline --c.
  • Idle breathing on/off by toggling the reactor animation.
  • Wave speed = the btn-24-wave duration.

Gotchas — read before shipping

  • :active re-triggers the animation on each press in most engines; if a browser coalesces rapid clicks, a tiny JS class-toggle guarantees replay.
  • Overflow must be hidden on the button so the ring clips to the shape.
  • Motion feedback should never be the only confirmation — pair with a state change or toast.
  • Disable the wave and breathing under prefers-reduced-motion.

Browser support

ChromeSafariFirefoxEdge
111+16.4+128+111+

Floor set by color-mix(), @property as this demo is written. The core technique itself goes back further — Chrome 85+.

The shockwave uses only transforms + opacity (universal). The @property-eased idle glow needs @property (Baseline 2024); it degrades to a static glow.

Techniques used in this demo

Search CodeFronts

Loading…