Spring effect with TweenJS

523 Views Asked by At

What would be the TweenJS parameter to create a tween scale effect similar to the 'spring' transformation in Adobe Flash like this:

Spring effect

enter image description here

1

There are 1 best solutions below

0
On

I found it, it's the 'elasticOut' one.

mc.scaleX = 0.01;
mc.scaleY = 0.01;
createjs.Tween.get(mc).to({scaleX:1, scaleY:1}, 1500, createjs.Ease.elasticOut);

createjs.Ticker.setFPS(60);
createjs.Ticker.addEventListener("tick", stage);