I want the navigation arrows to only appear when the user hovers over the "#featured" div or its display. My current code achieves this, but the transition is quite abrupt:
$("#featured, div.slider-nav").hover(function(){
$("div.slider-nav").animate({'opacity':'1.0'}, 400);},
function() {
$("div.slider-nav").animate({'opacity':'0'}, 400);
});
The time parameter in the .animate() function acts as a delay rather than creating a smooth fade effect like manipulating colors. Is there a more efficient way to smoothly fade in the navigational arrows in this scenario?