PageRenderTime 28ms CodeModel.GetById 18ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/application/static/libs/adminlte/bower_components/jquery-ui/ui/effect-fade.js

https://bitbucket.org/tin_gimranoff/docstar
JavaScript | 40 lines | 23 code | 5 blank | 12 comment | 4 complexity | b7be70bdfa421c9eee0faf850f1e51e0 MD5 | raw file
 1/*!
 2 * jQuery UI Effects Fade 1.11.4
 3 * http://jqueryui.com
 4 *
 5 * Copyright jQuery Foundation and other contributors
 6 * Released under the MIT license.
 7 * http://jquery.org/license
 8 *
 9 * http://api.jqueryui.com/fade-effect/
10 */
11(function( factory ) {
12	if ( typeof define === "function" && define.amd ) {
13
14		// AMD. Register as an anonymous module.
15		define([
16			"jquery",
17			"./effect"
18		], factory );
19	} else {
20
21		// Browser globals
22		factory( jQuery );
23	}
24}(function( $ ) {
25
26return $.effects.effect.fade = function( o, done ) {
27	var el = $( this ),
28		mode = $.effects.setMode( el, o.mode || "toggle" );
29
30	el.animate({
31		opacity: mode
32	}, {
33		queue: false,
34		duration: o.duration,
35		easing: o.easing,
36		complete: done
37	});
38};
39
40}));