Canvas 2D

Lightning music visualizer

Jagged lightning bolts that strike on beat with random branching and fade trails — pure transient drama.

Lightning produces, on every detected beat, one or more jagged lightning bolts that strike from the edges of the canvas toward the centre. Each bolt branches randomly, fades out over a short lifetime, and adds an unmistakable feeling of high-stakes drama to the frame.

The scene is built around the percussive transient — the moment of impact. For metal kicks, rock snares, EDM drops, cinematic stings and trailer music hits, Lightning makes every beat readable visually.

Configure bolts-per-beat (1 to 7), branch probability, jitter amount, bolt thickness, glow, and lifetime. Higher branching probability gives a chaotic forking pattern; lower gives single dramatic streaks.

Pair with the Bloodstream or Cyberpunk City palette and the scene reads as cinematic violence — perfect for action-trailer-style music videos.

What it does well

Best for

Genres
MetalRockEDMCinematicTrailer Music
Formats
YouTube 16:9Shorts 9:16Music video impact moments

Key parameters

boltsOnBeat
Number of bolts spawned per beat
branchProbability
Likelihood of bolt forking
jitter
Path randomness amplitude
thickness
Bolt line width
lifeSeconds
How long bolts persist before fading

Rendering

Canvas 2D path drawing with per-bolt lifetime tracking — every bolt is GC-friendly and disposed automatically.

20 templates use this scene

See all →