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.
19 lines
485 B
19 lines
485 B
$(document).ready(function() {
|
|
$('.number').each(function(index, elem) {
|
|
let val = $(elem).text();
|
|
$({
|
|
countNum: 0
|
|
}).animate({
|
|
countNum: val
|
|
}, {
|
|
duration: 3000,
|
|
easing: 'linear',
|
|
step: function() {
|
|
$(elem).text(Math.floor(this.countNum));
|
|
},
|
|
complete: function() {
|
|
$(elem).text(this.countNum);
|
|
}
|
|
});
|
|
});
|
|
});
|