Plugin documents expose the offset
parameter, which performs the following actions:
Determines how far the top of the element should be from the top of the browser window to trigger the waypoint. This can be a number that is like the number of pixels, a string representing a percentage of the height of the viewport, or a function that returns a few pixels.
You can pass parameters to the waypoint
method as a second argument:
$('#waypoint').waypoint(function() { alert('You have scrolled to my waypoint.'); }, { offset: '100%' });
Here is the update script .
source share