Lightning Bolt
Crawling bolts of lightning with glowing fog, branches and flicker that bend toward the cursor and strike where you click.
pixikit.com/docs/effects/lightning-bolt
Customize
Color
Bolts1
Spread0.60
Branches0.50
X offset0.00
Angle0
Size1.00
Thickness1.00
Glow1.00
Intensity1.00
Speed1.00
Flicker0.60
Mouse interaction
Mouse strength1.00
Click strike
Intro
Fade0.00
Opacity1.0
Light mode
Paused
Props
23| Name | Type | Default | Description |
|---|---|---|---|
color | string | "#4d6bff" | Color of the lightning. The hottest parts glow white. |
bolts | number | 1 | How many bolts to draw, from 1 to 4. |
spread | number | 0.6 | Space between bolts when there is more than one. |
branches | number | 0.5 | How many side branches split off and flash along the bolts, from 0 to 1. |
xOffset | number | 0 | Moves the bolts sideways. |
angle | number | 0 | Tilts the bolts, in degrees. 90 runs them across. |
size | number | 1 | Scale of the jagged path. Higher is more crooked. |
thickness | number | 1 | Thickness of the bright core. |
glow | number | 1 | How far the glow spreads around the bolts. |
intensity | number | 1 | Overall brightness. |
speed | number | 1 | How fast the bolts crawl. The motion loops seamlessly every 10 seconds at 1. |
flicker | number | 0.6 | Strength of the flicker and sudden flashes, from 0 to 1. |
mouseInteraction | boolean | true | Bolts bend toward the cursor, crackle and grow extra branches near it. |
mouseStrength | number | 1 | How strongly the bolts bend toward the cursor. |
clickStrike | boolean | true | Clicking calls down a bolt that strikes the spot and briefly flashes the others. |
intro | boolean | true | Lets the bolts descend from the top on first load. |
fade | number | 0 | Fades the edges into the page, from 0 to 1. |
opacity | number | 1 | Opacity of the whole effect. |
lightMode | boolean | false | Draws the lightning as crisp ink strokes for light backgrounds. |
paused | boolean | false | Freezes the animation. |
dpr | number | None | Maximum device pixel ratio, capped at 2. |
className | string | None | |
style | CSSProperties | None |