aboutsummaryrefslogtreecommitdiffstats
path: root/ui/effects.blind.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/effects.blind.js')
-rw-r--r--ui/effects.blind.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/effects.blind.js b/ui/effects.blind.js
index bdcd1e66a..e56dfba65 100644
--- a/ui/effects.blind.js
+++ b/ui/effects.blind.js
@@ -18,18 +18,18 @@ $.effects.blind = function(o) {
// Create element
var el = $(this), props = ['position','top','left'];
-
+
// Set options
var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
var direction = o.options.direction || 'vertical'; // Default direction
-
+
// Adjust
$.effects.save(el, props); el.show(); // Save & Show
var wrapper = $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper
var ref = (direction == 'vertical') ? 'height' : 'width';
var distance = (direction == 'vertical') ? wrapper.height() : wrapper.width();
if(mode == 'show') wrapper.css(ref, 0); // Shift
-
+
// Animation
var animation = {};
animation[ref] = mode == 'show' ? distance : 0;
@@ -41,9 +41,9 @@ $.effects.blind = function(o) {
if(o.callback) o.callback.apply(el[0], arguments); // Callback
el.dequeue();
});
-
+
});
-
+
};
})(jQuery);