Background Lines
Animated lines radiating from center with customizable color schemes. Choose from vibrant, neon, pastel, and more themes.
Preview
Dynamic Lines
Radiating energy
Requirements
cmd
1 linesCopy
Usage
tsx
15 linesCopy
Color Schemes
Neon
Neon Colors
Pastel
Pastel Colors
Sunset
Sunset Colors
Ocean
Ocean Colors
Options
Static (Non-Animated)
Static Lines
Thick Lines
Thick Strokes
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | undefined | Content to render on top of the animated lines |
colorScheme | 'vibrant' | 'neon' | 'pastel' | 'monochrome' | 'sunset' | 'ocean' | 'custom' | vibrant | Color theme preset for the lines |
customColors | string[] | undefined | Array of custom colors (used when colorScheme is 'custom') |
svgOptions.duration | number | 10 | Animation duration in seconds for each line |
strokeWidth | number | 2.3 | Width of the line strokes |
animated | boolean | true | Whether to animate the lines |
lineOpacity | number | 1 | Opacity of the lines (0 to 1) |
lineCount | number | 21 | Number of lines to display (1 to 21) |
className | string | undefined | Additional CSS classes for the container |