
A living grid that lights up wherever you go
React Bits brings motion and character to your interface, one copy-paste component at a time.

A living grid that lights up wherever you go
React Bits brings motion and character to your interface, one copy-paste component at a time.
A living grid that lights up wherever you go
React Bits brings motion and character to your interface, one copy-paste component at a time.
More backgrounds in Pro
Shader scenes and animated surfaces made to sit behind real content.
shape | 'square' | 'tile' | 'hexagon' | 'triangle' | 'diamond' | 'circle' | 'cross' | 'dot' | 'square' | Shape of the cells. Cross and dot draw markers where the grid lines would meet. |
cellSize | 40 | Size of each cell, in px. | |
lineWidth | Thickness of the grid lines, in px. | ||
direction | 'diagonal' | 'up' | 'down' | 'left' | 'right' | 'none' | 'diagonal' | Which way the grid drifts. None holds it still. |
speed | 0.5 | How fast the grid drifts. | |
lineColor | '#2a2734' | Color of the grid lines. | |
hoverColor | '#ffffff' | Color the cell borders light up in under the cursor. | |
hoverFillColor | hoverColor | Color that fills the inside of lit cells. Follows hoverColor when not set. | |
fillOpacity | 0.15 | How solid the inside of lit cells gets, from 0 for outlines only to 1 for solid cells. | |
rainbow | Lights cells in shifting rainbow colors instead of the hover color. | ||
tiltX | Tilts the grid back in perspective, in degrees. Positive values push the top away. | ||
tiltY | Turns the grid sideways in perspective, in degrees. Positive values push the right side away. | ||
radius | 1.5 | Size of the light around the cursor, in cells. 0 lights only the cell under it. | |
trail | 0.6 | How long lit cells take to fade after the cursor moves on, in seconds. | |
glow | 0.35 | Soft glow around lit cells, from 0 to 1. | |
twinkle | Lets random cells light up on their own now and then, from 0 to 1. | ||
fade | Fades the grid out toward the edges, from 0 to 1. | ||
clickCascade | Clicking sends a ring of lit cells rolling out across the grid. | ||
| Draws the grid in from the middle when it first appears. | |||
opacity | Opacity of the whole grid. | ||
backgroundColor | 'transparent' | Color behind the grid. By default the canvas is transparent. | |
paused | Freezes the drift and the lights. | ||
dpr | auto | Maximum device pixel ratio, capped at 2. | |
| Extra class names for the container. | |||
| Inline styles for the container. |
shape'square' | 'tile' | 'hexagon' | 'triangle' | 'diamond' | 'circle' | 'cross' | 'dot'Shape of the cells. Cross and dot draw markers where the grid lines would meet.
'square'cellSizenumberSize of each cell, in px.
40lineWidthnumberThickness of the grid lines, in px.
direction'diagonal' | 'up' | 'down' | 'left' | 'right' | 'none'Which way the grid drifts. None holds it still.
'diagonal'speednumberHow fast the grid drifts.
0.5lineColorstringColor of the grid lines.
'#2a2734'hoverColorstringColor the cell borders light up in under the cursor.
'#ffffff'hoverFillColorstringColor that fills the inside of lit cells. Follows hoverColor when not set.
hoverColorfillOpacitynumberHow solid the inside of lit cells gets, from 0 for outlines only to 1 for solid cells.
0.15rainbowbooleanLights cells in shifting rainbow colors instead of the hover color.
tiltXnumberTilts the grid back in perspective, in degrees. Positive values push the top away.
tiltYnumberTurns the grid sideways in perspective, in degrees. Positive values push the right side away.
radiusnumberSize of the light around the cursor, in cells. 0 lights only the cell under it.
1.5trailnumberHow long lit cells take to fade after the cursor moves on, in seconds.
0.6glownumberSoft glow around lit cells, from 0 to 1.
0.35twinklenumberLets random cells light up on their own now and then, from 0 to 1.
fadenumberFades the grid out toward the edges, from 0 to 1.
clickCascadebooleanClicking sends a ring of lit cells rolling out across the grid.
introbooleanDraws the grid in from the middle when it first appears.
opacitynumberOpacity of the whole grid.
backgroundColorstringColor behind the grid. By default the canvas is transparent.
'transparent'pausedbooleanFreezes the drift and the lights.
dprnumberMaximum device pixel ratio, capped at 2.
autoExtra class names for the container.
Inline styles for the container.



