0
<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

David Ansermot
  • 6,052
  • 8
  • 47
  • 82

1 Answers1

0

[Edited]
Check this answer. You can detect scroll directions and trigger any event at a certain position of the scroll.

How can I determine the direction of a jQuery scroll event?

Community
  • 1
  • 1
seoyoochan
  • 822
  • 3
  • 14
  • 28