jQuery+CSS3数字滚动统计代码是一款网页刷新数字滚动,计数器数量统计代码。$('.counter-value').each(function(){ $(this).prop('Counter',0).animate({ Counter: $(this).text() },{ duration: 3500, easing: 'swing', step: function (now){ $(this).text(Math.ceil(now)); } }); });
jQuery+CSS3数字滚动统计代码是一款网页刷新数字滚动,计数器数量统计代码。$('.counter-value').each(function(){ $(this).prop('Counter',0).animate({ Counter: $(this).text() },{ duration: 3500, easing: 'swing', step: function (now){ $(this).text(Math.ceil(now)); } }); });