I want to count up a number in a text field. I found this handy jquery function:
http://jsbin.com/upazas/850/edit
I tried to place it in the compositionReady code window once with #text selector and once as you can see below with just text as selector. Both didn't work. I would prefer that the code lives in the edge animation so I don't have to add it manually afterwards to the html/js file.
Any ideas?
sym.$({countNum: $('text').text()}).animate({countNum: 10000}, {
duration: 2000,
easing:'linear',
step: function() {
$('text').text(Math.floor(this.countNum));
},
});
Thanks so much in advance!