Color Drip

Animated vertical lines with colorful dripping effects. Perfect for creating dynamic backgrounds with a matrix-like or rain-inspired aesthetic.

Preview

Color Drip

Installation

Use the CLI to add this component to your project.

npx shadcn@latest add https://ui.nyxhora.com/r/color-drip.json

Usage

tsx
17 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { ColorDrip } from "@/components/ui/color-drip"

export default function Hero() {
  return (
    <div className="relative h-screen w-full overflow-hidden">
      <ColorDrip 
        colorScheme="neon"
        lineCount={12}
        speed={1.5}
        showStaticLines={true}
      />
      <div className="relative z-10 flex items-center justify-center h-full">
        {/* Your content here */}
      </div>
    </div>
  )
}

Color Schemes

Rainbow

Rainbow

Neon

Neon

Pastel

Pastel

Fire

Fire

Ocean

Ocean

Mono

Mono

Animation Options

Fast Animation (2x speed)

2x Speed

Upward Direction

Rising Effect

With Static Lines

Static Lines Visible

High Density Lines

20 Lines

Tall Drip Effect

Tall Drips

Custom Colors

Custom Gradient

Props

PropTypeDefaultDescription
lineCountnumber10Number of drip lines
colorScheme'rainbow' | 'neon' | 'pastel' | 'fire' | 'ocean' | 'mono' | 'custom'rainbowColor theme preset for the drip effect
customColorsstring[]undefinedArray of custom colors (used when colorScheme is 'custom')
speednumber1Animation speed multiplier
dripHeightnumber15Height of the drip trail in viewport height units
lineWidthnumber1Width of each line in pixels
backgroundColorstring#111111Background color
containerWidthstring90vwWidth of the container
showStaticLinesbooleanfalseShow static line behind the drip
staticLineColorstringrgba(255, 255, 255, 0.05)Color of static lines
direction'down' | 'up'downDirection of the drip animation
staggerDelaynumber0.5Delay between each line animation (seconds)
classNamestringundefinedAdditional CSS classes