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.

sample code


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -