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

03Globular cluster — hundreds of stars orbiting a common center of mass

Scatter stars in a sphere with randomized orbital velocities and, unlike a disk, they don't collapse inward — each orbits the common center of mass at its own angle, the whole cluster slowly tumbling: globular-cluster behavior emerging as-is.

Best forSpace-themed backgrounds, constellation interactives

CanvasRenderingContext2DarcrequestAnimationFrame
Globular cluster — hundreds of stars orbiting a common center of mass
Open in a new tab

03 Globular cluster — hundreds of stars orbiting a common center of mass — Measured area 22.827% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · N Body Simulation, 9 Ways (Galaxy, No Library)

The post this demo lives in

N Body Simulation, 9 Ways (Galaxy, No Library) - preview of all 9 demosN Body Simulation, 9 Ways (Galaxy, No Library)No library, no WebGL — integrate Newtonian gravity on every star, every frame, and two galaxies shear past, throwing tid See all demos in this post

If you like this effect - similar demos