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

04Afterglow diffusion — the bolt's halo bleeding through a pixel buffer

Blending each pixel toward its neighbors' average brightness every frame, then writing it back, leaves a soft halo that lingers and cools even after the stroke itself is gone.

Best forAn emphasis background on a product page, a faint glowing card edge on dark UI

ImageDataputImageDatarequestAnimationFrame
Afterglow diffusion — the bolt's halo bleeding through a pixel buffer
Open in a new tab

04 Afterglow diffusion — the bolt's halo bleeding through a pixel buffer — Measured area 33.303% · 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