Skip to content

Wave Bars

A copy-paste loaders component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

LoadersHTMLCSSany framework

Copy into your project

HTML
<!-- Wave Bars Loader -->
<div class="nuda-wave-bars" role="status" aria-label="Loading">
  <span></span>
  <span></span>
  <span></span>
  <span></span>
  <span></span>
</div>
CSS
/* Wave Bars Loader
   Five bars waving up and down in sequence.
   Customize: --wave-bars-color, --wave-bars-width */

.nuda-wave-bars {
  --wave-bars-color: #60a5fa;
  --wave-bars-width: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 32px;
  padding: 8px;
}

.nuda-wave-bars span {
  width: var(--wave-bars-width);
  background: var(--wave-bars-color);
  border-radius: 2px;
  animation: nuda-wave-bars 1.2s ease-in-out infinite;
  will-change: height, opacity;
}

.nuda-wave-bars span:nth-child(1) { animation-delay: 0s; }
.nuda-wave-bars span:nth-child(2) { animation-delay: 0.1s; }
.nuda-wave-bars span:nth-child(3) { animation-delay: 0.2s; }
.nuda-wave-bars span:nth-child(4) { animation-delay: 0.3s; }
.nuda-wave-bars span:nth-child(5) { animation-delay: 0.4s; }

@keyframes nuda-wave-bars {
  0%, 100% {
    height: 8px;
    opacity: 0.4;
  }
  50% {
    height: 28px;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nuda-wave-bars span {
    animation: none;
    height: 16px;
    opacity: 0.6;
  }
}

How to use Wave Bars

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More loaders components

← Browse all NudaUI components