Tween.js examples
I’m recently trying to use the TweenJS library with DOM elements.
Here is my first attempt.
Here is the core part of the source code. I didn’t use the CSS plugin from TweenJS. Instead, I interpolate the values in the data object and use a dedicated view rendering function to render the changes. I find it cleaner and fit my philosophy of data-view-separation.