I have a problem with the mouseover effect. My code below and jsfiddle link
$(".first").hover(function() { $(this).children('.second').fadeIn('500'); }); $(".first").mouseleave(function() { $(this).children('.second').fadeOut('500'); });
If you insert and insert the mouse several times and leave, the effect is saved. I want until the first mouseover effect is over, I do not want to continue to act for a while. Please ask me if you do not understand this.
Thanks guys for your time, I figured it out in a simple way below Just use fade to work instead of fade in, then it works. Here is the code and demo
$(".first").hover(function() { $(this).children('.second').stop().fadeTo('slow',1); }); $(".first").stop().mouseleave(function() { $(this).children('.second').stop().fadeTo('slow',0); });
source share