Trace Grid
A grid whose cells light up around the pointer, linger and fade, with a ring of cells that runs out from each click.
pixikit.com/docs/effects/trace-grid
Customize
Scope
Color
Grid color
Cell size60px
Highlight
Grid style
Radius140px
Falloff
Hold time400ms
Fade duration800ms
Line width1.0px
Max opacity1.00
Fill opacity0.06
Grid opacity0.08
Spotlight0.60
Cell gap0px
Cell radius0px
Click pulse
Pulse speed600px/s
Ambient0.00
Edge fade0.20
Intro
Light mode
Dpr2.00
Props
27| Name | Type | Default | Description |
|---|---|---|---|
scope | "container" | "page" | "container" | Fills its own box, or the whole page behind everything. |
color | string | "#ffffff" | Colour of lit cells and pulses; near black in light mode. |
gridColor | string | "#ffffff" | Colour of the grid lines; near black in light mode. |
cellSize | number | 60 | Size of each grid cell, in pixels. |
highlight | "area" | "cell" | "area" | Light every cell within the radius around the pointer, or only the cell under it. |
gridStyle | "lines" | "dashed" | "dots" | "crosses" | "lines" | How the grid is drawn: solid lines, dashed lines, dots or plus marks where the lines meet. |
radius | number | 140 | Reach of the pointer in pixels, for both the lit area and the spotlight. |
falloff | "smooth" | "linear" | "sharp" | "smooth" | How quickly cells dim toward the edge of the radius. |
holdTime | number | 400 | How long a cell stays lit before fading, in milliseconds. |
fadeDuration | number | 800 | How long a lit cell takes to fade out, in milliseconds. |
lineWidth | number | 1 | Width of the grid lines, in pixels. |
maxOpacity | number | 1 | Brightness of a fully lit cell outline. |
fillOpacity | number | 0.06 | Soft fill inside lit cells. |
gridOpacity | number | 0.08 | Opacity of the grid lines at rest; 0 shows only lit cells. |
spotlight | number | 0.6 | How much the grid lines brighten around the pointer, 0 to 1. |
cellGap | number | 0 | Inset of lit cells in pixels; above 0, lit cells become separate tiles. |
cellRadius | number | 0 | Corner radius of lit tiles, in pixels. |
clickPulse | boolean | true | Clicking sends a ring of lit cells out from the click. |
pulseSpeed | number | 600 | Speed of the click ring, in pixels per second. |
ambient | number | 0 | Lets random cells glow softly on their own, 0 to 1. |
edgeFade | number | 0.2 | Fades the grid out toward the edges, 0 to 0.5. |
intro | boolean | true | Draws the grid out from the centre with a pulse on mount. |
lightMode | boolean | false | Uses near black lines and cells by default, for light pages. |
children | ReactNode | None | Content drawn above the grid; the grid keeps reacting to the pointer underneath it. |
dpr | number | 2 | Highest device pixel ratio drawn; capped at 2. |
className | string | None | |
style | CSSProperties | None |