reactbits.dev
Get started

Light cascading from the corner.

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

Start buildingBrowse components
9:41

Light cascading from the corner.

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

Start buildingBrowse components

Light cascading from the corner.

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

Get startedLearn more
Blend
0.6
Speed
2.5
Intensity
2
Spread
2
Density
5
Sharpness
0.5
Tilt
0°
Falloff
1.6
Glow
Saturation
Dust
0
Mouse Influence
0.5
Opacity

More backgrounds in Pro

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

View all 106
22 properties
rayColor1'#FFC46B'Color of the first layer of rays, on the upper side of the fan.
rayColor2'#96c8ff'Color of the second layer of rays, on the lower side of the fan.
blend0.6Balance between the two layers, from 0 (only the first color) to 1 (only the second).
origin'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'right' | 'left''top-right'Corner or side the light shines in from.
speed2.5How fast the rays shimmer and sway. 0 freezes them.
intensity2Brightness of the light.
spread2How wide the rays fan out.
density5How many separate rays the light breaks into. Higher values give finer rays.
sharpness0.5How crisp the edges of the rays are, from soft haze at 0 to defined beams at 1.
tiltRotates the rays, in degrees.
falloff1.6How quickly the light fades with distance. Lower values let the rays reach further.
glowBrightness of the glow where the light enters.
saturationColor saturation of the light. 0 is grayscale.
dustAmount of dust drifting in the light, from 0 to 1. Specks only show inside the rays.
followMouseThe rays lean toward the cursor and the ray under it brightens.
mouseInfluence0.5How strongly the rays follow the cursor, from 0 to 1.
The rays grow out from their source on mount.
lightModeRenders the rays as soft tinted light for light backgrounds.
opacityOverall opacity, from 0 to 1.
maxDevicePixelRatio2Highest pixel ratio the canvas renders at.
Extra class names for the container.
Inline styles for the container.
rayColor1string

Color of the first layer of rays, on the upper side of the fan.

Default'#FFC46B'
rayColor2string

Color of the second layer of rays, on the lower side of the fan.

Default'#96c8ff'
blendnumber

Balance between the two layers, from 0 (only the first color) to 1 (only the second).

Default0.6
origin'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'right' | 'left'

Corner or side the light shines in from.

Default'top-right'
speednumber

How fast the rays shimmer and sway. 0 freezes them.

Default2.5
intensitynumber

Brightness of the light.

Default2
spreadnumber

How wide the rays fan out.

Default2
densitynumber

How many separate rays the light breaks into. Higher values give finer rays.

Default5
sharpnessnumber

How crisp the edges of the rays are, from soft haze at 0 to defined beams at 1.

Default0.5
tiltnumber

Rotates the rays, in degrees.

falloffnumber

How quickly the light fades with distance. Lower values let the rays reach further.

Default1.6
glownumber

Brightness of the glow where the light enters.

saturationnumber

Color saturation of the light. 0 is grayscale.

dustnumber

Amount of dust drifting in the light, from 0 to 1. Specks only show inside the rays.

followMouseboolean

The rays lean toward the cursor and the ray under it brightens.

mouseInfluencenumber

How strongly the rays follow the cursor, from 0 to 1.

Default0.5
introboolean

The rays grow out from their source on mount.

lightModeboolean

Renders the rays as soft tinted light for light backgrounds.

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.