
Waves are cool! Even cooler with lines!
React Bits brings motion and character to your interface, one copy-paste component at a time.

Waves are cool! Even cooler with lines!
React Bits brings motion and character to your interface, one copy-paste component at a time.
Waves are cool! Even cooler with lines!
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.
linesGradient | string[] | ['#e945f5', '#ffffff'] | Up to 8 colors blended across the lines of each wave. |
enabledWaves | Array<'top' | 'middle' | 'bottom'> | ['top', 'middle', 'bottom'] | Which waves to show. |
lineCount | number | number[] | 10 | Lines per wave, from 1 to 24. Pass an array to set each enabled wave separately. |
lineDistance | number | number[] | 6 | Spacing 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. |
lineWidth | Width of each line in pixels. | ||
glow | Strength of the glow around the lines. | ||
brightness | Overall brightness of the lines. | ||
animationSpeed | Speed of the wave motion. | ||
amplitude | Height of the waves. | ||
depthOfField | 0.5 | How much the waves in the back soften out of focus, from 0 to 1. | |
edgeFade | Fades 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. |
interactive | Bends the lines around the cursor. | ||
bendRadius | 5 | Size of the area around the cursor that bends the lines. | |
bendStrength | -0.5 | How strongly the lines bend. Negative values part them around the cursor, positive values pull them in. | |
mouseDamping | 0.05 | How smoothly the bend follows the cursor, from 0 (frozen) to 1 (instant). | |
parallax | Shifts the waves in depth as the cursor moves. | ||
parallaxStrength | 0.2 | Strength of the parallax shift. | |
clickSwirl | Clicking 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. | |||
mixBlendMode | CSSProperties['mixBlendMode'] | 'screen' | CSS mix-blend-mode of the container in dark mode. |
backgroundColor | Paints an opaque background behind the lines. Leave it unset for a transparent canvas. | ||
lightMode | Draws the lines as ink for light backgrounds. | ||
opacity | Opacity of the whole effect. | ||
dpr | auto | Maximum 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.
['#e945f5', '#ffffff']enabledWavesArray<'top' | 'middle' | 'bottom'>Which waves to show.
['top', 'middle', 'bottom']lineCountnumber | number[]Lines per wave, from 1 to 24. Pass an array to set each enabled wave separately.
10lineDistancenumber | number[]Spacing between the lines of a wave. Pass an array to set each enabled wave separately.
6lineStyle'solid' | 'dotted' | 'dashed'Draws the lines as solid strands, rows of dots or dashes.
'solid'lineWidthnumberWidth of each line in pixels.
glownumberStrength of the glow around the lines.
brightnessnumberOverall brightness of the lines.
animationSpeednumberSpeed of the wave motion.
amplitudenumberHeight of the waves.
depthOfFieldnumberHow much the waves in the back soften out of focus, from 0 to 1.
0.5edgeFadenumberFades 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.
{ x: 10, y: 0.5, rotate: -0.4 }middleWavePosition{ x: number; y: number; rotate: number }Offset, height and curl of the middle wave.
{ x: 5, y: 0, rotate: 0.2 }bottomWavePosition{ x: number; y: number; rotate: number }Offset, height and curl of the bottom wave.
{ x: 2, y: -0.7, rotate: -1 }interactivebooleanBends the lines around the cursor.
bendRadiusnumberSize of the area around the cursor that bends the lines.
5bendStrengthnumberHow strongly the lines bend. Negative values part them around the cursor, positive values pull them in.
-0.5mouseDampingnumberHow smoothly the bend follows the cursor, from 0 (frozen) to 1 (instant).
0.05parallaxbooleanShifts the waves in depth as the cursor moves.
parallaxStrengthnumberStrength of the parallax shift.
0.2clickSwirlbooleanClicking stirs the lines into a curl that slowly unwinds, turning in the direction the cursor was moving.
introbooleanSwells the waves in from flat lines on mount.
mixBlendModeCSSProperties['mixBlendMode']CSS mix-blend-mode of the container in dark mode.
'screen'backgroundColorstringPaints an opaque background behind the lines. Leave it unset for a transparent canvas.
lightModebooleanDraws the lines as ink for light backgrounds.
opacitynumberOpacity of the whole effect.
dprnumberMaximum device pixel ratio, capped at 2.
autoExtra class names for the container.
Inline styles for the container.



