Permalink
Browse files

Added opacity option for specifiying target opacity on fade (Closes #2)

  • Loading branch information...
1 parent c88fb9e commit af929836181d415c69d8c7f37932408438abb94b @jaz303 jaz303 committed Jan 15, 2010
Showing with 4 additions and 3 deletions.
  1. +3 −2 src/javascripts/jquery.tipsy.js
  2. +1 −1 src/stylesheets/tipsy.css
@@ -53,9 +53,9 @@
}
if (opts.fade) {
- tip.css({opacity: 0, display: 'block', visibility: 'visible'}).animate({opacity: 0.8});
+ tip.css({opacity: 0, display: 'block', visibility: 'visible'}).animate({opacity: opts.opacity});
} else {
- tip.css({visibility: 'visible'});
+ tip.css({visibility: 'visible', opacity: opts.opacity});
}
}, function() {
@@ -86,6 +86,7 @@
};
$.fn.tipsy.defaults = {
+ opacity: 0.8,
fade: false,
fallback: '',
gravity: 'n',
@@ -1,4 +1,4 @@
-.tipsy { padding: 5px; font-size: 10px; opacity: 0.8; filter: alpha(opacity=80); background-repeat: no-repeat; background-image: url(../images/tipsy.gif); }
+.tipsy { padding: 5px; font-size: 10px; filter: alpha(opacity=80); background-repeat: no-repeat; background-image: url(../images/tipsy.gif); }
.tipsy-inner { padding: 5px 8px 4px 8px; background-color: black; color: white; max-width: 200px; text-align: center; }
.tipsy-inner { -moz-border-radius:3px; -webkit-border-radius:3px; }
.tipsy-north { background-position: top center; }

0 comments on commit af92983

Please sign in to comment.