CoreFiles by mySites.guru
effect-puff.js45 lines, 995 bytes, from wordpress-6.8.13.zip
Raw History Compare with 6.8.12
md5
d1394484184ae5dd69cb5cf864db5dc7
sha1
2ef4e5a82874e1f8de6957623df3e3bbc3b8adea
sha256
c9f61e2a98085fc911966b4382b21c5e315bd472b2ac95776f085d21a55c32a9
/*!
 * jQuery UI Effects Puff 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */

//>>label: Puff Effect
//>>group: Effects
//>>description: Creates a puff effect by scaling the element up and hiding it at the same time.
//>>docs: https://api.jqueryui.com/puff-effect/
//>>demos: https://jqueryui.com/effect/

( function( factory ) {
	"use strict";

	if ( typeof define === "function" && define.amd ) {

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

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

return $.effects.define( "puff", "hide", function( options, done ) {
	var newOptions = $.extend( true, {}, options, {
		fade: true,
		percent: parseInt( options.percent, 10 ) || 150
	} );

	$.effects.effect.scale.call( this, newOptions, done );
} );

} );

The same content is in 115 releases, WordPress 6.6-beta1 to 7.0.9. See them all, or every version of this file.