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

01The basic fall — one rule: move down when the cell below is empty

Keep a grid of material codes per cell and run the single rule — swap with the empty cell below — every frame, and sand poured from above piles into heaps on the floor.

Best forA sand pour on a game loading screen, a gentle fall in a hero background

fillRectrequestAnimationFrame
The basic fall — one rule: move down when the cell below is empty
Open in a new tab

01 The basic fall — one rule: move down when the cell below is empty — Measured area 33.333% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · Falling Sand Simulator, 9 Ways (No Library)

The post this demo lives in

Falling Sand Simulator, 9 Ways (No Library) - preview of all 9 demosFalling Sand Simulator, 9 Ways (No Library)No library, no WebGL — four rules per cell (down, down-left, down-right, sideways) make sand pile up, water flow and fir See all demos in this post

If you like this effect - similar demos