GridPlane
A retro-futuristic scrolling grid plane with perspective and fade effects. Built with Three.js and @react-three/fiber.
Interactive Demo
Loading grid plane...
Color
Speed: 1.0
Usage
import { GridPlane } from "@mantleui/react/three";
<GridPlane color="#3b82f6" speed={1} height={400}/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
color | string | "#3b82f6" | Grid line color. |
speed | number | 1 | Scroll speed multiplier. |
gridSize | number | 20 | Grid size. |
divisions | number | 20 | Number of grid divisions. |
fadeDistance | number | 15 | Distance at which the grid fades. |
height | string | number | 400 | Height of the container. |
backgroundColor | string | "transparent" | Background color of the container. |
color"#3b82f6"stringGrid line color.
speed1numberScroll speed multiplier.
gridSize20numberGrid size.
divisions20numberNumber of grid divisions.
fadeDistance15numberDistance at which the grid fades.
height400string | numberHeight of the container.
backgroundColor"transparent"stringBackground color of the container.