Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

scroll event counting using javascript stackoverflow

$(window).scroll(function (event) {
    var scroll = $(window).scrollTop();

    if(scroll == 0)
     setTimeout(function(){reInitCount();},500);
});

function reInitCount(){
  $(".stat-count").each(function() {
    $(this).html('0');
    count($(this));
  });
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #scroll #event #counting #javascript #stackoverflow
ADD COMMENT
Topic
Name
7+3 =