Makzan / I share what I learned

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.


Published on 2015-11-06. More articles like this:
- CreateJS

Previous <- One third of FWA Site of the Day winners uses CreateJS
Next -> How I write everyday