Gradient Stripes

Pro

Raycast-inspired WebGL stripes with a mouse-tracked spotlight and fine film grain.

backgroundgradientblindsdepthfull bleed
Gradient Stripes component preview

Props

PropTypeDefaultDescription
gradientColorsstring[]-Hex gradient stops (2–8). Defaults to a chili-led palette.
anglenumber0Blind rotation in degrees.
noisenumber0Film grain strength.
blindCountnumber18Target number of louvers across the width.
blindMinWidthnumber60Minimum louver width in CSS pixels on small screens.
mouseDampeningnumber0.15Mouse follow lag in seconds. 0 snaps instantly.
mirrorGradientbooleanfalseMirror the gradient across the center.
spotlightRadiusnumber0.45Mouse spotlight radius (normalized).
spotlightSoftnessnumber1.2Spotlight falloff softness.
spotlightOpacitynumber0.65Spotlight intensity.
distortAmountnumber0Wave warp amount along the louvers.
shineDirection"left" | "right""left"Direction of the louver shine stripe.
restXnumber0.5Idle spotlight X as a 0–1 fraction of canvas width.
restYnumber0.5Idle spotlight Y as a 0–1 fraction of canvas height (0 = top).
mixBlendModeCSSProperties['mixBlendMode']-Optional CSS mix-blend-mode on the WebGL layer (e.g. lighten).
pausedbooleanfalseForce-pause the render loop.
childrenReact.ReactNode-Optional overlay content above the backdrop.