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

01Water droplet lens

The background is painted once, then only the pixels under the droplet are pulled out with getImageData and re-laid by a spherical refraction formula. Drag the droplet and the text and grid beneath it swell like a lens.

Best forHero image with a droplet rolling across a product photo

getImageDataputImageDatacreateRadialGradient
Water droplet lens
Open in a new tab

01 Water droplet lens — Measured area 32.968% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · HTML5 Canvas Animation: 9 Warp & Droplet Effects

The post this demo lives in

HTML5 Canvas Animation: 9 Warp & Droplet Effects - preview of all 9 demosHTML5 Canvas Animation: 9 Warp & Droplet EffectsHTML5 canvas animation bends pixels — a droplet swelling the text under it, a black hole pulling the screen in — no reto See all demos in this post

If you like this effect - similar demos