reactbits.dev
Get started

Make waves with every move.

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

Start buildingBrowse components
9:41

Make waves with every move.

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

Start buildingBrowse components

Make waves with every move.

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

Get startedLearn more
Spacing
10px
Line Width
1px
Rotation
0°
Amplitude
32px
Scale
Twist
Speed
Variation
0
Mouse Radius
175px
Mouse Strength
Bounce
0.5
Return Duration
1.4s
Fade
0
Opacity

More backgrounds in Pro

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

View all 106
26 properties
lineColor'#ffffff'Color of the lines.
accentColorlineColorColor 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.
spacing10Space between the lines, in px.
lineWidthWidth of the lines, in px.
rotationTurns the lines, in degrees. 90 lays them flat.
amplitude32How far the lines sway, in px.
scaleSize of the wave pattern. Higher values make broader, calmer waves.
twistHow much the waves twist the lines, gathering them into bright folds.
speedHow fast the waves flow. 0 holds them still.
variationPicks a different wave pattern.
mouseInteractionMoving the cursor drags the lines along with it.
mouseRadius175Radius around the cursor that drags the lines, in px.
mouseStrengthHow hard a moving cursor drags the lines.
bounce0.5How much the lines overshoot and wobble as they settle, from 0 to 1.
returnDuration1.4Roughly how long the lines take to settle back, in seconds.
clickRippleClicking parts the lines in a soft ripple.
Opens the lines from the center and swells the waves in on mount.
fadeFades the edges into the page, from 0 to 1.
opacityOpacity of the whole effect.
lightModeDraws the lines as ink for light backgrounds.
pausedFreezes the waves.
dprautoMaximum device pixel ratio, capped at 2.
Extra class names for the container.
Inline styles for the container.
lineColorstring

Color of the lines.

Default'#ffffff'
accentColorstring

Color the lines take on where the cursor or a click pushes them.

DefaultlineColor
backgroundColorstring

Background behind the lines.

Default'transparent'
lineStyle'solid' | 'dashed'

Draws solid lines, or dashes that stream along them.

Default'solid'
spacingnumber

Space between the lines, in px.

Default10
lineWidthnumber

Width of the lines, in px.

rotationnumber

Turns the lines, in degrees. 90 lays them flat.

amplitudenumber

How far the lines sway, in px.

Default32
scalenumber

Size of the wave pattern. Higher values make broader, calmer waves.

twistnumber

How much the waves twist the lines, gathering them into bright folds.

speednumber

How fast the waves flow. 0 holds them still.

variationnumber

Picks a different wave pattern.

mouseInteractionboolean

Moving the cursor drags the lines along with it.

mouseRadiusnumber

Radius around the cursor that drags the lines, in px.

Default175
mouseStrengthnumber

How hard a moving cursor drags the lines.

bouncenumber

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

Default0.5
returnDurationnumber

Roughly how long the lines take to settle back, in seconds.

Default1.4
clickRippleboolean

Clicking parts the lines in a soft ripple.

introboolean

Opens the lines from the center and swells the waves in on mount.

fadenumber

Fades the edges into the page, from 0 to 1.

opacitynumber

Opacity of the whole effect.

lightModeboolean

Draws the lines as ink for light backgrounds.

pausedboolean

Freezes the waves.

dprnumber

Maximum device pixel ratio, capped at 2.

Defaultauto

Extra class names for the container.

Inline styles for the container.