I'm having trouble stopping the animation ... if I scroll through the link to open the window 5 times and come off. The "Show" effect occurs 5 times ... since I am torn from it I only want it to show once ....
Basically, it seems to be stuck in a loop ....
Any ideas on how to stop multiple instances?
jQuery(document).ready(function(){
jQuery('.ttip').hover(
function() {
var offset = jQuery(this).offset();
console.log(offset)
var width = jQuery(this).outerWidth();
var tooltipId = jQuery(this).attr("rel");
jQuery('#tooltip-container').empty().load('tooltips.html' + tooltipId).fadeIn(500);
jQuery('#tooltip-container').css({top:offset.top, left:offset.left + width + 10}).show();
},
function() {
jQuery('#tooltip-container').fadeOut(500);
});
});
source
share