Lightspeed

lightspeed-tw

Customize

0.5
1
128
0.05
0
2
1
60

Props

NameTypeDefaultDescription
widthnumber | string"100%"Width of the component in pixels or CSS value
heightnumber | string"100%"Height of the component in pixels or CSS value
speednumber1.0Animation speed multiplier
primaryColorstring"#FF5722"Primary streak color in hex format
secondaryColorstring"#2196F3"Secondary streak color in hex format
tertiaryColorstring"#4CAF50"Tertiary streak color in hex format
streakCountnumber128Number of horizontal streak columns
stretchFactornumber0.05Vertical stretch factor of streaks
intensitynumber1.0Overall intensity/brightness multiplier
interactionEnabledbooleantrueEnable compression on mouse click
rotationnumber0Rotation angle in radians
fadePowernumber2.0Distance-based fade multiplier
opacitynumber1.0Overall opacity (0-1)
quality"low" | "medium" | "high""medium"Quality preset for performance/visual tradeoff
maxFPSnumber60Maximum frames per second cap
pauseWhenOffscreenbooleantruePause rendering when component is off-screen
classNamestring""Additional CSS classes
childrenReact.ReactNodeundefinedContent to render on top of the effect