Components
Three.js field of vertical light lines that bend forward into the camera as they fall. Flowing or static, with a quarter-arc bend, tip colour, sway, glow, and pointer parallax.
npx neonblade add neon-cascadeNeon
Cascade
Props Configuration
| Prop | Type | Default | Description |
|---|---|---|---|
color | string | "#00f3ff" | Primary line colour (hex, rgb or hsl). |
tipColor | string | undefined | Colour the lines blend into as they bend toward the camera. Omit for a single-colour look (defaults to color). |
bgColor | string | "#050505" | Scene background colour (hex, rgb or hsl). |
lineCount | number | 64 | Number of vertical lines (1–220). |
lineWidth | number | 0.09 | Ribbon width of each line in world units. |
span | number | 30 | Horizontal spread of the line field in world units. |
lineHeight | number | 20 | Length of the straight vertical fall in world units. |
curveHeight | number | 0.5 | Fraction of the fall (0–1) where the forward bend begins. Higher values keep the lines straight for longer. |
curveAmount | number | 5 | Bend radius and forward depth in world units — how far the line tips reach toward the camera. |
curvePower | number | 1 | Bend easing. 1 is a circular quarter-arc; higher values make the bend start later and sharper. |
sway | number | 0.25 | Lateral sine sway amplitude in world units. |
swayFrequency | number | 0.6 | Number of sway cycles along each line. |
swaySpeed | number | 0.35 | Speed of the sway animation. |
flow | boolean | true | Animates bright pulses travelling down each line. Disable for static blades. |
flowSpeed | number | 0.4 | Travel speed of the flowing pulses. |
flowLength | number | 0.35 | Pulse length as a fraction of one flow cycle (0–1). |
flowDensity | number | 1.2 | Number of pulses per line. |
glow | number | 1.6 | Halo / glow intensity around each line. |
opacity | number | 100 | Overall scene opacity (0–100). |
cameraDistance | number | 16 | Camera distance from the scene in world units. |
cameraFov | number | 50 | Camera field of view in degrees (20–110). |
parallax | boolean | true | Subtle pointer-driven camera parallax. |
parallaxStrength | number | 1 | Parallax travel in world units. |
className | string | undefined | Extra class names applied to the wrapper div. |