<div class="">
<p class=" count1 Count">240</p>
</div>
<div class=" count-item">
<p class=" Count">410</p>
</div>
<div class="">
<p class="count3 Count" >6</p>
</div>
<div class="">
<p class=" count4 Count">4</p>
</div>
<script>
$('.Count').each(function () {
var $this = $(this);
$({ Counter: 0 }).animate({ Counter: $this.text() }, {
duration: 1500,
easing: 'swing',
step: function () {
$this.text(Math.ceil(this.Counter));
}
});
});
</script>
Here is a function for timer but I want to put offset('90%').
So how can I Use offset with this function. can anyone help me. I am tired to make it with offset.
I have a code for timer but it start while page load.
I want to load it when scroll page it's own position, I meant with offset