Perspective Grid

Infinite scrolling 3D perspective grid with WebGL shader rendering

perspective-grid-tw

Customize

Basic

#FF9FFC
0.5x
1

Grid Settings

1x
1
10
64

Perspective & Effects

0°
0
1

Props

widthnumber | string

Width of the component in pixels or CSS value

Default:"100%"
heightnumber | string

Height of the component in pixels or CSS value

Default:400
speednumber

Animation speed multiplier

Default:0.5
colorstring

Grid color in hex format

Default:"#FF9FFC"
gridScalenumber

Grid scale factor - higher values create smaller grid cells

Default:1.0
lineThicknessnumber

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

Default:1
antialiasQualitynumber

Anti-aliasing quality - higher values = better quality

Default:64.0
autoPlayboolean

Whether to automatically play the animation

Default:true
opacitynumber

Opacity of the grid (0-1)

Default:1.0
fadeSmoothnessnumber

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

Default:1
perspectivenumber

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

Default:0.0
gridLengthnumber

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

Default:10.0
curvenumber

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

Default:0.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

Default:undefined