• function

jQuery.dimensions jquerypp/dom/dimensions

 

jQuery.dimensions

Adds support for animating and setting inner and outer dimensions. It overwrites

to let you set these properties and extends animate to animate them.

Use

When writing reusable plugins, you often want to set or animate an element's width and height that include its padding, border, or margin. This is especially important in plugins that allow custom styling.

Quick Examples

 $('#foo').outerWidth(100).innerHeight(50);
 $('#bar').animate({ outerWidth: 500 });
 $('#bar').animate({
   outerWidth: 500,
   innerHeight: 200
 });

Demo