Components/Backgrounds

Animated Bars

A dynamic background component with pulsating, gradient bars that create a fluid energy effect.

backgroundgradientbars

Preview

Installation

npx shadcn@latest add https://grootstudio.vercel.app/r/animated-bars.json

Examples

Digital Rhythm

Usage

Props

PropTypeDefaultRequiredDescription
numBarsnumber12The number of animated bars to render.
gradientFromstringrgb(255, 60, 0)The starting color of the bar gradient.
gradientTostringtransparentThe ending color of the bar gradient.
animationDurationnumber4Duration of the pulse animation in seconds.
backgroundColorstringThe background color of the container. If not provided, uses the theme's background.