2 * jQuery UI Effects Puff 1.11.2
5 * Copyright 2014 jQuery Foundation and other contributors
6 * Released under the MIT license.
7 * http://jquery.org/license
9 * http://api.jqueryui.com/puff-effect/
11 (function( factory ) {
12 if ( typeof define === "function" && define.amd ) {
14 // AMD. Register as an anonymous module.
27 return $.effects.effect.puff = function( o, done ) {
29 mode = $.effects.setMode( elem, o.mode || "hide" ),
30 hide = mode === "hide",
31 percent = parseInt( o.percent, 10 ) || 150,
32 factor = percent / 100,
34 height: elem.height(),
36 outerHeight: elem.outerHeight(),
37 outerWidth: elem.outerWidth()
46 percent: hide ? percent : 100,
50 height: original.height * factor,
51 width: original.width * factor,
52 outerHeight: original.outerHeight * factor,
53 outerWidth: original.outerWidth * factor