How can I add a counter updating when you scroll down a page? I like the effect that chartbeat has. What jQuery should I use to be able to achieve that?
Asked
Active
Viewed 518 times
-1
-
You need to describe what it is that you want to implement, ideally *also* link to the site. Your question should stand alone without needing, and relying on, external resources for explanation and clarity. – David Thomas Jul 31 '12 at 09:52
-
We'd appreciate that. =) – David Thomas Jul 31 '12 at 10:13
1 Answers
0
There is scrollTop() function. You bind event handler to 'scroll' event on document and put the value in place you want.
$(document).ready(function() {
$(this).bind('scroll', function() {
console.log($(this).scrollTop());
});
});

Pavel Staselun
- 1,970
- 1
- 12
- 24
-
So, jQuery answers are acceptable? For due reference it might be best to specify that in your question, or the tags to your question. – David Thomas Jul 31 '12 at 10:12