LodeHQ
AI news for people who shipFree, by email

Dev · github.com · Wednesday, 3 June 2026

Gravity.js Enables CSS‑Only Physics for Browser Games

Gravity.js is a lightweight JS physics engine that renders entirely with CSS, letting developers add realistic physics to DOM elements via data attributes, without canvas or WebGL. It supports dynamic, static, and kinematic bodies, collision detection with SAT, and integrates with State.js and Keys.js, making browser‑based games and interactive UI simpler.

Read the source: github.com ↗In the 3 June issue →