Licitator 1.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
485 B

5 years ago
  1. $(document).ready(function() {
  2. $('.number').each(function(index, elem) {
  3. let val = $(elem).text();
  4. $({
  5. countNum: 0
  6. }).animate({
  7. countNum: val
  8. }, {
  9. duration: 3000,
  10. easing: 'linear',
  11. step: function() {
  12. $(elem).text(Math.floor(this.countNum));
  13. },
  14. complete: function() {
  15. $(elem).text(this.countNum);
  16. }
  17. });
  18. });
  19. });