Waypoints - Execute Function on Scroll With jQuery
Waypoints is a small jQuery plugin that makes it easy to execute a function whenever you scroll to an element. Waypoints makes a solid base for modern UI patterns that depend on a user’s scroll position on the page.
$('.entry').waypoint(function() { alert('You have scrolled to an entry.'); });
Waypoints can be used as a base for several common scroll-based UI patterns. Check out these examples of:
- Infinite Scrolling
- Sticky Elements
- Scroll Analytics
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. Waypoints is dual licensed under the MIT and GPL licenses. You can fork the project or report any issues in the GitHub repository.
Requirements: jQuery Framework
Demo: http://imakewebthings.github.com/jquery-waypoints/
License: MIT, GPL License