Back to CSS Radio Buttons Concentric Pulse Pure CSS
Share
HTML
<fieldset class="crb-pulse">
  <legend class="crb-sr">Plan</legend>
  <label><input type="radio" name="crb-pulse" checked /><span></span>Starter</label>
  <label><input type="radio" name="crb-pulse" /><span></span>Pro</label>
  <label><input type="radio" name="crb-pulse" /><span></span>Team</label>
</fieldset>
CSS
.crb-pulse { display: flex; flex-direction: column; gap: 10px; border: 0; padding: 0; }
.crb-pulse label {
  display: flex; align-items: center; gap: 10px;
  font: 500 13px/1 system-ui, sans-serif; color: #cbd5e1; cursor: pointer;
}
.crb-pulse input { appearance: none; -webkit-appearance: none; position: absolute; opacity: 0; }
.crb-pulse span {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #444461; background: transparent;
  position: relative; transition: border-color 0.2s;
}
.crb-pulse span::after {
  content: ''; position: absolute; inset: 3px;
  border-radius: 50%; background: #7c6cff;
  transform: scale(0); transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.crb-pulse input:checked + span { border-color: #7c6cff; }
.crb-pulse input:checked + span::after { transform: scale(1); animation: crb-pulse-burst 0.5s ease-out; }
@keyframes crb-pulse-burst {
  0%   { box-shadow: 0 0 0 0   rgba(124,108,255,0.6); }
  100% { box-shadow: 0 0 0 12px rgba(124,108,255,0); }
}

@media (prefers-reduced-motion: reduce) {
  .crb-pulse,
  .crb-pulse * {
    animation: none !important;
  }
}

.crb-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}