Retro Lines

Retro perspective grid with scrolling waves

retro-lines-tw

Customize

Animation

0.5
2
1

Perspective

150
60
4
3.5

Wave

50
2
6
0.35

Lines

-1
0.5
0.3

Color

7
2

Props

NameTypeDefaultDescription
widthstring | number"100%"Container width
heightstring | number"100%"Container height
classNamestring""Additional CSS classes for styling
childrenReactNodeundefinedContent rendered above the effect
speednumber0.5Overall animation speed multiplier (0.01–3.0)
scrollSpeednumber2Vertical scroll rate of the grid cells (0–10)
densitynumber150Number of grid cells per unit — controls line density (10–300)
curvaturenumber60Perspective bend divisor — higher values flatten the curve (5–200)
curveExponentnumber4Exponent controlling perspective distortion intensity (1–8)
vanishPointnumber3.5Y-axis offset for the vanishing point (0–10)
waveScalenumber50Scale of the wave pattern (5–100)
waveAmplitudenumber2Strength of the sinusoidal wave distortion (0–10)
wavePowernumber6Exponent sharpening the wave peaks (1–20)
waveThresholdnumber0.35Minimum wave intensity to be visible (0–1)
lineStartnumber-1Y coordinate where lines begin appearing (-2–0)
lineEndnumber0.5Y coordinate reference for line sizing gradient (0–2)
lineGapnumber0.3Gap between lines — higher values create more spacing (0.05–2)
colorSpeednumber7Speed multiplier for color cycling between the two tones (0–20)
colorFrequencynumber2Spatial frequency of the color pattern (0.5–10)
color1string"#290596"Primary line color (hex)
color2string"#93229D"Secondary line color (hex)
backgroundColorstring"#000000"Background color (hex)
opacitynumber1Master opacity (0–1)
cursorInteractionbooleanfalseEnable cursor interaction to shift the vanishing point