Sha256: ee9b11d6dd44210d5df0745c5ef66aacbe65f5c359917a09649e3ff9de58561c

Contents?: true

Size: 934 Bytes

Versions: 23

Compression:

Stored size: 934 Bytes

Contents

/*!
 * jQuery UI Effects Fade 1.12.0
 * 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",
			"../version",
			"../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
		} );
} );

} ) );

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
trusty-cms-3.1.6 app/assets/bower_components/jquery-ui/ui/effects/effect-fade.js
trusty-cms-3.1.5 app/assets/bower_components/jquery-ui/ui/effects/effect-fade.js
trusty-cms-3.1.3 app/assets/bower_components/jquery-ui/ui/effects/effect-fade.js
trusty-cms-3.1.2 app/assets/bower_components/jquery-ui/ui/effects/effect-fade.js
trusty-cms-3.0.11 app/assets/bower_components/jquery-ui/ui/effects/effect-fade.js
trusty-cms-3.1.1 app/assets/bower_components/jquery-ui/ui/effects/effect-fade.js
trusty-cms-3.0.10 app/assets/bower_components/jquery-ui/ui/effects/effect-fade.js
trusty-cms-3.1.0 app/assets/bower_components/jquery-ui/ui/effects/effect-fade.js
trusty-cms-3.0.9 app/assets/bower_components/jquery-ui/ui/effects/effect-fade.js
trusty-cms-3.0.8 app/assets/bower_components/jquery-ui/ui/effects/effect-fade.js
trusty-cms-3.0.7 app/assets/bower_components/jquery-ui/ui/effects/effect-fade.js
trusty-cms-2.0.28 app/assets/bower_components/jquery-ui/ui/effects/effect-fade.js
trusty-cms-3.0.6 app/assets/bower_components/jquery-ui/ui/effects/effect-fade.js
trusty-cms-2.0.27 app/assets/bower_components/jquery-ui/ui/effects/effect-fade.js
trusty-cms-3.0.4 app/assets/bower_components/jquery-ui/ui/effects/effect-fade.js
trusty-cms-3.0.3 app/assets/bower_components/jquery-ui/ui/effects/effect-fade.js
trusty-cms-3.0.2 app/assets/bower_components/jquery-ui/ui/effects/effect-fade.js
trusty-cms-3.0.1 app/assets/bower_components/jquery-ui/ui/effects/effect-fade.js
trusty-cms-3.0.0 app/assets/bower_components/jquery-ui/ui/effects/effect-fade.js
trusty-cms-2.0.26 app/assets/bower_components/jquery-ui/ui/effects/effect-fade.js