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

08Strike flash — the whole scene cools off exponentially right after impact

Setting a white overlay's opacity to its peak on the strike frame, then multiplying it by a decay factor every subsequent frame, produces a camera-flash-like brightening that fades exponentially.

Best forA full-screen intro emphasizing the strike moment, a strong attention cue on a notification banner

fillRectglobalCompositeOperationrequestAnimationFrame
Strike flash — the whole scene cools off exponentially right after impact
Open in a new tab

08 Strike flash — the whole scene cools off exponentially right after impact — Measured area 52.849% · moving frames 23/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