reactbits.dev
Get started

Drift through a field of light.

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

Start buildingBrowse components
9:41

Drift through a field of light.

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

Start buildingBrowse components

Drift through a field of light.

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

Get startedLearn more
Count
200
Spread
10
Size
100
Size Randomness
Speed
0.1
Glow
0.5
Twinkle
0.3
Depth Of Field
0
Drift Speed
Connection Distance
110px
Hover Factor
Hover Radius
140px
Camera Distance
20
Variation
0
Opacity

More backgrounds in Pro

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

View all 106
30 properties
particleCount200How many particles there are.
particleSpread10How far the particles spread out from the center.
speed0.1Speed of the floating motion, twinkle and rotation.
particleColorsstring[]['#ffffff']Colors the particles are picked from.
particleBaseSize100Base size of the particles. Nearer particles are drawn larger.
sizeRandomnessHow much particle sizes vary. 0 draws every particle at the base size in px.
shape'circle' | 'square' | 'ring' | 'sparkle''circle'Shape of each particle.
glow0.5Soft glow around each particle.
twinkle0.3How much the particles flicker, from 0 to 1.
depthOfFieldBlurs the nearest particles into soft bokeh, like a camera lens.
connectionsJoins nearby particles with thin lines, like a constellation.
connectionDistance110How 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.
driftSpeedHow fast the particles drift.
moveParticlesOnHoverLets 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.
particleHoverFactorStrength of the hover effect.
hoverRadius140Radius around the cursor that repel and attract reach, in px.
clickBurstClicking sends a burst of light rippling through the particles.
alphaParticlesDraws softer, slightly see-through particles.
cameraDistance20Distance from the camera to the particles. Lower values feel closer and deeper.
disableRotationStops the slow rotation of the whole field.
variationPicks a different particle layout.
Flies the particles in from the distance on mount.
opacityOpacity of the whole effect.
lightModeDraws the particles as ink for light backgrounds.
pausedFreezes the animation.
pixelRatioautoMaximum device pixel ratio. Defaults to the screen's, capped at 2.
Extra class names for the container.
Inline styles for the container.
particleCountnumber

How many particles there are.

Default200
particleSpreadnumber

How far the particles spread out from the center.

Default10
speednumber

Speed of the floating motion, twinkle and rotation.

Default0.1
particleColorsstring[]

Colors the particles are picked from.

Default['#ffffff']
particleBaseSizenumber

Base size of the particles. Nearer particles are drawn larger.

Default100
sizeRandomnessnumber

How much particle sizes vary. 0 draws every particle at the base size in px.

shape'circle' | 'square' | 'ring' | 'sparkle'

Shape of each particle.

Default'circle'
glownumber

Soft glow around each particle.

Default0.5
twinklenumber

How much the particles flicker, from 0 to 1.

Default0.3
depthOfFieldnumber

Blurs the nearest particles into soft bokeh, like a camera lens.

connectionsboolean

Joins nearby particles with thin lines, like a constellation.

connectionDistancenumber

How close particles need to be to connect, in px.

Default110
drift'none' | 'up' | 'down' | 'forward'

Sends the particles drifting up like embers, down like snow, or toward you like a starfield.

Default'none'
driftSpeednumber

How fast the particles drift.

moveParticlesOnHoverboolean

Lets 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.

Default'parallax'
particleHoverFactornumber

Strength of the hover effect.

hoverRadiusnumber

Radius around the cursor that repel and attract reach, in px.

Default140
clickBurstboolean

Clicking sends a burst of light rippling through the particles.

alphaParticlesboolean

Draws softer, slightly see-through particles.

cameraDistancenumber

Distance from the camera to the particles. Lower values feel closer and deeper.

Default20
disableRotationboolean

Stops the slow rotation of the whole field.

variationnumber

Picks a different particle layout.

introboolean

Flies the particles in from the distance on mount.

opacitynumber

Opacity of the whole effect.

lightModeboolean

Draws the particles as ink for light backgrounds.

pausedboolean

Freezes the animation.

pixelRationumber

Maximum device pixel ratio. Defaults to the screen's, capped at 2.

Defaultauto

Extra class names for the container.

Inline styles for the container.