i make this:
$(window).scroll(function() {
var currentNumber = $(\'.js-number-lifetime\').text(),
targetNumber = $(\'.js-number-lifetime\').attr(\'data-target\');
$({numberValue: currentNumber}).animate({numberValue: targetNumber}, {
duration: 1000,
easing: \'linear\',
step: function() {
$(\'.js-number-lifetime\').text(Math.ceil(this.numberValue));
}
});
var currentNumber1 = $(\'.js-number-clients\').text(),
targetNumber1 = $(\'.js-number-clients\').attr(\'data-target\');
$({numberValue: currentNumber1}).animate({numberValue: targetNumber1}, {
duration: 1000,
easing: \'linear\',
step: function() {
$(\'.js-number-clients\').text(Math.ceil(this.numberValue));
}
});
var currentNumber2 = $(\'.js-number-employee\').text(),
targetNumber2 = $(\'.js-number-employee\').attr(\'data-target\');
$({numberValue: currentNumber2}).animate({numberValue: targetNumber2}, {
duration: 1000,
easing: \'linear\',
step: function() {
$(\'.js-number-employee\').text(Math.ceil(this.numberValue));
}
});
});