aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.effect-fade.js
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2012-07-12 23:57:55 +0200
committerFelix Nagel <info@felixnagel.com>2012-07-12 23:57:55 +0200
commit5092d0296a010280ee9d004f2fe06afbf1c45db5 (patch)
treeac6b97b4551b4aebf8d90cc35add82fc7088e0a3 /ui/jquery.ui.effect-fade.js
parent39532f0a8e70e21e33aab03f08136f662d03a4a1 (diff)
parente054e28836e616ed03561d5a8195bbea525866d1 (diff)
downloadjquery-ui-5092d0296a010280ee9d004f2fe06afbf1c45db5.tar.gz
jquery-ui-5092d0296a010280ee9d004f2fe06afbf1c45db5.zip
Merge branch 'master' into selectmenu
Diffstat (limited to 'ui/jquery.ui.effect-fade.js')
-rw-r--r--ui/jquery.ui.effect-fade.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/ui/jquery.ui.effect-fade.js b/ui/jquery.ui.effect-fade.js
new file mode 100644
index 000000000..ee031fcd8
--- /dev/null
+++ b/ui/jquery.ui.effect-fade.js
@@ -0,0 +1,30 @@
+/*!
+ * jQuery UI Effects Fade @VERSION
+ * http://jqueryui.com
+ *
+ * Copyright 2012 jQuery Foundation and other contributors
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Effects/Fade
+ *
+ * Depends:
+ * jquery.ui.effect.js
+ */
+(function( $, undefined ) {
+
+$.effects.effect.fade = function( o, done ) {
+ var el = $( this ),
+ mode = $.effects.setMode( el, o.mode || "toggle" );
+
+ el.animate({
+ opacity: mode
+ }, {
+ queue: false,
+ duration: o.duration,
+ easing: o.easing,
+ complete: done
+ });
+};
+
+})( jQuery );