We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4226fae commit 412d1aaCopy full SHA for 412d1aa
ui/jquery.effects.slide.js
@@ -29,7 +29,7 @@ $.effects.slide = function(o) {
29
var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
30
var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
31
var distance = o.options.distance || (ref == 'top' ? el.outerHeight({margin:true}) : el.outerWidth({margin:true}));
32
- if (mode == 'show') el.css(ref, motion == 'pos' ? -distance : distance); // Shift
+ if (mode == 'show') el.css(ref, motion == 'pos' ? (isNaN(distance) ? "-" + distance : -distance) : distance); // Shift
33
34
// Animation
35
var animation = {};
0 commit comments