reactbits.dev
Get started

May these lights guide you on your path

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

Start buildingBrowse components
9:41

May these lights guide you on your path

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

Start buildingBrowse components

May these lights guide you on your path

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

Get startedLearn more
Rays Speed
Light Spread
0.5
Ray Length
3
Ray Density
Tilt
0
Ray Sharpness
0.35
Glow
0.6
Haze
0.25
Atmosphere
Intensity
Fade Distance
Saturation
Mouse Influence
0.1
Noise Amount
0
Distortion
0

More backgrounds in Pro

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

View all 106
27 properties
raysOriginRaysOrigin'top-center'Where the light comes from: 'top-center', 'top-left', 'top-right', 'left', 'right', 'bottom-center', 'bottom-left' or 'bottom-right'.
raysColor'#ffffff'Color of the light.
raysSpeedAnimation speed. 0 freezes the rays.
lightSpread0.5How wide the beam opens. Lower values give a tight spotlight.
rayLength3How far the rays reach, in container widths.
rayDensityHow many separate shafts the beam splits into.
tiltTurns the beam by this many degrees.
raySharpness0.35How crisp the edges of the shafts are, from 0 to 1.
glow0.6Brightness of the glow around the light source.
haze0.25Drifting haze that breaks the shafts up, like dust in the air, from 0 to 1.
atmosphereHow much the light cools toward blue as it travels away from the source, from 0 to 1.
intensityOverall brightness of the light.
pulsatingThe rays slowly breathe brighter and dimmer.
fadeDistanceHow far the rays travel before they dim, in container widths.
saturationColor saturation of the light.
followMouseThe beam turns toward the cursor.
mouseInfluence0.1How far the beam turns toward the cursor, from 0 to 1.
cursorShadowThe cursor blocks the light and casts a soft shadow down the rays.
clickPulseClicking sends a wave of light down the rays.
noiseAmountFilm grain over the rays, from 0 to 1.
distortionMakes the rays waver as if seen through heat.
The rays grow out from the source on mount.
lightModePrints the light as soft colored ink so it sits on light pages.
opacityOverall opacity, from 0 to 1.
maxDevicePixelRatio2Highest pixel ratio the canvas renders at.
Extra class names for the container.
Inline styles for the container.
raysOriginRaysOrigin

Where the light comes from: 'top-center', 'top-left', 'top-right', 'left', 'right', 'bottom-center', 'bottom-left' or 'bottom-right'.

Default'top-center'
raysColorstring

Color of the light.

Default'#ffffff'
raysSpeednumber

Animation speed. 0 freezes the rays.

lightSpreadnumber

How wide the beam opens. Lower values give a tight spotlight.

Default0.5
rayLengthnumber

How far the rays reach, in container widths.

Default3
rayDensitynumber

How many separate shafts the beam splits into.

tiltnumber

Turns the beam by this many degrees.

raySharpnessnumber

How crisp the edges of the shafts are, from 0 to 1.

Default0.35
glownumber

Brightness of the glow around the light source.

Default0.6
hazenumber

Drifting haze that breaks the shafts up, like dust in the air, from 0 to 1.

Default0.25
atmospherenumber

How much the light cools toward blue as it travels away from the source, from 0 to 1.

intensitynumber

Overall brightness of the light.

pulsatingboolean

The rays slowly breathe brighter and dimmer.

fadeDistancenumber

How far the rays travel before they dim, in container widths.

saturationnumber

Color saturation of the light.

followMouseboolean

The beam turns toward the cursor.

mouseInfluencenumber

How far the beam turns toward the cursor, from 0 to 1.

Default0.1
cursorShadowboolean

The cursor blocks the light and casts a soft shadow down the rays.

clickPulseboolean

Clicking sends a wave of light down the rays.

noiseAmountnumber

Film grain over the rays, from 0 to 1.

distortionnumber

Makes the rays waver as if seen through heat.

introboolean

The rays grow out from the source on mount.

lightModeboolean

Prints the light as soft colored ink so it sits on light pages.

opacitynumber

Overall opacity, from 0 to 1.

maxDevicePixelRationumber

Highest pixel ratio the canvas renders at.

Default2

Extra class names for the container.

Inline styles for the container.