
Light cascading from the corner.
React Bits brings motion and character to your interface, one copy-paste component at a time.

Light cascading from the corner.
React Bits brings motion and character to your interface, one copy-paste component at a time.
Light cascading from the corner.
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.
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. | |
blend | 0.6 | Balance 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. |
speed | 2.5 | How fast the rays shimmer and sway. 0 freezes them. | |
intensity | 2 | Brightness of the light. | |
spread | 2 | How wide the rays fan out. | |
density | 5 | How many separate rays the light breaks into. Higher values give finer rays. | |
sharpness | 0.5 | How crisp the edges of the rays are, from soft haze at 0 to defined beams at 1. | |
tilt | Rotates the rays, in degrees. | ||
falloff | 1.6 | How quickly the light fades with distance. Lower values let the rays reach further. | |
glow | Brightness of the glow where the light enters. | ||
saturation | Color saturation of the light. 0 is grayscale. | ||
dust | Amount of dust drifting in the light, from 0 to 1. Specks only show inside the rays. | ||
followMouse | The rays lean toward the cursor and the ray under it brightens. | ||
mouseInfluence | 0.5 | How strongly the rays follow the cursor, from 0 to 1. | |
| The rays grow out from their source on mount. | |||
lightMode | Renders the rays as soft tinted light for light backgrounds. | ||
opacity | Overall opacity, from 0 to 1. | ||
maxDevicePixelRatio | 2 | Highest pixel ratio the canvas renders at. | |
| Extra class names for the container. | |||
| Inline styles for the container. |
rayColor1stringColor of the first layer of rays, on the upper side of the fan.
'#FFC46B'rayColor2stringColor of the second layer of rays, on the lower side of the fan.
'#96c8ff'blendnumberBalance between the two layers, from 0 (only the first color) to 1 (only the second).
0.6origin'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'right' | 'left'Corner or side the light shines in from.
'top-right'speednumberHow fast the rays shimmer and sway. 0 freezes them.
2.5intensitynumberBrightness of the light.
2spreadnumberHow wide the rays fan out.
2densitynumberHow many separate rays the light breaks into. Higher values give finer rays.
5sharpnessnumberHow crisp the edges of the rays are, from soft haze at 0 to defined beams at 1.
0.5tiltnumberRotates the rays, in degrees.
falloffnumberHow quickly the light fades with distance. Lower values let the rays reach further.
1.6glownumberBrightness of the glow where the light enters.
saturationnumberColor saturation of the light. 0 is grayscale.
dustnumberAmount of dust drifting in the light, from 0 to 1. Specks only show inside the rays.
followMousebooleanThe rays lean toward the cursor and the ray under it brightens.
mouseInfluencenumberHow strongly the rays follow the cursor, from 0 to 1.
0.5introbooleanThe rays grow out from their source on mount.
lightModebooleanRenders the rays as soft tinted light for light backgrounds.
opacitynumberOverall opacity, from 0 to 1.
maxDevicePixelRationumberHighest pixel ratio the canvas renders at.
2Extra class names for the container.
Inline styles for the container.



