15 Pure CSS Loading Animations

Signal Bars

Five bars of varying heights pulse in and out of opacity with a staggered delay, like an equaliser or signal indicator.

Pure CSS MIT licensed

Signal Bars the 9th of 15 designs in the 15 Pure CSS Loading Animations collection. The design is implemented in pure CSS — no JavaScript required. Copy the HTML and CSS panels below into your project. Because the demo is pure CSS, it works in any framework or templating engine you happen to use. The design honours prefers-reduced-motion and uses real semantic markup, so it ships accessibility-ready out of the box.

Live preview

Open in playground

The code

<div class="bars">
  <div class="bar"></div>
  <div class="bar"></div>
  <div class="bar"></div>
  <div class="bar"></div>
  <div class="bar"></div>
</div>
.bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 40px;
}
.bar {
  width: 10px;
  border-radius: 3px 3px 0 0;
  background: #7c6cff;
  animation: bars 1s ease-in-out infinite;
}
.bar:nth-child(1) {
  height: 20%;
  animation-delay: 0s;
}
.bar:nth-child(2) {
  height: 50%;
  animation-delay: 0.15s;
}
.bar:nth-child(3) {
  height: 80%;
  animation-delay: 0.3s;
}
.bar:nth-child(4) {
  height: 60%;
  animation-delay: 0.45s;
}
.bar:nth-child(5) {
  height: 35%;
  animation-delay: 0.6s;
}
@keyframes bars {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

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

Search CodeFronts

Loading…