sparkbox / bouncy-ball

:red_circle: Compare web animation techniques by bouncing a ball with each one.
https://sparkbox.github.io/bouncy-ball
MIT License
605 stars 66 forks source link

Velocity upgrade #98

Closed devcshort closed 3 years ago

devcshort commented 3 years ago

Below are the changes I've made

The newest velocity works slightly different than the previous. In the previous version, you could use transforms directly and it would handle the animations automatically. In the new API, only valid css properties are accepted, so you have to pass in an array of translations to be translated between. Using this new method, I changed from a recursive function, to Velocity's built in "loop" method.

For issue #80