July 17, 2014
Steady-js is a jank-free module to do logic on the onscroll event without performance regressions in @media-query like conditions.
It has got the following features :-
onscrollhandler that collect values only, offloading the computations to
onscrollhandler to avoid calling it more than what we need.
bottom: you can use it to check did the user reach the bottom of the page/element yet? ( e.g. before reaching the end of the page by 200px start loading new content ). And it works of the scrollable elements and window!
top: how much did he scroll the window/element down?
width: viewport width, since your logic might change based on the viewport size
scrollLeft: this is for scrollable elements only, that collects how much did you scroll from the left of the element.
Created by Khalid Lafi
To install using Bower
bower install Steady.js
© 2013 jquer.in
Curated By Jay Kanakiya