
Let the light rain down
React Bits brings motion and character to your interface, one copy-paste component at a time.

Let the light rain down
React Bits brings motion and character to your interface, one copy-paste component at a time.
Let the light rain down
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.
colors | string[] | ['#ffffff'] | Colors of the falling streaks, up to 8. Each streak picks one. |
backgroundColor | '#94a3b8' | Color of the soft light glowing at the top, where the streaks come from. | |
speed | 0.3 | How fast the streaks fall. | |
streakCount | 2 | Layers of streaks, from 1 to 16. More layers fill the tunnel. | |
streakWidth | 0.8 | Thickness of the streaks. | |
streakLength | Length of the glowing tails. | ||
density | 0.6 | How closely the streaks follow each other down the tunnel. | |
twinkle | 0.3 | How much the streaks flicker, from 0 to 1. | |
glow | Overall brightness. | ||
backgroundGlow | 0.1 | Brightness of the soft light at the top. 0 turns it off. | |
headGlow | 0.6 | How white-hot the leading tips burn, from 0 to 1. | |
depth | 0.5 | Dims streaks deep in the tunnel so the near ones stand out. | |
bloom | 0.35 | Soft glow around the brightest tips. | |
zoom | 3 | Field of view into the tunnel. Higher values zoom further in. | |
opacity | Opacity of the whole effect. | ||
mouseInteraction | The cursor bends the falling light like a lens and brightens the streaks near it. | ||
mouseStrength | 0.4 | How much the cursor brightens nearby streaks. | |
mouseRadius | 0.45 | Reach of the cursor light. | |
mouseDampening | 0.15 | How long the cursor light takes to catch up, in seconds. 0 follows instantly. | |
lens | 0.5 | How strongly the cursor bends the streaks. | |
holdToWarp | Holding the pointer down speeds the streaks up into warp trails. | ||
| The light arrives at warp speed and slows to a steady fall. | |||
fade | Fades the edges into the page, from 0 to 1. | ||
lightMode | Draws the streaks as colored light on a white background. | ||
mixBlendMode | undefined | CSS blend mode for the canvas, such as screen or lighten. | |
paused | Freezes the animation. | ||
dpr | auto | Maximum device pixel ratio, capped at 2. | |
| Extra class names for the container. | |||
| Inline styles for the container. |
colorsstring[]Colors of the falling streaks, up to 8. Each streak picks one.
['#ffffff']backgroundColorstringColor of the soft light glowing at the top, where the streaks come from.
'#94a3b8'speednumberHow fast the streaks fall.
0.3streakCountnumberLayers of streaks, from 1 to 16. More layers fill the tunnel.
2streakWidthnumberThickness of the streaks.
0.8streakLengthnumberLength of the glowing tails.
densitynumberHow closely the streaks follow each other down the tunnel.
0.6twinklenumberHow much the streaks flicker, from 0 to 1.
0.3glownumberOverall brightness.
backgroundGlownumberBrightness of the soft light at the top. 0 turns it off.
0.1headGlownumberHow white-hot the leading tips burn, from 0 to 1.
0.6depthnumberDims streaks deep in the tunnel so the near ones stand out.
0.5bloomnumberSoft glow around the brightest tips.
0.35zoomnumberField of view into the tunnel. Higher values zoom further in.
3opacitynumberOpacity of the whole effect.
mouseInteractionbooleanThe cursor bends the falling light like a lens and brightens the streaks near it.
mouseStrengthnumberHow much the cursor brightens nearby streaks.
0.4mouseRadiusnumberReach of the cursor light.
0.45mouseDampeningnumberHow long the cursor light takes to catch up, in seconds. 0 follows instantly.
0.15lensnumberHow strongly the cursor bends the streaks.
0.5holdToWarpbooleanHolding the pointer down speeds the streaks up into warp trails.
introbooleanThe light arrives at warp speed and slows to a steady fall.
fadenumberFades the edges into the page, from 0 to 1.
lightModebooleanDraws the streaks as colored light on a white background.
mixBlendModestringCSS blend mode for the canvas, such as screen or lighten.
undefinedpausedbooleanFreezes the animation.
dprnumberMaximum device pixel ratio, capped at 2.
autoExtra class names for the container.
Inline styles for the container.



