Serafim

Wave Bars

Component

About

An equaliser-style row of bars riding a travelling wave, animated entirely in CSS. Bar count, width, spacing, radius, height, colour and speed are all live knobs.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Wave Bars to your project and fits it to your theme.

Code

How Wave Bars is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client"

import { WaveBars } from "@/components/ui/wave-bars"

const settings = {
  barCount: 32,
  barWidth: 6,
  gap: 4,
  radius: 4,
  height: 120,
  color: "#8b5cf6",
  duration: 1.6,
  paused: false,
}

export default function Demo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props }
  return (
    <div className="flex h-screen w-full items-center justify-center bg-background">
      <WaveBars {...s} />
    </div>
  )
}

More by Serafim

View all
  • Spline Scene

    Spline Scene

    9.4K
  • Testimonials with Marquee

    Testimonials with Marquee

    2.3K
  • Gradient Button

    Gradient Button

    1.9K
  • Pixel Canvas

    Pixel Canvas

    900
  • Animated Blur Number

    Animated Blur Number

    830
  • Empty State

    Empty State

    774
  • Balloons

    Balloons

    755
  • Status Badge

    Status Badge

    643