Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Count up - textfield

$
0
0

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!


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>