WordPress源代码——jquery-ui(1.8.20——jquery.effects.fade.js)

1 /*!
2 * jQuery UI Effects Fade @VERSION
3 *
4 * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5 * Dual licensed under the MIT or GPL Version 2 licenses.
6 * http://jquery.org/license
7 *
8 * http://docs.jquery.com/UI/Effects/Fade
9 *
10 * Depends:
11 * jquery.effects.core.js
12 */
13 (function( $, undefined ) {
14
15 $.effects.fade = function(o) {
16 return this.queue(function() {
17 var elem = $(this),
18 mode = $.effects.setMode(elem, o.options.mode || 'hide');
19
20 elem.animate({ opacity: mode }, {
21 queue: false,
22 duration: o.duration,
23 easing: o.options.easing,
24 complete: function() {
25 (o.callback && o.callback.apply(this, arguments));
26 elem.dequeue();
27 }
28 });
29 });
30 };
31
32 })(jQuery);
1  /*!
2   * jQuery UI Effects Fade @VERSION
3   *
4   * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5   * Dual licensed under the MIT or GPL Version 2 licenses.
6   * http://jquery.org/license
7   *
8   * http://docs.jquery.com/UI/Effects/Fade
9   *
10   * Depends:
11   *      jquery.effects.core.js
12   */
13  (function( $, undefined ) {
14  
15  $.effects.fade = function(o) {
16          return this.queue(function() {
17                  var elem = $(this),
18                          mode = $.effects.setMode(elem, o.options.mode || 'hide');
19  
20                  elem.animate({ opacity: mode }, {
21                          queue: false,
22                          duration: o.duration,
23                          easing: o.options.easing,
24                          complete: function() {
25                                  (o.callback && o.callback.apply(this, arguments));
26                                  elem.dequeue();
27                          }
28                  });
29          });
30  };
31  
32  })(jQuery);
1 /*! 2 * jQuery UI Effects Fade @VERSION 3 * 4 * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about) 5 * Dual licensed under the MIT or GPL Version 2 licenses. 6 * http://jquery.org/license 7 * 8 * http://docs.jquery.com/UI/Effects/Fade 9 * 10 * Depends: 11 * jquery.effects.core.js 12 */ 13 (function( $, undefined ) { 14 15 $.effects.fade = function(o) { 16 return this.queue(function() { 17 var elem = $(this), 18 mode = $.effects.setMode(elem, o.options.mode || 'hide'); 19 20 elem.animate({ opacity: mode }, { 21 queue: false, 22 duration: o.duration, 23 easing: o.options.easing, 24 complete: function() { 25 (o.callback && o.callback.apply(this, arguments)); 26 elem.dequeue(); 27 } 28 }); 29 }); 30 }; 31 32 })(jQuery);

联系我们
文章看不懂?联系我们为您免费解答!免费助力个人,小企站点!
电话:020-2206-9892
QQ咨询:1025174874
邮件:info@361sale.com
工作时间:周一至周五,9:30-18:30,节假日休息
© 转载声明
本文作者:Harry
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容