ResizeStart

A Custom jQuery Event

Demo

An example jquery.resizestart 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.resizestart.js"></script>

Using Bower

bower install jquery.resizestart

Using NPM

npm install jquery.resizestart

Usage

Basic usage.

Direct method reference:

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

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

Event binding:

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

// Custom options
$(selector).on('resizestart', 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 first resize event is fired before triggering the event.
Option delay
Type integer/
object
Default 0
Description The amount of time, in millisecond, to wait after the first resize event is fired before triggering the event.