Hi,
I am counting from 1 to a number as follow, and I was wondering how one would go about putting thousands decimals or space into the number. So that it reads like "6,340,874"?
function cx() {
var counter = { var: 0 };
var tal = document.getElementById("cx");
TweenMax.to(counter, 1, {
var: 6340874,
onUpdate: function () {
tal.innerHTML = Math.ceil(counter.var);
},
ease:Circ.easeOut
});
}
Thanks!