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

07Flow field

The cursor's direction of travel becomes the force, and a swarm of dashes flows that way. Each particle is a dash, so it also carries a rotate to face where it heads.

Best forA flowing grain across a landing backdrop, a school of scroll-hint arrows

requestAnimationFramepointermoverotate
Flow field
Open in a new tab

07 Flow field — Measured area 19.074% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · JavaScript Physics Simulation: 9 Demos, No Library

The post this demo lives in

JavaScript Physics Simulation: 9 Demos, No Library - preview of all 9 demosJavaScript Physics Simulation: 9 Demos, No LibraryA JavaScript physics simulation is arithmetic repeated once per frame: force adds to velocity, velocity adds to position See all demos in this post

If you like this effect - similar demos