Makzan / I share what I learnt

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 November 6, 2015. More articles like this: CreateJS.

Sign up for weekly dispatch each week.

Want productive tips and web technologies links like this in your inbox each week? No spam ever. Just useful content:

Read previous weekly dispatch newsletters.