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

01One field layer — counting threshold-crossing pixels as a first metaball

Sum a scalar field of inverse-distance falloff from each ball center per pixel and fill only cells over the threshold — a bridge seeps between two balls though no circle was ever drawn.

Best forA single liquid mass for a hero background

getImageDataputImageDatarequestAnimationFrame
One field layer — counting threshold-crossing pixels as a first metaball
Open in a new tab

01 One field layer — counting threshold-crossing pixels as a first metaball — Measured area 33.374% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · 9 Metaball Effect Scenes, Marching Squares Canvas

The post this demo lives in

9 Metaball Effect Scenes, Marching Squares Canvas - preview of all 9 demos9 Metaball Effect Scenes, Marching Squares CanvasNo library, no WebGL — marching squares links grid cells whose field crosses one threshold, and blobs merge and split li See all demos in this post

If you like this effect - similar demos