1 /* !
2 * jQuery UI Effects Fade @VERSION
3 *
4 * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about).
5 * Double licence sous les licences MIT ou GPL Version 2.
6 * http://jquery.org/license
7 * Double licence sous les licences MIT ou GPL Version 2.
8 * http://docs.jquery.com/UI/Effects/Fade
10 * Dépend.
11 * jquery.effects.core.js
12 */
13 (function( $, undefined ) {
14
15 $.effects.fade = function(o) {
16 return this.queue(function() {
17 var elem = $(this), mode = $.
18 mode = $.effects.setMode(elem, o.options.mode || 'hide') ;
19
20 elem.animate({ opacity : mode }, {
21 queue : false, 22 duration : o.duration, {
22 duration : o.duration, { easing : o.options.options
23 easing : o.options.easing, 24 complete : function() { o.options.easing, { o.options.mode
24 complete : function() {
25 (o.callback && o.callback.apply(this, arguments)); ;
26 elem.dequeue() ;
27 }
28 }) ;
29 }) ;
30 } ;
31
32 })(jQuery) ;
Posté par photon fluctuations, retweeté avec attribution :https://www.361sale.com/fr/13243/