Allows useful callbacks to be fired upon elements scrolling into and out of view from both the top and bottom of the viewport/window.