reactbits.dev
Get started

Flick the dots and watch them wobble home

React Bits brings motion and character to your interface, one copy-paste component at a time.

Start buildingBrowse components
9:41

Flick the dots and watch them wobble home

React Bits brings motion and character to your interface, one copy-paste component at a time.

Start buildingBrowse components

Flick the dots and watch them wobble home

React Bits brings motion and character to your interface, one copy-paste component at a time.

Get startedLearn more
Dot Size
5px
Gap
18px
Proximity
140px
Strength
Bounce
0.6
Tension
0.4
Return Duration
0.8s
Shock Radius
320px
Shock Strength
5
Swell
0.8
Stretch
0.5
Glow
0.5
Fade
0

More backgrounds in Pro

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

View all 106
24 properties
baseColor'#3a3446'Color of the dots at rest.
activeColor'#ffffff'Color the dots light up to while they move or sit near the cursor.
shape'circle' | 'square''circle'Shape of each dot.
dotSize5Size of each dot, in px.
gap18Space between dots, in px.
proximity140Radius around the cursor that pushes the dots and lights them up, in px.
strengthHow hard a moving cursor pushes the dots.
bounce0.6How much the dots overshoot and wobble as they settle, from 0 to 1.
tension0.4How strongly each dot pulls on its neighbours, so a push travels through the grid like jelly. 0 keeps every dot independent.
returnDuration0.8Roughly how long the dots take to settle back into place, in seconds.
shockRadius320How far a click shockwave travels, in px.
shockStrength5How hard a click shockwave pushes the dots.
swell0.8How much the dots grow while they are lit.
stretch0.5How much moving dots stretch into short streaks along their motion.
glow0.5Soft halo around lit dots.
fadeFades the grid out toward the edges, from 0 to 1.
opacityOverall opacity of the grid.
Pops the dots in from the center when the grid first appears.
mouseInteractionLets the cursor push the dots and light them up.
clickShockSends a shockwave out from each click.
pausedFreezes the animation.
dprautoMaximum device pixel ratio, capped at 2.
Extra class names for the container.
Inline styles for the container.
baseColorstring

Color of the dots at rest.

Default'#3a3446'
activeColorstring

Color the dots light up to while they move or sit near the cursor.

Default'#ffffff'
shape'circle' | 'square'

Shape of each dot.

Default'circle'
dotSizenumber

Size of each dot, in px.

Default5
gapnumber

Space between dots, in px.

Default18
proximitynumber

Radius around the cursor that pushes the dots and lights them up, in px.

Default140
strengthnumber

How hard a moving cursor pushes the dots.

bouncenumber

How much the dots overshoot and wobble as they settle, from 0 to 1.

Default0.6
tensionnumber

How strongly each dot pulls on its neighbours, so a push travels through the grid like jelly. 0 keeps every dot independent.

Default0.4
returnDurationnumber

Roughly how long the dots take to settle back into place, in seconds.

Default0.8
shockRadiusnumber

How far a click shockwave travels, in px.

Default320
shockStrengthnumber

How hard a click shockwave pushes the dots.

Default5
swellnumber

How much the dots grow while they are lit.

Default0.8
stretchnumber

How much moving dots stretch into short streaks along their motion.

Default0.5
glownumber

Soft halo around lit dots.

Default0.5
fadenumber

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

opacitynumber

Overall opacity of the grid.

introboolean

Pops the dots in from the center when the grid first appears.

mouseInteractionboolean

Lets the cursor push the dots and light them up.

clickShockboolean

Sends a shockwave out from each click.

pausedboolean

Freezes the animation.

dprnumber

Maximum device pixel ratio, capped at 2.

Defaultauto

Extra class names for the container.

Inline styles for the container.