• function

jQuery.dimensions jquerypp/dom/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.


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

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