
Drift through a field of light.
React Bits brings motion and character to your interface, one copy-paste component at a time.

Drift through a field of light.
React Bits brings motion and character to your interface, one copy-paste component at a time.
Drift through a field of 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.
particleCount | 200 | How many particles there are. | |
particleSpread | 10 | How far the particles spread out from the center. | |
speed | 0.1 | Speed of the floating motion, twinkle and rotation. | |
particleColors | string[] | ['#ffffff'] | Colors the particles are picked from. |
particleBaseSize | 100 | Base size of the particles. Nearer particles are drawn larger. | |
sizeRandomness | How much particle sizes vary. 0 draws every particle at the base size in px. | ||
shape | 'circle' | 'square' | 'ring' | 'sparkle' | 'circle' | Shape of each particle. |
glow | 0.5 | Soft glow around each particle. | |
twinkle | 0.3 | How much the particles flicker, from 0 to 1. | |
depthOfField | Blurs the nearest particles into soft bokeh, like a camera lens. | ||
connections | Joins nearby particles with thin lines, like a constellation. | ||
connectionDistance | 110 | How close particles need to be to connect, in px. | |
drift | 'none' | 'up' | 'down' | 'forward' | 'none' | Sends the particles drifting up like embers, down like snow, or toward you like a starfield. |
driftSpeed | How fast the particles drift. | ||
moveParticlesOnHover | Lets the cursor move the particles. | ||
hoverEffect | 'parallax' | 'repel' | 'attract' | 'parallax' | Parallax shifts the whole field away from the cursor. Repel and attract push or pull nearby particles. |
particleHoverFactor | Strength of the hover effect. | ||
hoverRadius | 140 | Radius around the cursor that repel and attract reach, in px. | |
clickBurst | Clicking sends a burst of light rippling through the particles. | ||
alphaParticles | Draws softer, slightly see-through particles. | ||
cameraDistance | 20 | Distance from the camera to the particles. Lower values feel closer and deeper. | |
disableRotation | Stops the slow rotation of the whole field. | ||
variation | Picks a different particle layout. | ||
| Flies the particles in from the distance on mount. | |||
opacity | Opacity of the whole effect. | ||
lightMode | Draws the particles as ink for light backgrounds. | ||
paused | Freezes the animation. | ||
pixelRatio | auto | Maximum device pixel ratio. Defaults to the screen's, capped at 2. | |
| Extra class names for the container. | |||
| Inline styles for the container. |
particleCountnumberHow many particles there are.
200particleSpreadnumberHow far the particles spread out from the center.
10speednumberSpeed of the floating motion, twinkle and rotation.
0.1particleColorsstring[]Colors the particles are picked from.
['#ffffff']particleBaseSizenumberBase size of the particles. Nearer particles are drawn larger.
100sizeRandomnessnumberHow much particle sizes vary. 0 draws every particle at the base size in px.
shape'circle' | 'square' | 'ring' | 'sparkle'Shape of each particle.
'circle'glownumberSoft glow around each particle.
0.5twinklenumberHow much the particles flicker, from 0 to 1.
0.3depthOfFieldnumberBlurs the nearest particles into soft bokeh, like a camera lens.
connectionsbooleanJoins nearby particles with thin lines, like a constellation.
connectionDistancenumberHow close particles need to be to connect, in px.
110drift'none' | 'up' | 'down' | 'forward'Sends the particles drifting up like embers, down like snow, or toward you like a starfield.
'none'driftSpeednumberHow fast the particles drift.
moveParticlesOnHoverbooleanLets the cursor move the particles.
hoverEffect'parallax' | 'repel' | 'attract'Parallax shifts the whole field away from the cursor. Repel and attract push or pull nearby particles.
'parallax'particleHoverFactornumberStrength of the hover effect.
hoverRadiusnumberRadius around the cursor that repel and attract reach, in px.
140clickBurstbooleanClicking sends a burst of light rippling through the particles.
alphaParticlesbooleanDraws softer, slightly see-through particles.
cameraDistancenumberDistance from the camera to the particles. Lower values feel closer and deeper.
20disableRotationbooleanStops the slow rotation of the whole field.
variationnumberPicks a different particle layout.
introbooleanFlies the particles in from the distance on mount.
opacitynumberOpacity of the whole effect.
lightModebooleanDraws the particles as ink for light backgrounds.
pausedbooleanFreezes the animation.
pixelRationumberMaximum device pixel ratio. Defaults to the screen's, capped at 2.
autoExtra class names for the container.
Inline styles for the container.



