Grid Scan
A perspective grid on floor and ceiling with a bright scan band sweeping to the horizon.
import { GridScan } from "pleate/effects/grid-scan";Behind a headline
Scanning the horizon
Props
- density
Grid cells per unit of depth.
numberdefault 1- scanSpeed
Speed of the scan band.
numberdefault 1- colors
CSS colors or tokens: grid lines and the scan band. Defaults follow the palette.
string[]- speed
Playback speed.
numberdefault 1- scale
Pattern size; above 1 is bigger.
numberdefault 1- interactive
React to the pointer over the parent.
booleandefault true
Accessibility
- Decorative: the canvas is aria-hidden and ignores pointer events, so content on top stays usable.
- Pauses off screen and in hidden tabs; with reduced motion it shows a still frame.
- Fills its parent: give the parent position relative and the background absolute inset-0.