ofer dofer
ofer dofer

Reputation: 621

Tween.js Easing not working

I'm trying to create a tween (animation) with ease- I've got no problem with animating the x position of my element, but I try to give it an easing. I write the code in appropriate order as shown in the example code here

And here is my code:

this.timeline.addTween(cjs.Tween.get(this.instance).to({x:246.5}, 46, Ease.circOut(1.2)));

Odd enough, it's not working. It just gives me a blank page.

When I remove the Ease part like:

this.timeline.addTween(cjs.Tween.get(this.instance).to({x:246.5}, 46));

It works, but only sliding, no easing.

How can I make it work with easing?

Upvotes: 0

Views: 1180

Answers (1)

skarist
skarist

Reputation: 1030

Check the console. Try cjs.Ease.circOut(1.2)

Upvotes: 3

Related Questions