Last change: November 14, 2019
Current version: 1.1.1
The scrollTrigger alerts an callback function when certain scrollconditions are met.
webanizr.collect('scrollTrigger', parameters, callback);
The collect method of dragAndDrop accepts the following parameters.
The id of element that is scrollable you want to attach the trigger to.
The position of the trigger measured in pixels from the top.
The direction of scrolling the trigger should react to. If no direction is set, scrolling down is assumed.
The delay between stopping with scrolling and performing the action.
The function that is called when the trigger is called. The callback function will receive the event data from the scroll event.