# Live Badge

> A "Live" status pill with a pulsing dot, made with a single element.

- Category: [CSS Effects](https://copy-css.com/category/effects)
- Tags: badge, live, pill, pulse, status
- Live preview: https://copy-css.com/snippets/live-badge
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<span class="badge-live">Live</span>
```

## CSS

```css
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: #fef2f2;
  color: #dc2626;
  font: 700 13px/1 system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: live-pulse 1.4s ease-out infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
  100% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .badge-live::before {
    animation: none;
  }
}
```

## Notes

- This CSS Live Badge is 32 lines of pure CSS (0.6 KB) with no JavaScript and no dependencies. It uses keyframe animations, box shadows, Flexbox and reduced-motion support.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
