CoreFiles by mySites.guru
effect-fade.js46 lines, 916 bytes, from wordpress-5.7.21.zip
Raw History Compare with 5.7.20
md5
fa0f7273a34aafcf374f2cec0ce6ff11
sha1
f2639fbafab66aa56f8f3614d42f7d1426ac094b
sha256
ea6de3955b61f208ffb604b48bd6e44ad721dbf5ea2fff7d3aea33065fedb313
/*!
 * jQuery UI Effects Fade 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */

//>>label: Fade Effect
//>>group: Effects
//>>description: Fades the element.
//>>docs: http://api.jqueryui.com/fade-effect/
//>>demos: http://jqueryui.com/effect/

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

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

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

return $.effects.define( "fade", "toggle", function( options, done ) {
	var show = options.mode === "show";

	$( this )
		.css( "opacity", show ? 0 : 1 )
		.animate( {
			opacity: show ? 1 : 0
		}, {
			queue: false,
			duration: options.duration,
			easing: options.easing,
			complete: done
		} );
} );

} ) );

The same content is in 97 releases, WordPress 5.6-beta1 to 5.8.20. See them all, or every version of this file.