diff --git a/src/javascripts/jquery.tipsy.js b/src/javascripts/jquery.tipsy.js index f95c063..39c266d 100644 --- a/src/javascripts/jquery.tipsy.js +++ b/src/javascripts/jquery.tipsy.js @@ -73,7 +73,7 @@ } if (this.options.fade) { - $tip.stop().css({opacity: 0, display: 'block', visibility: 'visible'}).animate({opacity: this.options.opacity}); + $tip.stop().css({opacity: 0, display: 'block', visibility: 'visible'}).animate({opacity: this.options.opacity}, this.options.fadeInDuration); } else { $tip.css({visibility: 'visible', opacity: this.options.opacity}); } @@ -82,7 +82,7 @@ hide: function() { if (this.options.fade) { - this.tip().stop().fadeOut(function() { $(this).remove(); }); + this.tip().stop().fadeOut(this.options.fadeOutDuration,function() { $(this).remove(); }); } else { this.tip().remove(); } @@ -189,6 +189,8 @@ delayIn: 0, delayOut: 0, fade: false, + fadeInDuration: 500, + fadeOutDuration: 500, fallback: '', gravity: 'n', html: false,