var foo = new Tweenable();
foo.tween({
from : { a : 1},
to : { a : 10 },
duration : 500,
step : function() {
console.log( foo.get() );
}
});
the step callback never gets called with the value 10 (end value) and I think it should since in many cases the user may not want to set a callback for complete as well (if you are handling the changes based only on step).
if you have a tween like:
the
step
callback never gets called with the value10
(end value) and I think it should since in many cases the user may not want to set a callback forcomplete
as well (if you are handling the changes based only onstep
).