Answer the question
In order to leave comments, you need to log in
TweenMax and integers when updating how to do?
There is such a code for TweenMax codepen.io/nicolund/pen/KCwhx
var counter = { var: 0 };
var tal = document.getElementById("tal");
TweenMax.to(counter, 5, {
var: 100,
onUpdate: function () {
tal.innerHTML = Math.ceil(counter.var);
},
ease:Circ.easeOut
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question