Skip to main content
Inspiring
July 9, 2019
Answered

Tweenjs scale with bounceOut and return

  • July 9, 2019
  • 1 reply
  • 1078 views

I want to create a motion tween in code that scales up and back to the original size with a bounce effect. As far as I have got is (below) this scales up with bounce effect but says at 110% and I need it to return to 100% all within the bounce effect. I can do this with a motion tween with bounce... but need to do this in code.

createjs.Tween.get(this.movieClip).wait(200).to({scaleX:1.10,scaleY:1.10}, 1000, createjs.Ease.bounceOut);

This topic has been closed for replies.
Correct answer kglad

experiment. eg,

createjs.Tween.get(this.movieClip).wait(200).to({scaleX:1.10,scaleY:1.10}, 500, createjs.Ease.bounceOut).to({scaleX:1.0,scaleY:1.0}, 500, createjs.Ease.bounceIn);

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
July 10, 2019

experiment. eg,

createjs.Tween.get(this.movieClip).wait(200).to({scaleX:1.10,scaleY:1.10}, 500, createjs.Ease.bounceOut).to({scaleX:1.0,scaleY:1.0}, 500, createjs.Ease.bounceIn);