← All elements

Equalizer Bars Loader

by @admin · 7 views

<div class="pc-eq" role="status" aria-label="Loading">
  <span></span>
  <span></span>
  <span></span>
  <span></span>
  <span></span>
</div>

About this loader

A five-bar equalizer loader where each bar scales up from its base on a staggered delay.

How it works

Five bars are flex items anchored to the bottom. One keyframe scales each bar between 20 and 100 percent of its height from the bottom edge, and every bar has a different negative animation delay, so they are all mid-cycle on load and move out of step like an audio equalizer.

Ways to customise it

  • Change the gradient colours on the bars.
  • Change the 1s duration for a faster beat.
  • Add more span elements and delays for a wider equalizer.

Good to know

Negative delays mean the animation looks busy from the first frame. The role=status label announces loading, and a prefers-reduced-motion rule can hold the bars at a middle height.

Open an example, copy the HTML and the CSS, and paste them into your page. There is nothing to install and no JavaScript to load.

More in Loaders

View all →