reactbits.dev
Get started

Click anywhere to call down a strike

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

Start buildingBrowse components
9:41

Click anywhere to call down a strike

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

Start buildingBrowse components

Click anywhere to call down a strike

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

Get startedLearn more
Bolts
Spread
0.6
Branches
0.5
X Offset
0
Angle
0°
Size
Thickness
Glow
Intensity
Speed
Flicker
0.6
Mouse Strength
Fade
0
Opacity

More backgrounds in Pro

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

View all 106
23 properties
color'#4d6bff'Color of the lightning. The hottest parts glow white.
boltsHow many bolts to draw, from 1 to 4.
spread0.6Space between bolts when there is more than one.
branches0.5How many side branches split off and flash along the bolts, from 0 to 1.
xOffsetMoves the bolts sideways.
angleTilts the bolts, in degrees. 90 runs them across.
sizeScale of the jagged path. Higher is more crooked.
thicknessThickness of the bright core.
glowHow far the glow spreads around the bolts.
intensityOverall brightness.
speedHow fast the bolts crawl. The motion loops seamlessly every 10 seconds at 1.
flicker0.6Strength of the flicker and sudden flashes, from 0 to 1.
mouseInteractionBolts bend toward the cursor, crackle and grow extra branches near it.
mouseStrengthHow strongly the bolts bend toward the cursor.
clickStrikeClicking calls down a bolt that strikes the spot and briefly flashes the others.
Lets the bolts descend from the top on first load.
fadeFades the edges into the page, from 0 to 1.
opacityOpacity of the whole effect.
lightModeDraws the lightning as crisp ink strokes for light backgrounds.
pausedFreezes the animation.
dprautoMaximum device pixel ratio, capped at 2.
Extra class names for the canvas.
Inline styles for the canvas.
colorstring

Color of the lightning. The hottest parts glow white.

Default'#4d6bff'
boltsnumber

How many bolts to draw, from 1 to 4.

spreadnumber

Space between bolts when there is more than one.

Default0.6
branchesnumber

How many side branches split off and flash along the bolts, from 0 to 1.

Default0.5
xOffsetnumber

Moves the bolts sideways.

anglenumber

Tilts the bolts, in degrees. 90 runs them across.

sizenumber

Scale of the jagged path. Higher is more crooked.

thicknessnumber

Thickness of the bright core.

glownumber

How far the glow spreads around the bolts.

intensitynumber

Overall brightness.

speednumber

How fast the bolts crawl. The motion loops seamlessly every 10 seconds at 1.

flickernumber

Strength of the flicker and sudden flashes, from 0 to 1.

Default0.6
mouseInteractionboolean

Bolts bend toward the cursor, crackle and grow extra branches near it.

mouseStrengthnumber

How strongly the bolts bend toward the cursor.

clickStrikeboolean

Clicking calls down a bolt that strikes the spot and briefly flashes the others.

introboolean

Lets the bolts descend from the top on first load.

fadenumber

Fades the edges into the page, from 0 to 1.

opacitynumber

Opacity of the whole effect.

lightModeboolean

Draws the lightning as crisp ink strokes for light backgrounds.

pausedboolean

Freezes the animation.

dprnumber

Maximum device pixel ratio, capped at 2.

Defaultauto

Extra class names for the canvas.

Inline styles for the canvas.