reactbits.dev
Get started

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.

Start buildingBrowse components
9:41

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.

Start buildingBrowse components

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.

Get startedLearn more
Cell Size
40px
Line Width
1px
Fill Opacity
0.15
Speed
0.5
Tilt X
0°
Tilt Y
0°
Radius
1.5
Trail
0.6s
Glow
0.35
Twinkle
0
Fade

More backgrounds in Pro

Shader scenes and animated surfaces made to sit behind real content.

View all 106
25 properties
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.
cellSize40Size of each cell, in px.
lineWidthThickness of the grid lines, in px.
direction'diagonal' | 'up' | 'down' | 'left' | 'right' | 'none''diagonal'Which way the grid drifts. None holds it still.
speed0.5How fast the grid drifts.
lineColor'#2a2734'Color of the grid lines.
hoverColor'#ffffff'Color the cell borders light up in under the cursor.
hoverFillColorhoverColorColor that fills the inside of lit cells. Follows hoverColor when not set.
fillOpacity0.15How solid the inside of lit cells gets, from 0 for outlines only to 1 for solid cells.
rainbowLights cells in shifting rainbow colors instead of the hover color.
tiltXTilts the grid back in perspective, in degrees. Positive values push the top away.
tiltYTurns the grid sideways in perspective, in degrees. Positive values push the right side away.
radius1.5Size of the light around the cursor, in cells. 0 lights only the cell under it.
trail0.6How long lit cells take to fade after the cursor moves on, in seconds.
glow0.35Soft glow around lit cells, from 0 to 1.
twinkleLets random cells light up on their own now and then, from 0 to 1.
fadeFades the grid out toward the edges, from 0 to 1.
clickCascadeClicking sends a ring of lit cells rolling out across the grid.
Draws the grid in from the middle when it first appears.
opacityOpacity of the whole grid.
backgroundColor'transparent'Color behind the grid. By default the canvas is transparent.
pausedFreezes the drift and the lights.
dprautoMaximum 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.

Default'square'
cellSizenumber

Size of each cell, in px.

Default40
lineWidthnumber

Thickness of the grid lines, in px.

direction'diagonal' | 'up' | 'down' | 'left' | 'right' | 'none'

Which way the grid drifts. None holds it still.

Default'diagonal'
speednumber

How fast the grid drifts.

Default0.5
lineColorstring

Color of the grid lines.

Default'#2a2734'
hoverColorstring

Color the cell borders light up in under the cursor.

Default'#ffffff'
hoverFillColorstring

Color that fills the inside of lit cells. Follows hoverColor when not set.

DefaulthoverColor
fillOpacitynumber

How solid the inside of lit cells gets, from 0 for outlines only to 1 for solid cells.

Default0.15
rainbowboolean

Lights cells in shifting rainbow colors instead of the hover color.

tiltXnumber

Tilts the grid back in perspective, in degrees. Positive values push the top away.

tiltYnumber

Turns the grid sideways in perspective, in degrees. Positive values push the right side away.

radiusnumber

Size of the light around the cursor, in cells. 0 lights only the cell under it.

Default1.5
trailnumber

How long lit cells take to fade after the cursor moves on, in seconds.

Default0.6
glownumber

Soft glow around lit cells, from 0 to 1.

Default0.35
twinklenumber

Lets random cells light up on their own now and then, from 0 to 1.

fadenumber

Fades the grid out toward the edges, from 0 to 1.

clickCascadeboolean

Clicking sends a ring of lit cells rolling out across the grid.

introboolean

Draws the grid in from the middle when it first appears.

opacitynumber

Opacity of the whole grid.

backgroundColorstring

Color behind the grid. By default the canvas is transparent.

Default'transparent'
pausedboolean

Freezes the drift and the lights.

dprnumber

Maximum device pixel ratio, capped at 2.

Defaultauto

Extra class names for the container.

Inline styles for the container.