Skip to content

A jQuery plugin to handle on resize end event handlers

Notifications You must be signed in to change notification settings

warrior701/jQuery-ResizeEnd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery Resize End Plugin

A tiny plugin to handle events after a (window) resize has been completed.

Demo

See the demo here.

Usage

Include both the jQuery library and the resizeEnd plugin on your page:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="js/jQuery.resizeEnd.js"></script>

Attach the resizeEnd method to an element, instatiate options (if so desired), and run a callback functions:

$(window).resizeEnd({
	delay : 250
}, function() {
	// Callback logic
});

If you want to use the default delay setting of 250ms, simply don't include the options object:

$(window).resizeEnd(function() {
	// Callback logic
});

Defaults

Currently, the only default is the delay timeout before the callback is executed. This is set as an integer in milliseconds.

{
	delay : 250
}

Credits

Credit's due where credit's earned, and I took most of the main logic from this SO post.

Bitdeli Badge

About

A jQuery plugin to handle on resize end event handlers

Resources

Stars

Watchers

Forks

Packages

No packages published