Scroll progress demo
Scroll down to fill the top bar. The handler reads $(window).scrollTop() and document height.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Scroll events fire whenever scroll position changes — wheel, scrollbar, keyboard, or touch.