Here is some code I am working with:
$(document).ready(function () {
$("#full-btns").children().delay(4000).fadeOut("slow");
$('#full-btns').hover(function() {
$('#full-btns').children().stop().animate({opacity:'100'});
$('#full-btns').children().show();
}, function() {
$("#full-btns").children().fadeOut("slow");
});
Upon page load, the #full-btns
section is displayed for 4000 milliseconds before fading out. The issue arises when a user hovers over the #full-btns
element while it is still visible, triggering the fade-out effect due to
$("#full-btns").children().fadeOut("slow");
being called on hover. My goal is to keep #full-btns
always visible upon hovering.
If you visit the page and hover over the red div as it fades out, you'll see the problem. While hovering over the red div, it should remain visible and not fade out.
Update: http://jsfiddle.net/gazedge/nhBBc/ (now includes solution)