summaryrefslogtreecommitdiff
path: root/src/main/webapp/jquery-ui-1.9pre/ui/jquery.effects.fade.js
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-11-25 21:18:19 +0100
committerLeif Johansson <leifj@sunet.se>2011-11-25 21:18:19 +0100
commit3909e6d89e01e4cd8777377c63037896bb95aa2f (patch)
tree59679df287c2bee55087fb5afb8d42e7f93a44fb /src/main/webapp/jquery-ui-1.9pre/ui/jquery.effects.fade.js
parente5f94e9be5017f627c1ccd8c6306c5cc2e200432 (diff)
new jq layout
Diffstat (limited to 'src/main/webapp/jquery-ui-1.9pre/ui/jquery.effects.fade.js')
-rw-r--r--src/main/webapp/jquery-ui-1.9pre/ui/jquery.effects.fade.js36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/main/webapp/jquery-ui-1.9pre/ui/jquery.effects.fade.js b/src/main/webapp/jquery-ui-1.9pre/ui/jquery.effects.fade.js
new file mode 100644
index 0000000..bc44f47
--- /dev/null
+++ b/src/main/webapp/jquery-ui-1.9pre/ui/jquery.effects.fade.js
@@ -0,0 +1,36 @@
+/*
+ * jQuery UI Effects Fade 1.9pre
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Effects/Fade
+ *
+ * Depends:
+ * jquery.effects.core.js
+ */
+(function( $, undefined ) {
+
+$.effects.effect.fade = function( o, done ) {
+ var el = $( this ),
+ mode = $.effects.setMode( el, o.mode || "toggle" ),
+ hide = mode === "hide";
+
+ el.show();
+ el.animate({
+ opacity: hide ? 0 : 1
+ }, {
+ queue: false,
+ duration: o.duration,
+ easing: o.easing,
+ complete: function() {
+ if ( hide ) {
+ el.hide();
+ }
+ done();
+ }
+ });
+};
+
+})(jQuery);