Waypoints is a small jQuery plugin that makes it easy to execute a function whenever you scroll to an element.
$('.entry').waypoint(function() {
alert('You have scrolled to an entry.');
});
Read the full documentation for more details on usage and customization.
Waypoints can be used as a base for several common scroll-based UI patterns. Check out these examples of:
Copyright (c) 2011 Caleb Troughton Dual licensed under the MIT license and GPL license.
Waypoints has been tested* to work with jQuery versions 1.4+ in IE6+, FF3+, Safari 4+, Chrome 6+. Other browsers and jQuery versions may work fine, but this is all I've looked at so far.
* Tested in this case by my own poking around and not finding anything wrong...yet. Proper QUnit tests are in the works.
- v1.0: Initial release.
- Proper QUnit tests.
- Audit iOS and other mobile browsers.