scroller.js can be used to create an invisible and infinite scroller. It can also be used in order to execute code whenever the user scrolls inside an element, towards a specific direction and for X number of pixels.