2012-02-27 00:49:51 +00:00
|
|
|
/*!
|
2009-11-13 04:35:47 +00:00
|
|
|
* jQuery UI Effects Fade @VERSION
|
2012-07-04 13:08:08 +00:00
|
|
|
* http://jqueryui.com
|
2009-11-13 04:35:47 +00:00
|
|
|
*
|
2014-12-21 18:27:43 +00:00
|
|
|
* Copyright jQuery Foundation and other contributors
|
2012-08-09 14:13:24 +00:00
|
|
|
* Released under the MIT license.
|
2010-07-09 13:01:04 +00:00
|
|
|
* http://jquery.org/license
|
2009-11-13 04:35:47 +00:00
|
|
|
*
|
2012-09-26 23:06:20 +00:00
|
|
|
* http://api.jqueryui.com/fade-effect/
|
2009-11-13 04:35:47 +00:00
|
|
|
*/
|
2013-07-12 16:40:48 +00:00
|
|
|
(function( factory ) {
|
|
|
|
if ( typeof define === "function" && define.amd ) {
|
2009-11-13 04:35:47 +00:00
|
|
|
|
2013-07-12 16:40:48 +00:00
|
|
|
// AMD. Register as an anonymous module.
|
|
|
|
define([
|
|
|
|
"jquery",
|
2013-12-02 18:36:12 +00:00
|
|
|
"./effect"
|
2013-07-12 16:40:48 +00:00
|
|
|
], factory );
|
|
|
|
} else {
|
|
|
|
|
|
|
|
// Browser globals
|
|
|
|
factory( jQuery );
|
|
|
|
}
|
|
|
|
}(function( $ ) {
|
|
|
|
|
|
|
|
return $.effects.effect.fade = function( o, done ) {
|
2011-06-21 05:23:52 +00:00
|
|
|
var el = $( this ),
|
2012-06-15 01:01:14 +00:00
|
|
|
mode = $.effects.setMode( el, o.mode || "toggle" );
|
2009-11-13 04:35:47 +00:00
|
|
|
|
2012-04-19 01:57:51 +00:00
|
|
|
el.animate({
|
2012-06-15 01:01:14 +00:00
|
|
|
opacity: mode
|
2011-06-21 05:23:52 +00:00
|
|
|
}, {
|
|
|
|
queue: false,
|
|
|
|
duration: o.duration,
|
|
|
|
easing: o.easing,
|
2012-06-15 01:01:14 +00:00
|
|
|
complete: done
|
2009-11-13 04:35:47 +00:00
|
|
|
});
|
|
|
|
};
|
|
|
|
|
2013-07-12 16:40:48 +00:00
|
|
|
}));
|