Perspective Grid

Infinite scrolling 3D perspective grid with WebGL shader rendering

Customize

Grid Color
Speed
0.5x
Opacity
1.00
Grid Scale
1.0x
Line Thickness
1.0
Grid Length
10.0
Antialias Quality
64
Perspective
0°
Curve
0.0
Fade Smoothness
1.00

Props

16
widthnumber | string

Width of the component in pixels or CSS value

Default"100%"
heightnumber | string

Height of the component in pixels or CSS value

Default400
speednumber

Animation speed multiplier

Default0.5
colorstring

Grid color in hex format

Default"#FF9FFC"
gridScalenumber

Grid scale factor - higher values create smaller grid cells

Default1.0
lineThicknessnumber

Line thickness (0.1 = very thin, 0.5 = medium, 2.0 = thick)

Default1
antialiasQualitynumber

Anti-aliasing quality - higher values = better quality

Default64.0
autoPlayboolean

Whether to automatically play the animation

Defaulttrue
opacitynumber

Opacity of the grid (0-1)

Default1.0
fadeSmoothnessnumber

Fade smoothness - controls how gradually the alpha transitions (higher = smoother blend)

Default1
perspectivenumber

Perspective rotation angle in degrees (0 = flat, positive = tilted back)

Default0.0
gridLengthnumber

How far into the distance the grid extends (higher = longer)

Default10.0
curvenumber

Curve intensity - bends the grid upward at edges (0 = flat, higher = more curved)

Default0.0
bottomFadestring

Bottom fade color - adds a gradient fade at the bottom (e.g., "#000000" for black fade, empty/undefined for no fade)

Default"#0a0a0a"
classNamestring

Additional CSS classes

Default""
childrenReact.ReactNode

Content to render on top of the grid

Defaultundefined