r/css Jun 01 '26

Showcase Render physics in CSS

https://github.com/iDev-Games/Gravity-JS
4 Upvotes

5 comments sorted by

5

u/Pitiful-Economics-60 Jun 01 '26

would be greaat to have some examples available from the github page.

2

u/iDev_Games Jun 01 '26

You'll see some in the documentation here: https://idev-games.github.io/Gravity-JS/ I have a stress test here too https://codepen.io/iDev-Games/pen/qEqxaaL I'll be building this up, creating examples with my other libraries (state.js, keys.js, motion.js, cursor.js and trig.js) and making some tutorials/learning content over the next few weeks. I'm still absolutely astonished this works as well as it does but only v1 and early days.

2

u/TheJase Jun 02 '26

Absolutely not

2

u/armahillo Jun 02 '26

no JavaScript required for basic physics interactions.

ok but its called gravity.js and everything is generated by a JS file?