
Make waves with every move.
React Bits brings motion and character to your interface, one copy-paste component at a time.

Make waves with every move.
React Bits brings motion and character to your interface, one copy-paste component at a time.
Make waves with every move.
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.
lineColor | '#ffffff' | Color of the lines. | |
accentColor | lineColor | Color the lines take on where the cursor or a click pushes them. | |
backgroundColor | 'transparent' | Background behind the lines. | |
lineStyle | 'solid' | 'dashed' | 'solid' | Draws solid lines, or dashes that stream along them. |
spacing | 10 | Space between the lines, in px. | |
lineWidth | Width of the lines, in px. | ||
rotation | Turns the lines, in degrees. 90 lays them flat. | ||
amplitude | 32 | How far the lines sway, in px. | |
scale | Size of the wave pattern. Higher values make broader, calmer waves. | ||
twist | How much the waves twist the lines, gathering them into bright folds. | ||
speed | How fast the waves flow. 0 holds them still. | ||
variation | Picks a different wave pattern. | ||
mouseInteraction | Moving the cursor drags the lines along with it. | ||
mouseRadius | 175 | Radius around the cursor that drags the lines, in px. | |
mouseStrength | How hard a moving cursor drags the lines. | ||
bounce | 0.5 | How much the lines overshoot and wobble as they settle, from 0 to 1. | |
returnDuration | 1.4 | Roughly how long the lines take to settle back, in seconds. | |
clickRipple | Clicking parts the lines in a soft ripple. | ||
| Opens the lines from the center and swells the waves in on mount. | |||
fade | Fades the edges into the page, from 0 to 1. | ||
opacity | Opacity of the whole effect. | ||
lightMode | Draws the lines as ink for light backgrounds. | ||
paused | Freezes the waves. | ||
dpr | auto | Maximum device pixel ratio, capped at 2. | |
| Extra class names for the container. | |||
| Inline styles for the container. |
lineColorstringColor of the lines.
'#ffffff'accentColorstringColor the lines take on where the cursor or a click pushes them.
lineColorbackgroundColorstringBackground behind the lines.
'transparent'lineStyle'solid' | 'dashed'Draws solid lines, or dashes that stream along them.
'solid'spacingnumberSpace between the lines, in px.
10lineWidthnumberWidth of the lines, in px.
rotationnumberTurns the lines, in degrees. 90 lays them flat.
amplitudenumberHow far the lines sway, in px.
32scalenumberSize of the wave pattern. Higher values make broader, calmer waves.
twistnumberHow much the waves twist the lines, gathering them into bright folds.
speednumberHow fast the waves flow. 0 holds them still.
variationnumberPicks a different wave pattern.
mouseInteractionbooleanMoving the cursor drags the lines along with it.
mouseRadiusnumberRadius around the cursor that drags the lines, in px.
175mouseStrengthnumberHow hard a moving cursor drags the lines.
bouncenumberHow much the lines overshoot and wobble as they settle, from 0 to 1.
0.5returnDurationnumberRoughly how long the lines take to settle back, in seconds.
1.4clickRipplebooleanClicking parts the lines in a soft ripple.
introbooleanOpens the lines from the center and swells the waves in on mount.
fadenumberFades the edges into the page, from 0 to 1.
opacitynumberOpacity of the whole effect.
lightModebooleanDraws the lines as ink for light backgrounds.
pausedbooleanFreezes the waves.
dprnumberMaximum device pixel ratio, capped at 2.
autoExtra class names for the container.
Inline styles for the container.



