GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

03Storm sky — several strikes overlapping at random intervals

Sampling each bolt's wait time from an exponential distribution reproduces the real, uneven rhythm of clustered strikes followed by long lulls across several points on the canvas.

Best forA background scene for a dark-mode hero, a page-transition loading flourish

lineToglobalCompositeOperationrequestAnimationFrame
Storm sky — several strikes overlapping at random intervals
Open in a new tab

03 Storm sky — several strikes overlapping at random intervals — Measured area 52.833% · moving frames 20/23Original by GODRICH · SCSS and React ship in the zip · 9 Lightning Effect Background Scenes, No WebGL

The post this demo lives in

9 Lightning Effect Background Scenes, No WebGL - preview of all 9 demos9 Lightning Effect Background Scenes, No WebGLNo library, no WebGL — a single recursive midpoint-displacement split makes lightning branches fork on their own, and th See all demos in this post

If you like this effect - similar demos