reactbits.dev
Get started

Follow the lines of force

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

Start buildingBrowse components
9:41

Follow the lines of force

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

Start buildingBrowse components

Follow the lines of force

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

Get startedLearn more
Glow
2
Rim Width
0.2
Sharpness
2.5
Line Width
1px
Shimmer
1.5
Scale
1.6
Speed
0.5
Turbulence
Fluidity
0.1
Cursor Strength
Cursor Radius
0.35

More backgrounds in Pro

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

View all 106
26 properties
colorsstring[]['#ffffff', '#ffffff', '#ffffff']Up to 8 colors blended along the lines. A single color makes every line the same.
speed0.5How fast the fluid churns and flows.
scale1.6Zoom of the pattern. Higher values show bigger, fewer shapes.
turbulenceHow much the flow swirls and distorts.
fluidity0.1How smoothly the two layers of the fluid merge. Higher values give softer, rounder lines.
rimWidth0.2Thickness of the glow around each line.
sharpness2.5Falloff of the glow. Higher values are tighter.
shimmer1.5How much the lines break up into separate strokes. 0 shows every line.
glow2Brightness of the lines.
lineWidthWidth of the crisp core inside each line, in pixels. 0 keeps only the glow.
flowDirection'up' | 'down' | 'left' | 'right''down'Main direction the fluid drifts.
mouseInteractionTurns the cursor into a magnet that reveals and curls the lines around it.
mouseStrengthStrength of the cursor magnet.
mouseRadius0.35Reach of the cursor magnet, as a fraction of the height.
mouseDampening0.15Time in seconds the magnet takes to catch up with the cursor. 0 follows instantly.
clickSwirlClicking stirs the fluid into a swirl.
Fades the lines in on mount.
lightModeDraws the lines as ink for light backgrounds.
transparentLets the page show through. When off, the lines sit on the background color.
backgroundColor'#120f17'Background color when transparent is off. Defaults to white in light mode.
opacityOpacity of the whole effect.
pausedFreezes the flow.
mixBlendModeCSS mix-blend-mode applied to the container.
dprautoMaximum device pixel ratio, capped at 2.
Extra class names for the container.
Inline styles for the container.
colorsstring[]

Up to 8 colors blended along the lines. A single color makes every line the same.

Default['#ffffff', '#ffffff', '#ffffff']
speednumber

How fast the fluid churns and flows.

Default0.5
scalenumber

Zoom of the pattern. Higher values show bigger, fewer shapes.

Default1.6
turbulencenumber

How much the flow swirls and distorts.

fluiditynumber

How smoothly the two layers of the fluid merge. Higher values give softer, rounder lines.

Default0.1
rimWidthnumber

Thickness of the glow around each line.

Default0.2
sharpnessnumber

Falloff of the glow. Higher values are tighter.

Default2.5
shimmernumber

How much the lines break up into separate strokes. 0 shows every line.

Default1.5
glownumber

Brightness of the lines.

Default2
lineWidthnumber

Width of the crisp core inside each line, in pixels. 0 keeps only the glow.

flowDirection'up' | 'down' | 'left' | 'right'

Main direction the fluid drifts.

Default'down'
mouseInteractionboolean

Turns the cursor into a magnet that reveals and curls the lines around it.

mouseStrengthnumber

Strength of the cursor magnet.

mouseRadiusnumber

Reach of the cursor magnet, as a fraction of the height.

Default0.35
mouseDampeningnumber

Time in seconds the magnet takes to catch up with the cursor. 0 follows instantly.

Default0.15
clickSwirlboolean

Clicking stirs the fluid into a swirl.

introboolean

Fades the lines in on mount.

lightModeboolean

Draws the lines as ink for light backgrounds.

transparentboolean

Lets the page show through. When off, the lines sit on the background color.

backgroundColorstring

Background color when transparent is off. Defaults to white in light mode.

Default'#120f17'
opacitynumber

Opacity of the whole effect.

pausedboolean

Freezes the flow.

mixBlendModestring

CSS mix-blend-mode applied to the container.

dprnumber

Maximum device pixel ratio, capped at 2.

Defaultauto

Extra class names for the container.

Inline styles for the container.