More cursor effects in Pro
Cursor trails and pointer effects that give a site its own feel.
color | '#ffffff' | Color of lit cells and pulses. Defaults to near black in light mode. | |
gridColor | '#ffffff' | Color of the grid lines. Defaults to near black in light mode. | |
cellSize | 60 | Size of each grid cell, in px. | |
highlight | 'area' | 'cell' | 'area' | Light every cell within the radius around the cursor, 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 | 140 | Reach of the cursor, in px, for both the lit area and the spotlight. | |
falloff | 'smooth' | 'linear' | 'sharp' | 'smooth' | How quickly cells dim toward the edge of the radius. |
holdTime | 400 | How long a cell stays lit before fading, in ms. | |
fadeDuration | 800 | How long a lit cell takes to fade out, in ms. | |
lineWidth | Width of the grid lines, in px. | ||
maxOpacity | Brightness of a fully lit cell outline. | ||
fillOpacity | 0.06 | Soft fill inside lit cells. | |
gridOpacity | 0.08 | Opacity of the grid lines at rest. 0 shows only lit cells. | |
spotlight | 0.6 | How much the grid lines brighten around the cursor, from 0 to 1. | |
cellGap | Inset of lit cells, in px. Above 0, lit cells become separate tiles. | ||
cellRadius | Corner radius of lit tiles, in px. | ||
clickPulse | Clicking sends a ring of lit cells out from the click. | ||
pulseSpeed | 600 | Speed of the click ring, in px per second. | |
ambient | Lets random cells glow softly on their own, from 0 to 1. | ||
edgeFade | 0.2 | Fades the grid out toward the edges, from 0 to 0.5. | |
| Draws the grid out from the center with a pulse on mount. | |||
lightMode | Uses near black lines and cells by default, for light pages. | ||
children | ReactNode | Content drawn above the grid. The grid keeps reacting to the cursor underneath it. | |
dpr | auto | Maximum device pixel ratio, capped at 2. | |
| Extra class names for the container. | |||
| Inline styles for the container. |
colorstringColor of lit cells and pulses. Defaults to near black in light mode.
'#ffffff'gridColorstringColor of the grid lines. Defaults to near black in light mode.
'#ffffff'cellSizenumberSize of each grid cell, in px.
60highlight'area' | 'cell'Light every cell within the radius around the cursor, or only the cell under it.
'area'gridStyle'lines' | 'dashed' | 'dots' | 'crosses'How the grid is drawn: solid lines, dashed lines, dots or plus marks where the lines meet.
'lines'radiusnumberReach of the cursor, in px, for both the lit area and the spotlight.
140falloff'smooth' | 'linear' | 'sharp'How quickly cells dim toward the edge of the radius.
'smooth'holdTimenumberHow long a cell stays lit before fading, in ms.
400fadeDurationnumberHow long a lit cell takes to fade out, in ms.
800lineWidthnumberWidth of the grid lines, in px.
maxOpacitynumberBrightness of a fully lit cell outline.
fillOpacitynumberSoft fill inside lit cells.
0.06gridOpacitynumberOpacity of the grid lines at rest. 0 shows only lit cells.
0.08spotlightnumberHow much the grid lines brighten around the cursor, from 0 to 1.
0.6cellGapnumberInset of lit cells, in px. Above 0, lit cells become separate tiles.
cellRadiusnumberCorner radius of lit tiles, in px.
clickPulsebooleanClicking sends a ring of lit cells out from the click.
pulseSpeednumberSpeed of the click ring, in px per second.
600ambientnumberLets random cells glow softly on their own, from 0 to 1.
edgeFadenumberFades the grid out toward the edges, from 0 to 0.5.
0.2introbooleanDraws the grid out from the center with a pulse on mount.
lightModebooleanUses near black lines and cells by default, for light pages.
childrenReactNodeContent drawn above the grid. The grid keeps reacting to the cursor underneath it.
dprnumberMaximum device pixel ratio, capped at 2.
autoExtra class names for the container.
Inline styles for the container.



