
Click anywhere to call down a strike
React Bits brings motion and character to your interface, one copy-paste component at a time.

Click anywhere to call down a strike
React Bits brings motion and character to your interface, one copy-paste component at a time.
Click anywhere to call down a strike
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.
color | '#4d6bff' | Color of the lightning. The hottest parts glow white. |
bolts | How many bolts to draw, from 1 to 4. | |
spread | 0.6 | Space between bolts when there is more than one. |
branches | 0.5 | How many side branches split off and flash along the bolts, from 0 to 1. |
xOffset | Moves the bolts sideways. | |
angle | Tilts the bolts, in degrees. 90 runs them across. | |
size | Scale of the jagged path. Higher is more crooked. | |
thickness | Thickness of the bright core. | |
glow | How far the glow spreads around the bolts. | |
intensity | Overall brightness. | |
speed | How fast the bolts crawl. The motion loops seamlessly every 10 seconds at 1. | |
flicker | 0.6 | Strength of the flicker and sudden flashes, from 0 to 1. |
mouseInteraction | Bolts bend toward the cursor, crackle and grow extra branches near it. | |
mouseStrength | How strongly the bolts bend toward the cursor. | |
clickStrike | Clicking calls down a bolt that strikes the spot and briefly flashes the others. | |
| Lets the bolts descend from the top on first load. | ||
fade | Fades the edges into the page, from 0 to 1. | |
opacity | Opacity of the whole effect. | |
lightMode | Draws the lightning as crisp ink strokes for light backgrounds. | |
paused | Freezes the animation. | |
dpr | auto | Maximum device pixel ratio, capped at 2. |
| Extra class names for the canvas. | ||
| Inline styles for the canvas. |
colorstringColor of the lightning. The hottest parts glow white.
'#4d6bff'boltsnumberHow many bolts to draw, from 1 to 4.
spreadnumberSpace between bolts when there is more than one.
0.6branchesnumberHow many side branches split off and flash along the bolts, from 0 to 1.
0.5xOffsetnumberMoves the bolts sideways.
anglenumberTilts the bolts, in degrees. 90 runs them across.
sizenumberScale of the jagged path. Higher is more crooked.
thicknessnumberThickness of the bright core.
glownumberHow far the glow spreads around the bolts.
intensitynumberOverall brightness.
speednumberHow fast the bolts crawl. The motion loops seamlessly every 10 seconds at 1.
flickernumberStrength of the flicker and sudden flashes, from 0 to 1.
0.6mouseInteractionbooleanBolts bend toward the cursor, crackle and grow extra branches near it.
mouseStrengthnumberHow strongly the bolts bend toward the cursor.
clickStrikebooleanClicking calls down a bolt that strikes the spot and briefly flashes the others.
introbooleanLets the bolts descend from the top on first load.
fadenumberFades the edges into the page, from 0 to 1.
opacitynumberOpacity of the whole effect.
lightModebooleanDraws the lightning as crisp ink strokes for light backgrounds.
pausedbooleanFreezes the animation.
dprnumberMaximum device pixel ratio, capped at 2.
autoExtra class names for the canvas.
Inline styles for the canvas.



