reactbits.dev
Get started

Waves are cool! Even cooler with lines!

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

Start buildingBrowse components
9:41

Waves are cool! Even cooler with lines!

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

Start buildingBrowse components

Waves are cool! Even cooler with lines!

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

Get startedLearn more
Colors
Line Count
10
Line Distance
6
Line Width
1px
Glow
Brightness
Speed
Amplitude
Depth Of Field
0.5
Edge Fade
0
Bend Radius
5
Bend Strength
-0.5
Parallax Strength
0.2

More backgrounds in Pro

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

View all 106
30 properties
linesGradientstring[]['#e945f5', '#ffffff']Up to 8 colors blended across the lines of each wave.
enabledWavesArray<'top' | 'middle' | 'bottom'>['top', 'middle', 'bottom']Which waves to show.
lineCountnumber | number[]10Lines per wave, from 1 to 24. Pass an array to set each enabled wave separately.
lineDistancenumber | number[]6Spacing between the lines of a wave. Pass an array to set each enabled wave separately.
lineStyle'solid' | 'dotted' | 'dashed''solid'Draws the lines as solid strands, rows of dots or dashes.
lineWidthWidth of each line in pixels.
glowStrength of the glow around the lines.
brightnessOverall brightness of the lines.
animationSpeedSpeed of the wave motion.
amplitudeHeight of the waves.
depthOfField0.5How much the waves in the back soften out of focus, from 0 to 1.
edgeFadeFades the lines out toward the left and right edges, from 0 to 1.
topWavePosition{ x: number; y: number; rotate: number }{ x: 10, y: 0.5, rotate: -0.4 }Offset, height and curl of the top wave.
middleWavePosition{ x: number; y: number; rotate: number }{ x: 5, y: 0, rotate: 0.2 }Offset, height and curl of the middle wave.
bottomWavePosition{ x: number; y: number; rotate: number }{ x: 2, y: -0.7, rotate: -1 }Offset, height and curl of the bottom wave.
interactiveBends the lines around the cursor.
bendRadius5Size of the area around the cursor that bends the lines.
bendStrength-0.5How strongly the lines bend. Negative values part them around the cursor, positive values pull them in.
mouseDamping0.05How smoothly the bend follows the cursor, from 0 (frozen) to 1 (instant).
parallaxShifts the waves in depth as the cursor moves.
parallaxStrength0.2Strength of the parallax shift.
clickSwirlClicking stirs the lines into a curl that slowly unwinds, turning in the direction the cursor was moving.
Swells the waves in from flat lines on mount.
mixBlendModeCSSProperties['mixBlendMode']'screen'CSS mix-blend-mode of the container in dark mode.
backgroundColorPaints an opaque background behind the lines. Leave it unset for a transparent canvas.
lightModeDraws the lines as ink for light backgrounds.
opacityOpacity of the whole effect.
dprautoMaximum device pixel ratio, capped at 2.
Extra class names for the container.
Inline styles for the container.
linesGradientstring[]

Up to 8 colors blended across the lines of each wave.

Default['#e945f5', '#ffffff']
enabledWavesArray<'top' | 'middle' | 'bottom'>

Which waves to show.

Default['top', 'middle', 'bottom']
lineCountnumber | number[]

Lines per wave, from 1 to 24. Pass an array to set each enabled wave separately.

Default10
lineDistancenumber | number[]

Spacing between the lines of a wave. Pass an array to set each enabled wave separately.

Default6
lineStyle'solid' | 'dotted' | 'dashed'

Draws the lines as solid strands, rows of dots or dashes.

Default'solid'
lineWidthnumber

Width of each line in pixels.

glownumber

Strength of the glow around the lines.

brightnessnumber

Overall brightness of the lines.

animationSpeednumber

Speed of the wave motion.

amplitudenumber

Height of the waves.

depthOfFieldnumber

How much the waves in the back soften out of focus, from 0 to 1.

Default0.5
edgeFadenumber

Fades the lines out toward the left and right edges, from 0 to 1.

topWavePosition{ x: number; y: number; rotate: number }

Offset, height and curl of the top wave.

Default{ x: 10, y: 0.5, rotate: -0.4 }
middleWavePosition{ x: number; y: number; rotate: number }

Offset, height and curl of the middle wave.

Default{ x: 5, y: 0, rotate: 0.2 }
bottomWavePosition{ x: number; y: number; rotate: number }

Offset, height and curl of the bottom wave.

Default{ x: 2, y: -0.7, rotate: -1 }
interactiveboolean

Bends the lines around the cursor.

bendRadiusnumber

Size of the area around the cursor that bends the lines.

Default5
bendStrengthnumber

How strongly the lines bend. Negative values part them around the cursor, positive values pull them in.

Default-0.5
mouseDampingnumber

How smoothly the bend follows the cursor, from 0 (frozen) to 1 (instant).

Default0.05
parallaxboolean

Shifts the waves in depth as the cursor moves.

parallaxStrengthnumber

Strength of the parallax shift.

Default0.2
clickSwirlboolean

Clicking stirs the lines into a curl that slowly unwinds, turning in the direction the cursor was moving.

introboolean

Swells the waves in from flat lines on mount.

mixBlendModeCSSProperties['mixBlendMode']

CSS mix-blend-mode of the container in dark mode.

Default'screen'
backgroundColorstring

Paints an opaque background behind the lines. Leave it unset for a transparent canvas.

lightModeboolean

Draws the lines as ink for light backgrounds.

opacitynumber

Opacity of the whole effect.

dprnumber

Maximum device pixel ratio, capped at 2.

Defaultauto

Extra class names for the container.

Inline styles for the container.