ScrollEnd

A Custom jQuery Event

Demo

An example jquery.scrollend in action.

Begin resizing your browser window. Event output will be displayed below.

No event

Installation

Manual installation

Reference the file in your project:

<script src="jquery.scrollend.js"></script>

Using Bower

bower install jquery.scrollend

Using NPM

npm install jquery.scrollend

Usage

Basic usage.

Direct method reference:

// Default options
$(selector).scrollend(function() {
	// execute callback...
});

// Custom options
$(selector).scrollend(1000, function() {
	// execute callback...
});

Event binding:

// Default options
$(selector).on('scrollend', function() {
	// execute callback...
});

// Custom options
$(selector).on('scrollend', 1000, function() {
	// execute callback...
});

Options

All plugin & event options.

Option Type Default Description
delay integer/
object
0 The amount of time, in millisecond, to wait after the last scroll event is fired before triggering the custom event.
Option delay
Type integer/
object
Default 250
Description The amount of time, in millisecond, to wait after the last scroll event is fired before triggering the custom event.