CoreFiles by mySites.guru
effect-puff.js44 lines, 973 bytes, from wordpress-5.9.21.zip
Raw History Compare with 5.9.20
md5
d76eb18fa216cd4f4e870ae2dce38b6e
sha1
af630e5fc9da789703adf5562b880af87a9a9b67
sha256
a3191f97f62a20fc05a5a6ce8b10f766fe9e022b3422b6fd70cbc252adfafdd7
/*!
 * jQuery UI Effects Puff 1.13.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://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: http://api.jqueryui.com/puff-effect/
//>>demos: http://jqueryui.com/effect/

( function( factory ) {
	"use strict";

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

		// AMD. Register as an anonymous module.
		define( [
			"jquery",
			"./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 53 releases, WordPress 5.9.1-RC1 to 6.0.19. See them all, or every version of this file.