
Flick the dots and watch them wobble home
React Bits brings motion and character to your interface, one copy-paste component at a time.

Flick the dots and watch them wobble home
React Bits brings motion and character to your interface, one copy-paste component at a time.
Flick the dots and watch them wobble home
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.
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. |
dotSize | 5 | Size of each dot, in px. | |
gap | 18 | Space between dots, in px. | |
proximity | 140 | Radius around the cursor that pushes the dots and lights them up, in px. | |
strength | How hard a moving cursor pushes the dots. | ||
bounce | 0.6 | How much the dots overshoot and wobble as they settle, from 0 to 1. | |
tension | 0.4 | How strongly each dot pulls on its neighbours, so a push travels through the grid like jelly. 0 keeps every dot independent. | |
returnDuration | 0.8 | Roughly how long the dots take to settle back into place, in seconds. | |
shockRadius | 320 | How far a click shockwave travels, in px. | |
shockStrength | 5 | How hard a click shockwave pushes the dots. | |
swell | 0.8 | How much the dots grow while they are lit. | |
stretch | 0.5 | How much moving dots stretch into short streaks along their motion. | |
glow | 0.5 | Soft halo around lit dots. | |
fade | Fades the grid out toward the edges, from 0 to 1. | ||
opacity | Overall opacity of the grid. | ||
| Pops the dots in from the center when the grid first appears. | |||
mouseInteraction | Lets the cursor push the dots and light them up. | ||
clickShock | Sends a shockwave out from each click. | ||
paused | Freezes the animation. | ||
dpr | auto | Maximum device pixel ratio, capped at 2. | |
| Extra class names for the container. | |||
| Inline styles for the container. |
baseColorstringColor of the dots at rest.
'#3a3446'activeColorstringColor the dots light up to while they move or sit near the cursor.
'#ffffff'shape'circle' | 'square'Shape of each dot.
'circle'dotSizenumberSize of each dot, in px.
5gapnumberSpace between dots, in px.
18proximitynumberRadius around the cursor that pushes the dots and lights them up, in px.
140strengthnumberHow hard a moving cursor pushes the dots.
bouncenumberHow much the dots overshoot and wobble as they settle, from 0 to 1.
0.6tensionnumberHow strongly each dot pulls on its neighbours, so a push travels through the grid like jelly. 0 keeps every dot independent.
0.4returnDurationnumberRoughly how long the dots take to settle back into place, in seconds.
0.8shockRadiusnumberHow far a click shockwave travels, in px.
320shockStrengthnumberHow hard a click shockwave pushes the dots.
5swellnumberHow much the dots grow while they are lit.
0.8stretchnumberHow much moving dots stretch into short streaks along their motion.
0.5glownumberSoft halo around lit dots.
0.5fadenumberFades the grid out toward the edges, from 0 to 1.
opacitynumberOverall opacity of the grid.
introbooleanPops the dots in from the center when the grid first appears.
mouseInteractionbooleanLets the cursor push the dots and light them up.
clickShockbooleanSends a shockwave out from each click.
pausedbooleanFreezes the animation.
dprnumberMaximum device pixel ratio, capped at 2.
autoExtra class names for the container.
Inline styles for the container.



