So, I'm thinking it's probably possible with JavaScript, but you'd probably have to combine two techniques...
https://photics.com/free-template-tuesday-26-tumult-hype-gesture/
First, you can grab the "Gesture" data with Hype's API. Then, you can move it with the Physics API. If you zero out the gravity and give it some air drag, using "Velocity" might achieve the effect you're looking for...
That's just theoretical though. I haven't actually tried it.