Add the link into the .hover()
selector :
$('.container, .link').hover(...);
After that, you'll need to use .stop()
to prevent the queuing :
$('.container, .link').hover( function (){
$('.link').stop().fadeIn();
}, function(){
$('.link').stop().fadeOut();
});
Then you'll have a bug when fast-hovering the div
because fadeIn()
only proc when element is hidden so use fadeTo
:
$('.container, .link').hover( function (){
$('.link').stop().fadeTo('slow', 1);
}, function(){
$('.link').stop().fadeTo('slow', 0);
});