ResizeEnd

A Custom jQuery Event

Demo

An example jQuery.resizeend 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.resizeend.js"></script>

Using Bower

bower install jquery.resizeend

Using NPM

npm install jquery.resizeend

Usage

Basic usage.

Direct method reference:

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

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

Event binding:

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

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

Options

All plugin & event options.

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