reactbits.dev
Get started

Retro dithered waves to enhance your UI

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

Start buildingBrowse components
9:41

Retro dithered waves to enhance your UI

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

Start buildingBrowse components

Retro dithered waves to enhance your UI

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

Get startedLearn more
Pixel Size
2px
Colors
4
Scale
Wave Speed
0.05
Wave Frequency
3
Wave Amplitude
0.3
Contrast
Brightness
0
Mouse Radius
0.3
Mouse Strength
Trail
0.5

More backgrounds in Pro

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

View all 106
23 properties
waveColorstring | [number, number, number][0.5, 0.5, 0.5]Color of the waves. Accepts any CSS color, or a linear RGB array from 0 to 1.
backgroundColorstring | [number, number, number][0, 0, 0]Color behind the waves. Use 'transparent' to dither the waves over your own background.
ditherMode'bayer' | 'bayer4' | 'bayer2' | 'halftone' | 'lines' | 'crosshatch' | 'noise' | 'none''bayer'Pattern used to dither the shades.
palettestring[]Two to eight colors from dark to light. Replaces the wave and background colors with an indexed palette.
colorNum4Number of shades per color channel.
pixelSize2Size of each dither pixel, in px.
scaleSize of the wave pattern.
waveSpeed0.05Speed of the wave animation.
waveFrequency3How much finer each layer of detail gets.
waveAmplitude0.3How strongly the finer layers of detail show.
contrastContrast of the waves before dithering.
brightnessBrightens or darkens the waves.
enableMouseInteractionLets the cursor interact with the waves.
mouseEffect'erase' | 'reveal' | 'ripple''erase'Erase darkens the waves under the cursor, reveal lights them up and ripple bends them.
mouseRadiusRadius of the cursor effect.
mouseStrengthStrength of the cursor effect.
trail0.5How long the cursor leaves a fading trail, from 0 to 1.
clickRippleClicking sends a ring through the waves.
Resolves from chunky pixels to full detail on mount.
disableAnimationFreezes the wave animation.
dprautoMaximum device pixel ratio, capped at 2.
Extra class names for the container.
Inline styles for the container.
waveColorstring | [number, number, number]

Color of the waves. Accepts any CSS color, or a linear RGB array from 0 to 1.

Default[0.5, 0.5, 0.5]
backgroundColorstring | [number, number, number]

Color behind the waves. Use 'transparent' to dither the waves over your own background.

Default[0, 0, 0]
ditherMode'bayer' | 'bayer4' | 'bayer2' | 'halftone' | 'lines' | 'crosshatch' | 'noise' | 'none'

Pattern used to dither the shades.

Default'bayer'
palettestring[]

Two to eight colors from dark to light. Replaces the wave and background colors with an indexed palette.

colorNumnumber

Number of shades per color channel.

Default4
pixelSizenumber

Size of each dither pixel, in px.

Default2
scalenumber

Size of the wave pattern.

waveSpeednumber

Speed of the wave animation.

Default0.05
waveFrequencynumber

How much finer each layer of detail gets.

Default3
waveAmplitudenumber

How strongly the finer layers of detail show.

Default0.3
contrastnumber

Contrast of the waves before dithering.

brightnessnumber

Brightens or darkens the waves.

enableMouseInteractionboolean

Lets the cursor interact with the waves.

mouseEffect'erase' | 'reveal' | 'ripple'

Erase darkens the waves under the cursor, reveal lights them up and ripple bends them.

Default'erase'
mouseRadiusnumber

Radius of the cursor effect.

mouseStrengthnumber

Strength of the cursor effect.

trailnumber

How long the cursor leaves a fading trail, from 0 to 1.

Default0.5
clickRippleboolean

Clicking sends a ring through the waves.

introboolean

Resolves from chunky pixels to full detail on mount.

disableAnimationboolean

Freezes the wave animation.

dprnumber

Maximum device pixel ratio, capped at 2.

Defaultauto

Extra class names for the container.

Inline styles for the container.