
Glossy squares that ripple under colored light.
React Bits brings motion and character to your interface, one copy-paste component at a time.

Glossy squares that ripple under colored light.
React Bits brings motion and character to your interface, one copy-paste component at a time.
Glossy squares that ripple under colored light.
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.
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. | |
tileSize | Size of the squares. | ||
gap | 0.12 | Width of the gaps between the squares. | |
roundness | 0.25 | Corner radius, from sharp squares at 0 to circles at 1. | |
softness | 0.5 | How softly the edges of each square round off into the gaps. | |
bulge | 0.3 | How much each square domes up like a cushion. 0 keeps the tops flat. | |
rotation | 35 | Rotation of the grid, in degrees. | |
gloss | 0.6 | From soft satin at 0 to glossy at 1, with tighter highlights along the edges. | |
waves | Height of the slow swells. 0 lays the surface flat. | ||
waveScale | Size of the swells. Higher makes them broader. | ||
speed | 0.6 | Speed of the swells and the drifting lights. | |
shape | 'square' | 'round' | 'square' | Shape of the ripples that travel across the surface. |
pulse | Height of the ripples. 0 turns them off. | ||
pulseSpeed | 0.45 | How fast the ripples travel. | |
pulseSpacing | Time between ripples. | ||
pulseWidth | Width 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. |
brightness | Overall brightness. | ||
tilt | 0.7 | View angle, from straight down at 0 to low across the surface at 1. | |
zoom | Zoom. Higher brings the squares closer. | ||
depth | 10 | How far the surface reaches before it fades into the page. | |
grain | 0.12 | Strength of the film grain. | |
fade | Fades the edges into the page, from 0 to 1. | ||
opacity | Opacity of the whole effect. | ||
| Switches the squares on from the center outward when the effect first appears. | |||
mouseInteraction | Lets 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. |
mouseStrength | Depth of the cursor press or lift. | ||
mouseRadius | 0.35 | Size of the area the cursor shapes. | |
pulseOnClick | Sends a ripple out from wherever you click. | ||
detail | 'low' | 'medium' | 'high' | 'medium' | Smoothness of the surface. Lower it for weaker devices. |
lightMode | Draws pale squares with soft tints for light backgrounds. | ||
paused | Freezes the animation. | ||
dpr | auto | Maximum device pixel ratio, capped at 2. | |
| Extra class names for the container. |
colorstringBase color of the squares. Set it to your page background, the gaps show the page through.
'#120f17'accentColorstringColor of the first light that drifts across the squares.
'#ff4fb8'secondaryColorstringColor of the second light.
'#3b6bff'tileSizenumberSize of the squares.
gapnumberWidth of the gaps between the squares.
0.12roundnessnumberCorner radius, from sharp squares at 0 to circles at 1.
0.25softnessnumberHow softly the edges of each square round off into the gaps.
0.5bulgenumberHow much each square domes up like a cushion. 0 keeps the tops flat.
0.3rotationnumberRotation of the grid, in degrees.
35glossnumberFrom soft satin at 0 to glossy at 1, with tighter highlights along the edges.
0.6wavesnumberHeight of the slow swells. 0 lays the surface flat.
waveScalenumberSize of the swells. Higher makes them broader.
speednumberSpeed of the swells and the drifting lights.
0.6shape'square' | 'round'Shape of the ripples that travel across the surface.
'square'pulsenumberHeight of the ripples. 0 turns them off.
pulseSpeednumberHow fast the ripples travel.
0.45pulseSpacingnumberTime between ripples.
pulseWidthnumberWidth of each ripple.
pulseOrigin'center' | 'random'Start every ripple from the center, or from random spots on the surface.
'center'lighting'split' | 'backlit' | 'overhead'Placement of the two lights: from either side, low behind the surface, or from above.
'split'brightnessnumberOverall brightness.
tiltnumberView angle, from straight down at 0 to low across the surface at 1.
0.7zoomnumberZoom. Higher brings the squares closer.
depthnumberHow far the surface reaches before it fades into the page.
10grainnumberStrength of the film grain.
0.12fadenumberFades the edges into the page, from 0 to 1.
opacitynumberOpacity of the whole effect.
introbooleanSwitches the squares on from the center outward when the effect first appears.
mouseInteractionbooleanLets 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.
'press'mouseStrengthnumberDepth of the cursor press or lift.
mouseRadiusnumberSize of the area the cursor shapes.
0.35pulseOnClickbooleanSends a ripple out from wherever you click.
detail'low' | 'medium' | 'high'Smoothness of the surface. Lower it for weaker devices.
'medium'lightModebooleanDraws pale squares with soft tints for light backgrounds.
pausedbooleanFreezes the animation.
dprnumberMaximum device pixel ratio, capped at 2.
autoExtra class names for the container.



