javascript - How to tween an integer variable using TweenMax? -
how tween integer variable using greensock:tweenmax,tweenlite in javascript?
var counter = { var: 0 }; tweenmax.to(counter, 5, { var: 100, onupdate: function () { console.log(math.ceil(counter.var)); }, ease:circ.easeout });
it starts 0 100 in 5 seconds.
Comments
Post a Comment