reactbits.dev
Get started

A quiet pattern, drawn one slat at a time.

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

Start buildingBrowse components
9:41

A quiet pattern, drawn one slat at a time.

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

Start buildingBrowse components

A quiet pattern, drawn one slat at a time.

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

Get startedLearn more
Slat Width
10px
Slat Height
25px
Gap
3px
Roundness
0.75
Speed
0.6
Scale
1.5
Direction
250°
Chop
0.55
Stretch
0
Glint
0.7
Contrast
1.25
Perspective
0.55
Fog
0.55
Cursor Strength
Cursor Size
40px
Swirl
0
Trail
1.4s
Lean
0
Intro Duration
1.5s

More backgrounds in Pro

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

View all 106
28 properties
preset'swell' | 'tide' | 'storm' | 'signal''swell'A starting look for the sea. Every wave prop below overrides the preset value when you pass it. Signal turns the field into a flat, equalizer style wall.
color'#A855F7'Color of the slats.
glintColor'#ffffff'Color the slats shift towards on wave crests and in the light the cursor leaves.
backgroundColor'#000000'Color behind the slats. Pass transparent to show the page through.
slatWidth10Width of one slat in CSS pixels.
slatHeight25Full height of one slat in CSS pixels.
gap3Space between slats in CSS pixels.
roundness0.75Corner rounding of each slat, from square at 0 to a full pill at 1.
scalefrom presetSize of the swell. Larger values give longer, calmer waves.
speedfrom presetHow fast the waves roll. 0 freezes the sea while the cursor can still stir it.
directionfrom presetHeading of the swell in degrees. 270 rolls straight towards the viewer.
chopfrom presetSharpens the crests and flattens the troughs, like wind on the water.
stretchfrom presetHow much each slat grows and shrinks with the wave under it. 0 keeps every slat full length.
glintfrom presetStrength of the light caught on the crests.
contrastfrom presetSpread between dark troughs and bright crests.
perspectivefrom presetHow far the sea recedes towards a horizon above the top edge. 0 is a flat wall.
fogfrom presetHaze that fades the far rows into the background.
interactiveLets the cursor stir the water. Moving it pushes a real fluid that bends the swell and carries a swirling trail of light, and a click spins out a splash.
cursorStrengthBrightness of the light the cursor leaves in the water.
cursorSize40Radius of the patch of water the cursor pushes, in CSS pixels.
swirlHow strongly the stirred water curls into eddies.
trail1.4How long the stirred water and its light linger, in seconds.
leanHow far the slats tilt with the current. 0 keeps them upright.
Rolls the sea in from the horizon on mount, unfolding the slats row by row.
introDuration1.5Length of the intro in seconds.
pausedFreezes the waves. The cursor can still stir the water.
Extra class names for the root element.
Inline styles for the root element.
preset'swell' | 'tide' | 'storm' | 'signal'

A starting look for the sea. Every wave prop below overrides the preset value when you pass it. Signal turns the field into a flat, equalizer style wall.

Default'swell'
colorstring

Color of the slats.

Default'#A855F7'
glintColorstring

Color the slats shift towards on wave crests and in the light the cursor leaves.

Default'#ffffff'
backgroundColorstring

Color behind the slats. Pass transparent to show the page through.

Default'#000000'
slatWidthnumber

Width of one slat in CSS pixels.

Default10
slatHeightnumber

Full height of one slat in CSS pixels.

Default25
gapnumber

Space between slats in CSS pixels.

Default3
roundnessnumber

Corner rounding of each slat, from square at 0 to a full pill at 1.

Default0.75
scalenumber

Size of the swell. Larger values give longer, calmer waves.

Defaultfrom preset
speednumber

How fast the waves roll. 0 freezes the sea while the cursor can still stir it.

Defaultfrom preset
directionnumber

Heading of the swell in degrees. 270 rolls straight towards the viewer.

Defaultfrom preset
chopnumber

Sharpens the crests and flattens the troughs, like wind on the water.

Defaultfrom preset
stretchnumber

How much each slat grows and shrinks with the wave under it. 0 keeps every slat full length.

Defaultfrom preset
glintnumber

Strength of the light caught on the crests.

Defaultfrom preset
contrastnumber

Spread between dark troughs and bright crests.

Defaultfrom preset
perspectivenumber

How far the sea recedes towards a horizon above the top edge. 0 is a flat wall.

Defaultfrom preset
fognumber

Haze that fades the far rows into the background.

Defaultfrom preset
interactiveboolean

Lets the cursor stir the water. Moving it pushes a real fluid that bends the swell and carries a swirling trail of light, and a click spins out a splash.

cursorStrengthnumber

Brightness of the light the cursor leaves in the water.

cursorSizenumber

Radius of the patch of water the cursor pushes, in CSS pixels.

Default40
swirlnumber

How strongly the stirred water curls into eddies.

trailnumber

How long the stirred water and its light linger, in seconds.

Default1.4
leannumber

How far the slats tilt with the current. 0 keeps them upright.

introboolean

Rolls the sea in from the horizon on mount, unfolding the slats row by row.

introDurationnumber

Length of the intro in seconds.

Default1.5
pausedboolean

Freezes the waves. The cursor can still stir the water.

Extra class names for the root element.

Inline styles for the root element.

Dependencies

1 required package

npm install ogl