DEV Community

Discussion on: Throwing around text - Kinetic typography part 2: Tricking gravity thanks to matter.js! 📃🛫🤯

Collapse
 
jerzakm profile image
Martin J • Edited

Cool! This is a little similar to something I've done a few months back with Rapier.rs

If you plan to do more things with physics I highly recommend checking rapier, from my experience performance is much better than matter.js (wasm!).

demo elastic-banach-bbcb85.netlify.app/ (press let's get physical to start, only desktop)
repo github.com/jerzakm/rapier-dom-physics

Collapse
 
thormeier profile image
Pascal Thormeier

Oh wow, that's amazing! Although it's a bit hard to press the "close" button on the magenta box when physics is turned on 😜 Will definitely have a look, thank you for the recommendation!

Collapse
 
jerzakm profile image
Martin J

Oh yeah, it's definitely hacky and not user friendly. Yet another unfinished idea waiting for it's turn on a forever growing list :D