CSS-Zone

Line dance

Equalizer-style vertical bars. Practical example for loaders and state indicators with live preview, HTML structure, and production-ready CSS you can integrate quickly.

Preview

HTML + CSS

<div class="line-dance">
  <span></span><span></span><span></span><span></span><span></span>
</div>

<style>
.line-dance { display:flex; gap:8px; align-items:flex-end; height:64px; }
.line-dance span {
  width:8px; height:32px; border-radius:999px;
  background: linear-gradient(180deg, #5b8def, #9a6bff);
  box-shadow: 0 8px 18px rgba(91, 141, 239, 0.25);
  animation: line-dance 1s ease-in-out infinite;
}
.line-dance span:nth-child(2){animation-delay:.08s;}
.line-dance span:nth-child(3){animation-delay:.16s;}
.line-dance span:nth-child(4){animation-delay:.24s;}
.line-dance span:nth-child(5){animation-delay:.32s;}
@keyframes line-dance {0%,100%{transform:scaleY(.5);opacity:.7;}50%{transform:scaleY(1.2);opacity:1;}}
</style>

What the Line dance pattern demonstrates

Line dance is a reusable CSS animation pattern that can be integrated into modern UI without external dependencies. The example includes HTML structure and motion styles that are easy to scale for production components.

When this animation pattern is a good fit

Use this effect for state indication, visual focus, or lightweight micro-interactions that support content clarity. Motion should reinforce hierarchy, so keep speed, contrast, and density aligned with your interface goals.

How to implement it in production safely

Copy the snippet, adapt spacing and timing to your system tokens, and test behavior on mobile and low-power devices. Add reduced-motion support to keep the component accessible while preserving the same functional meaning.