# Equalizer Bars

> Five bars bouncing like an audio equalizer. Great for music apps.

- Category: [CSS Loaders & Spinners](https://copy-css.com/category/loaders)
- Tags: bars, equalizer, audio, loading, music
- Live preview: https://copy-css.com/snippets/equalizer-bars
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="bars" role="status" aria-label="Loading">
  <span></span>
  <span></span>
  <span></span>
  <span></span>
  <span></span>
</div>
```

## CSS

```css
.bars {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 40px;
}

.bars span {
  width: 6px;
  height: 100%;
  border-radius: 3px;
  background: #f59e0b;
  animation: bars-scale 1s ease-in-out infinite;
}

.bars span:nth-child(2) { animation-delay: -0.8s; }
.bars span:nth-child(3) { animation-delay: -0.6s; }
.bars span:nth-child(4) { animation-delay: -0.4s; }
.bars span:nth-child(5) { animation-delay: -0.2s; }

@keyframes bars-scale {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .bars span {
    animation-duration: 2s;
  }
}
```

## Notes

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