
Follow the lines of force
React Bits brings motion and character to your interface, one copy-paste component at a time.

Follow the lines of force
React Bits brings motion and character to your interface, one copy-paste component at a time.
Follow the lines of force
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.
colors | string[] | ['#ffffff', '#ffffff', '#ffffff'] | Up to 8 colors blended along the lines. A single color makes every line the same. |
speed | 0.5 | How fast the fluid churns and flows. | |
scale | 1.6 | Zoom of the pattern. Higher values show bigger, fewer shapes. | |
turbulence | How much the flow swirls and distorts. | ||
fluidity | 0.1 | How smoothly the two layers of the fluid merge. Higher values give softer, rounder lines. | |
rimWidth | 0.2 | Thickness of the glow around each line. | |
sharpness | 2.5 | Falloff of the glow. Higher values are tighter. | |
shimmer | 1.5 | How much the lines break up into separate strokes. 0 shows every line. | |
glow | 2 | Brightness of the lines. | |
lineWidth | Width 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. |
mouseInteraction | Turns the cursor into a magnet that reveals and curls the lines around it. | ||
mouseStrength | Strength of the cursor magnet. | ||
mouseRadius | 0.35 | Reach of the cursor magnet, as a fraction of the height. | |
mouseDampening | 0.15 | Time in seconds the magnet takes to catch up with the cursor. 0 follows instantly. | |
clickSwirl | Clicking stirs the fluid into a swirl. | ||
| Fades the lines in on mount. | |||
lightMode | Draws the lines as ink for light backgrounds. | ||
transparent | Lets 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. | |
opacity | Opacity of the whole effect. | ||
paused | Freezes the flow. | ||
mixBlendMode | CSS mix-blend-mode applied to the container. | ||
dpr | auto | Maximum 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.
['#ffffff', '#ffffff', '#ffffff']speednumberHow fast the fluid churns and flows.
0.5scalenumberZoom of the pattern. Higher values show bigger, fewer shapes.
1.6turbulencenumberHow much the flow swirls and distorts.
fluiditynumberHow smoothly the two layers of the fluid merge. Higher values give softer, rounder lines.
0.1rimWidthnumberThickness of the glow around each line.
0.2sharpnessnumberFalloff of the glow. Higher values are tighter.
2.5shimmernumberHow much the lines break up into separate strokes. 0 shows every line.
1.5glownumberBrightness of the lines.
2lineWidthnumberWidth of the crisp core inside each line, in pixels. 0 keeps only the glow.
flowDirection'up' | 'down' | 'left' | 'right'Main direction the fluid drifts.
'down'mouseInteractionbooleanTurns the cursor into a magnet that reveals and curls the lines around it.
mouseStrengthnumberStrength of the cursor magnet.
mouseRadiusnumberReach of the cursor magnet, as a fraction of the height.
0.35mouseDampeningnumberTime in seconds the magnet takes to catch up with the cursor. 0 follows instantly.
0.15clickSwirlbooleanClicking stirs the fluid into a swirl.
introbooleanFades the lines in on mount.
lightModebooleanDraws the lines as ink for light backgrounds.
transparentbooleanLets the page show through. When off, the lines sit on the background color.
backgroundColorstringBackground color when transparent is off. Defaults to white in light mode.
'#120f17'opacitynumberOpacity of the whole effect.
pausedbooleanFreezes the flow.
mixBlendModestringCSS mix-blend-mode applied to the container.
dprnumberMaximum device pixel ratio, capped at 2.
autoExtra class names for the container.
Inline styles for the container.



