Calls a function ones an element comes into or out of view.