reactbits.dev
Get started

Bend the magnetic fluid

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

Start buildingBrowse components
9:41

Bend the magnetic fluid

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

Start buildingBrowse components

Bend the magnetic fluid

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

Get startedLearn more
Brightness
Scale
1.6
Spike Height
Sharpness
2.5
Tilt
48°
Turbulence
Fluidity
0.5
Speed
0.5
Magnetism
Variation
0
Cursor Strength
Cursor Radius
0.22

More backgrounds in Pro

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

View all 106
27 properties
colorsstring[]['#ffffff', '#ffffff', '#ffffff']Colors of the studio lights reflected in the fluid: key light, side lights and fill light.
brightnessStrength of the reflections.
scale1.6Zoom of the fluid. Higher values show bigger, fewer spikes.
spikeHeightHow tall the spikes grow in a strong field.
sharpness2.5How peaked the spikes are. Low values give soft mounds, high values taller cones. Tips always stay rounded.
tilt48Viewing angle in degrees. Low values look down from above, high values look across the fluid.
turbulenceHow much the spike pattern sways and drifts out of its regular grid.
fluidity0.5How loosely the spikes respond, from 0 (thick and slow) to 1 (bouncy).
speed0.5How fast the swells roll across the surface.
magnetismStrength of the magnetic field that raises swells of spikes across the surface.
variationPicks a different arrangement of swells.
flowDirection'down' | 'up' | 'left' | 'right' | 'none''down'Direction the swells roll. None keeps them morphing in place.
mouseInteractionTurns the cursor into a magnet that raises a crown of spikes.
mouseStrengthStrength of the cursor magnet.
mouseRadius0.22Reach of the cursor magnet, as a fraction of the height.
mouseDampening0.15Time in seconds the crown takes to catch up with the cursor. 0 follows instantly.
clickPulseClicking sends a magnetic pulse through the fluid.
Raises the spikes when the field switches on.
lightModeRenders the fluid as glossy white liquid for light backgrounds.
transparentLets 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.
opacityOpacity of the whole effect.
pausedFreezes the fluid.
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[]

Colors of the studio lights reflected in the fluid: key light, side lights and fill light.

Default['#ffffff', '#ffffff', '#ffffff']
brightnessnumber

Strength of the reflections.

scalenumber

Zoom of the fluid. Higher values show bigger, fewer spikes.

Default1.6
spikeHeightnumber

How tall the spikes grow in a strong field.

sharpnessnumber

How peaked the spikes are. Low values give soft mounds, high values taller cones. Tips always stay rounded.

Default2.5
tiltnumber

Viewing angle in degrees. Low values look down from above, high values look across the fluid.

Default48
turbulencenumber

How much the spike pattern sways and drifts out of its regular grid.

fluiditynumber

How loosely the spikes respond, from 0 (thick and slow) to 1 (bouncy).

Default0.5
speednumber

How fast the swells roll across the surface.

Default0.5
magnetismnumber

Strength of the magnetic field that raises swells of spikes across the surface.

variationnumber

Picks a different arrangement of swells.

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

Direction the swells roll. None keeps them morphing in place.

Default'down'
mouseInteractionboolean

Turns the cursor into a magnet that raises a crown of spikes.

mouseStrengthnumber

Strength of the cursor magnet.

mouseRadiusnumber

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

Default0.22
mouseDampeningnumber

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

Default0.15
clickPulseboolean

Clicking sends a magnetic pulse through the fluid.

introboolean

Raises the spikes when the field switches on.

lightModeboolean

Renders the fluid as glossy white liquid for light backgrounds.

transparentboolean

Lets the page show through. When off, the fluid sits on the color below.

colorstring

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

Default'#120f17'
opacitynumber

Opacity of the whole effect.

pausedboolean

Freezes the fluid.

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.