<span class="count">123</span>

js:

 <script src="jquery.min.js"></script> <!-- jQuery Library -->
 <script>  
$('.count').each(function () {
          $(this).prop('Counter',0).animate({
            Counter: $(this).text()
        }, {
            duration: 3000,
            easing: 'swing',
            step: function (now) {
                $(this).text(Math.ceil(now));
            }
          });
        });
 </script>

 

相关文章:

  • 2021-11-06
  • 2021-08-26
  • 2021-12-18
  • 2022-01-15
  • 2022-12-23
  • 2022-12-23
  • 2022-03-03
  • 2022-01-25
猜你喜欢
  • 2022-03-06
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-07-30
  • 2021-08-19
  • 2022-12-23
相关资源
相似解决方案