Perspective Grid

Infinite scrolling 3D perspective grid with WebGL shader rendering

perspective-grid-tw

Customize

0.5x
1x
1
1
64
1
0°
10
0

Props

NameTypeDefaultDescription
widthnumber | string"100%"Width of the component in pixels or CSS value
heightnumber | string400Height of the component in pixels or CSS value
speednumber0.5Animation speed multiplier
colorstring"#FF9FFC"Grid color in hex format
gridScalenumber1.0Grid scale factor - higher values create smaller grid cells
lineThicknessnumber1Line thickness (0.1 = very thin, 0.5 = medium, 2.0 = thick)
antialiasQualitynumber64.0Anti-aliasing quality - higher values = better quality
autoPlaybooleantrueWhether to automatically play the animation
opacitynumber1.0Opacity of the grid (0-1)
fadeSmoothnessnumber1Fade smoothness - controls how gradually the alpha transitions (higher = smoother blend)
perspectivenumber0.0Perspective rotation angle in degrees (0 = flat, positive = tilted back)
gridLengthnumber10.0How far into the distance the grid extends (higher = longer)
curvenumber0.0Curve intensity - bends the grid upward at edges (0 = flat, higher = more curved)
bottomFadestring"#0a0a0a"Bottom fade color - adds a gradient fade at the bottom (e.g., "#000000" for black fade, empty/undefined for no fade)
classNamestring""Additional CSS classes
childrenReact.ReactNodeundefinedContent to render on top of the grid