Wizcorp / tina.js

Tweening and INterpolations for Animation
MIT License
12 stars 8 forks source link

Easing method expInOut returns NaN #44

Closed polco closed 8 years ago

bchevalier commented 8 years ago

deal with it

bchevalier commented 8 years ago

I'm kidding, but that's a good opportunity to contribute

bchevalier commented 8 years ago

Yo,

I just tested the method and it seems to work fine. May be you forgot to pass in the parameter? It should look like this:

var myObject = { x: 0 };
var exponent = 2;

var myTween = new TINA.Tween(myObject, ['x'])
    .to({ x: 1 }, duration, 'expInOut', exponent)
    .start();
polco commented 8 years ago

oh ok, my bad!

bchevalier commented 8 years ago

I guess i could set default value, to make sure all the easing methods work right out of the box.