Retro Lines
Retro perspective grid with scrolling waves
Customize
Tweak the props liveAnimation
Perspective
Wave
Lines
Color
#290596#93229D#FFFFFFProps
| Name | Type | Default | Description |
|---|---|---|---|
width | string | number | "100%" | Container width |
height | string | number | "100%" | Container height |
className | string | "" | Additional CSS classes for styling |
children | ReactNode | undefined | Content rendered above the effect |
speed | number | 0.5 | Overall animation speed multiplier (0.01–3.0) |
scrollSpeed | number | 2 | Vertical scroll rate of the grid cells (0–10) |
density | number | 150 | Number of grid cells per unit — controls line density (10–300) |
curvature | number | 60 | Perspective bend divisor — higher values flatten the curve (5–200) |
curveExponent | number | 4 | Exponent controlling perspective distortion intensity (1–8) |
vanishPoint | number | 3.5 | Y-axis offset for the vanishing point (0–10) |
waveScale | number | 50 | Scale of the wave pattern (5–100) |
waveAmplitude | number | 2 | Strength of the sinusoidal wave distortion (0–10) |
wavePower | number | 6 | Exponent sharpening the wave peaks (1–20) |
waveThreshold | number | 0.35 | Minimum wave intensity to be visible (0–1) |
lineStart | number | -1 | Y coordinate where lines begin appearing (-2–0) |
lineEnd | number | 0.5 | Y coordinate reference for line sizing gradient (0–2) |
lineGap | number | 0.3 | Gap between lines — higher values create more spacing (0.05–2) |
colorSpeed | number | 7 | Speed multiplier for color cycling between the two tones (0–20) |
colorFrequency | number | 2 | Spatial frequency of the color pattern (0.5–10) |
color1 | string | "#290596" | Primary line color (hex) |
color2 | string | "#93229D" | Secondary line color (hex) |
backgroundColor | string | "#000000" | Background color (hex) |
opacity | number | 1 | Master opacity (0–1) |
cursorInteraction | boolean | false | Enable cursor interaction to shift the vanishing point |
widthstring | numberContainer width
"100%"heightstring | numberContainer height
"100%"classNamestringAdditional CSS classes for styling
""childrenReactNodeContent rendered above the effect
undefinedspeednumberOverall animation speed multiplier (0.01–3.0)
0.5scrollSpeednumberVertical scroll rate of the grid cells (0–10)
2densitynumberNumber of grid cells per unit — controls line density (10–300)
150curvaturenumberPerspective bend divisor — higher values flatten the curve (5–200)
60curveExponentnumberExponent controlling perspective distortion intensity (1–8)
4vanishPointnumberY-axis offset for the vanishing point (0–10)
3.5waveScalenumberScale of the wave pattern (5–100)
50waveAmplitudenumberStrength of the sinusoidal wave distortion (0–10)
2wavePowernumberExponent sharpening the wave peaks (1–20)
6waveThresholdnumberMinimum wave intensity to be visible (0–1)
0.35lineStartnumberY coordinate where lines begin appearing (-2–0)
-1lineEndnumberY coordinate reference for line sizing gradient (0–2)
0.5lineGapnumberGap between lines — higher values create more spacing (0.05–2)
0.3colorSpeednumberSpeed multiplier for color cycling between the two tones (0–20)
7colorFrequencynumberSpatial frequency of the color pattern (0.5–10)
2color1stringPrimary line color (hex)
"#290596"color2stringSecondary line color (hex)
"#93229D"backgroundColorstringBackground color (hex)
"#000000"opacitynumberMaster opacity (0–1)
1cursorInteractionbooleanEnable cursor interaction to shift the vanishing point
false