jQuery Waypoints is a small jQuery plugin that makes it easy to execute a function whenever you scroll to an element.