reactbits.dev
Get started

Glossy squares that ripple under colored light.

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

Start buildingBrowse components
9:41

Glossy squares that ripple under colored light.

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

Start buildingBrowse components

Glossy squares that ripple under colored light.

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

Get startedLearn more
Tile Size
Gap
0.12
Roundness
0.25
Softness
0.5
Bulge
0.3
Rotation
35
Gloss
0.6
Waves
Wave Scale
Speed
0.6
Pulse
Pulse Speed
0.45
Pulse Spacing
Pulse Width
Brightness
Tilt
0.7
Zoom
Depth
10
Grain
0.12
Fade
0
Opacity
Hover Strength
Hover Radius
0.35

More backgrounds in Pro

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

View all 106
38 properties
color'#120f17'Base color of the squares. Set it to your page background, the gaps show the page through.
accentColor'#ff4fb8'Color of the first light that drifts across the squares.
secondaryColor'#3b6bff'Color of the second light.
tileSizeSize of the squares.
gap0.12Width of the gaps between the squares.
roundness0.25Corner radius, from sharp squares at 0 to circles at 1.
softness0.5How softly the edges of each square round off into the gaps.
bulge0.3How much each square domes up like a cushion. 0 keeps the tops flat.
rotation35Rotation of the grid, in degrees.
gloss0.6From soft satin at 0 to glossy at 1, with tighter highlights along the edges.
wavesHeight of the slow swells. 0 lays the surface flat.
waveScaleSize of the swells. Higher makes them broader.
speed0.6Speed of the swells and the drifting lights.
shape'square' | 'round''square'Shape of the ripples that travel across the surface.
pulseHeight of the ripples. 0 turns them off.
pulseSpeed0.45How fast the ripples travel.
pulseSpacingTime between ripples.
pulseWidthWidth of each ripple.
pulseOrigin'center' | 'random''center'Start every ripple from the center, or from random spots on the surface.
lighting'split' | 'backlit' | 'overhead''split'Placement of the two lights: from either side, low behind the surface, or from above.
brightnessOverall brightness.
tilt0.7View angle, from straight down at 0 to low across the surface at 1.
zoomZoom. Higher brings the squares closer.
depth10How far the surface reaches before it fades into the page.
grain0.12Strength of the film grain.
fadeFades the edges into the page, from 0 to 1.
opacityOpacity of the whole effect.
Switches the squares on from the center outward when the effect first appears.
mouseInteractionLets the cursor shape the surface and the view follow it slightly.
hoverEffect'press' | 'lift' | 'none''press'Whether the cursor presses the surface down or lifts it up.
mouseStrengthDepth of the cursor press or lift.
mouseRadius0.35Size of the area the cursor shapes.
pulseOnClickSends a ripple out from wherever you click.
detail'low' | 'medium' | 'high''medium'Smoothness of the surface. Lower it for weaker devices.
lightModeDraws pale squares with soft tints for light backgrounds.
pausedFreezes the animation.
dprautoMaximum device pixel ratio, capped at 2.
Extra class names for the container.
colorstring

Base color of the squares. Set it to your page background, the gaps show the page through.

Default'#120f17'
accentColorstring

Color of the first light that drifts across the squares.

Default'#ff4fb8'
secondaryColorstring

Color of the second light.

Default'#3b6bff'
tileSizenumber

Size of the squares.

gapnumber

Width of the gaps between the squares.

Default0.12
roundnessnumber

Corner radius, from sharp squares at 0 to circles at 1.

Default0.25
softnessnumber

How softly the edges of each square round off into the gaps.

Default0.5
bulgenumber

How much each square domes up like a cushion. 0 keeps the tops flat.

Default0.3
rotationnumber

Rotation of the grid, in degrees.

Default35
glossnumber

From soft satin at 0 to glossy at 1, with tighter highlights along the edges.

Default0.6
wavesnumber

Height of the slow swells. 0 lays the surface flat.

waveScalenumber

Size of the swells. Higher makes them broader.

speednumber

Speed of the swells and the drifting lights.

Default0.6
shape'square' | 'round'

Shape of the ripples that travel across the surface.

Default'square'
pulsenumber

Height of the ripples. 0 turns them off.

pulseSpeednumber

How fast the ripples travel.

Default0.45
pulseSpacingnumber

Time between ripples.

pulseWidthnumber

Width of each ripple.

pulseOrigin'center' | 'random'

Start every ripple from the center, or from random spots on the surface.

Default'center'
lighting'split' | 'backlit' | 'overhead'

Placement of the two lights: from either side, low behind the surface, or from above.

Default'split'
brightnessnumber

Overall brightness.

tiltnumber

View angle, from straight down at 0 to low across the surface at 1.

Default0.7
zoomnumber

Zoom. Higher brings the squares closer.

depthnumber

How far the surface reaches before it fades into the page.

Default10
grainnumber

Strength of the film grain.

Default0.12
fadenumber

Fades the edges into the page, from 0 to 1.

opacitynumber

Opacity of the whole effect.

introboolean

Switches the squares on from the center outward when the effect first appears.

mouseInteractionboolean

Lets the cursor shape the surface and the view follow it slightly.

hoverEffect'press' | 'lift' | 'none'

Whether the cursor presses the surface down or lifts it up.

Default'press'
mouseStrengthnumber

Depth of the cursor press or lift.

mouseRadiusnumber

Size of the area the cursor shapes.

Default0.35
pulseOnClickboolean

Sends a ripple out from wherever you click.

detail'low' | 'medium' | 'high'

Smoothness of the surface. Lower it for weaker devices.

Default'medium'
lightModeboolean

Draws pale squares with soft tints for light backgrounds.

pausedboolean

Freezes the animation.

dprnumber

Maximum device pixel ratio, capped at 2.

Defaultauto

Extra class names for the container.