Skip to content
PixiKit

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
NameTypeDefaultDescription
scope"container" | "page""container"Fills its own box, or the whole page behind everything.
colorstring"#ffffff"Colour of lit cells and pulses; near black in light mode.
gridColorstring"#ffffff"Colour of the grid lines; near black in light mode.
cellSizenumber60Size 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.
radiusnumber140Reach 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.
holdTimenumber400How long a cell stays lit before fading, in milliseconds.
fadeDurationnumber800How long a lit cell takes to fade out, in milliseconds.
lineWidthnumber1Width of the grid lines, in pixels.
maxOpacitynumber1Brightness of a fully lit cell outline.
fillOpacitynumber0.06Soft fill inside lit cells.
gridOpacitynumber0.08Opacity of the grid lines at rest; 0 shows only lit cells.
spotlightnumber0.6How much the grid lines brighten around the pointer, 0 to 1.
cellGapnumber0Inset of lit cells in pixels; above 0, lit cells become separate tiles.
cellRadiusnumber0Corner radius of lit tiles, in pixels.
clickPulsebooleantrueClicking sends a ring of lit cells out from the click.
pulseSpeednumber600Speed of the click ring, in pixels per second.
ambientnumber0Lets random cells glow softly on their own, 0 to 1.
edgeFadenumber0.2Fades the grid out toward the edges, 0 to 0.5.
introbooleantrueDraws the grid out from the centre with a pulse on mount.
lightModebooleanfalseUses near black lines and cells by default, for light pages.
childrenReactNodeNoneContent drawn above the grid; the grid keeps reacting to the pointer underneath it.
dprnumber2Highest device pixel ratio drawn; capped at 2.
classNamestringNone
styleCSSPropertiesNone

More interaction effects in Pro

View all

Related