Sha256: d28f05e214cc027521d7b21c4b1677555668a336bdc6f751631ec73af66d07f4

Contents?: true

Size: 1.21 KB

Versions: 53

Compression:

Stored size: 1.21 KB

Contents

/*!
 * jQuery UI Effects Puff 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/puff-effect/
 */
(function( factory ) {
	if ( typeof define === "function" && define.amd ) {

		// AMD. Register as an anonymous module.
		define([
			"jquery",
			"./effect",
			"./effect-scale"
		], factory );
	} else {

		// Browser globals
		factory( jQuery );
	}
}(function( $ ) {

return $.effects.effect.puff = function( o, done ) {
	var elem = $( this ),
		mode = $.effects.setMode( elem, o.mode || "hide" ),
		hide = mode === "hide",
		percent = parseInt( o.percent, 10 ) || 150,
		factor = percent / 100,
		original = {
			height: elem.height(),
			width: elem.width(),
			outerHeight: elem.outerHeight(),
			outerWidth: elem.outerWidth()
		};

	$.extend( o, {
		effect: "scale",
		queue: false,
		fade: true,
		mode: mode,
		complete: done,
		percent: hide ? percent : 100,
		from: hide ?
			original :
			{
				height: original.height * factor,
				width: original.width * factor,
				outerHeight: original.outerHeight * factor,
				outerWidth: original.outerWidth * factor
			}
	});

	elem.effect( o );
};

}));

Version data entries

53 entries across 53 versions & 2 rubygems

Version Path
wrgem-0.0.55 lib/generators/wrstart/template/vendor/assets/components/jqueryui/ui/effect-puff.js
wrgem-0.0.54 lib/generators/wrstart/template/vendor/assets/components/jqueryui/ui/effect-puff.js
wrgem-0.0.53 lib/generators/wrstart/template/vendor/assets/components/jqueryui/ui/effect-puff.js
wrgem-0.0.52 lib/generators/wrstart/template/vendor/assets/components/jqueryui/ui/effect-puff.js
wrgem-0.0.51 lib/generators/wrstart/template/vendor/assets/components/jqueryui/ui/effect-puff.js
wrgem-0.0.50 lib/generators/wrstart/template/vendor/assets/components/jqueryui/ui/effect-puff.js
wrgem-0.0.49 lib/generators/wrstart/template/vendor/assets/components/jqueryui/ui/effect-puff.js
wrgem-0.0.48 lib/generators/wrstart/template/vendor/assets/components/jqueryui/ui/effect-puff.js
wrgem-0.0.47 lib/generators/wrstart/template/vendor/assets/components/jqueryui/ui/effect-puff.js
wrgem-0.0.46 lib/generators/wrstart/template/vendor/assets/components/jqueryui/ui/effect-puff.js
wrgem-0.0.45 lib/generators/wrstart/template/vendor/assets/components/jqueryui/ui/effect-puff.js
wrgem-0.0.44 lib/generators/wrstart/template/vendor/assets/components/jqueryui/ui/effect-puff.js
wrgem-0.0.43 lib/generators/wrstart/template/vendor/assets/components/jqueryui/ui/effect-puff.js
wrgem-0.0.42 lib/generators/wrstart/template/vendor/assets/components/jqueryui/ui/effect-puff.js
wrgem-0.0.41 lib/generators/wrstart/template/vendor/assets/components/jqueryui/ui/effect-puff.js
wrgem-0.0.40 lib/generators/wrstart/template/vendor/assets/components/jqueryui/ui/effect-puff.js
wrgem-0.0.39 lib/generators/wrstart/template/vendor/assets/components/jqueryui/ui/effect-puff.js
wrgem-0.0.38 lib/generators/wrstart/template/vendor/assets/components/jqueryui/ui/effect-puff.js
wrgem-0.0.37 lib/generators/wrstart/template/vendor/assets/components/jqueryui/ui/effect-puff.js
wrgem-0.0.35 lib/generators/wrstart/template/vendor/assets/components/jqueryui/ui/effect-puff.js