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

Bend the magnetic fluid
React Bits brings motion and character to your interface, one copy-paste component at a time.
Bend the magnetic fluid
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'] | Colors of the studio lights reflected in the fluid: key light, side lights and fill light. |
brightness | Strength of the reflections. | ||
scale | 1.6 | Zoom of the fluid. Higher values show bigger, fewer spikes. | |
spikeHeight | How tall the spikes grow in a strong field. | ||
sharpness | 2.5 | How peaked the spikes are. Low values give soft mounds, high values taller cones. Tips always stay rounded. | |
tilt | 48 | Viewing angle in degrees. Low values look down from above, high values look across the fluid. | |
turbulence | How much the spike pattern sways and drifts out of its regular grid. | ||
fluidity | 0.5 | How loosely the spikes respond, from 0 (thick and slow) to 1 (bouncy). | |
speed | 0.5 | How fast the swells roll across the surface. | |
magnetism | Strength of the magnetic field that raises swells of spikes across the surface. | ||
variation | Picks a different arrangement of swells. | ||
flowDirection | 'down' | 'up' | 'left' | 'right' | 'none' | 'down' | Direction the swells roll. None keeps them morphing in place. |
mouseInteraction | Turns the cursor into a magnet that raises a crown of spikes. | ||
mouseStrength | Strength of the cursor magnet. | ||
mouseRadius | 0.22 | Reach of the cursor magnet, as a fraction of the height. | |
mouseDampening | 0.15 | Time in seconds the crown takes to catch up with the cursor. 0 follows instantly. | |
clickPulse | Clicking sends a magnetic pulse through the fluid. | ||
| Raises the spikes when the field switches on. | |||
lightMode | Renders the fluid as glossy white liquid for light backgrounds. | ||
transparent | Lets the page show through. When off, the fluid sits on the color below. | ||
color | '#120f17' | Background color when transparent is off. Defaults to white in light mode. | |
opacity | Opacity of the whole effect. | ||
paused | Freezes the fluid. | ||
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[]Colors of the studio lights reflected in the fluid: key light, side lights and fill light.
['#ffffff', '#ffffff', '#ffffff']brightnessnumberStrength of the reflections.
scalenumberZoom of the fluid. Higher values show bigger, fewer spikes.
1.6spikeHeightnumberHow tall the spikes grow in a strong field.
sharpnessnumberHow peaked the spikes are. Low values give soft mounds, high values taller cones. Tips always stay rounded.
2.5tiltnumberViewing angle in degrees. Low values look down from above, high values look across the fluid.
48turbulencenumberHow much the spike pattern sways and drifts out of its regular grid.
fluiditynumberHow loosely the spikes respond, from 0 (thick and slow) to 1 (bouncy).
0.5speednumberHow fast the swells roll across the surface.
0.5magnetismnumberStrength of the magnetic field that raises swells of spikes across the surface.
variationnumberPicks a different arrangement of swells.
flowDirection'down' | 'up' | 'left' | 'right' | 'none'Direction the swells roll. None keeps them morphing in place.
'down'mouseInteractionbooleanTurns the cursor into a magnet that raises a crown of spikes.
mouseStrengthnumberStrength of the cursor magnet.
mouseRadiusnumberReach of the cursor magnet, as a fraction of the height.
0.22mouseDampeningnumberTime in seconds the crown takes to catch up with the cursor. 0 follows instantly.
0.15clickPulsebooleanClicking sends a magnetic pulse through the fluid.
introbooleanRaises the spikes when the field switches on.
lightModebooleanRenders the fluid as glossy white liquid for light backgrounds.
transparentbooleanLets the page show through. When off, the fluid sits on the color below.
colorstringBackground color when transparent is off. Defaults to white in light mode.
'#120f17'opacitynumberOpacity of the whole effect.
pausedbooleanFreezes the fluid.
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.



