I'm trying to build a CSS3 hover menu. I want to hover an image (like first photo) and then appear my menu (like second photo) and also I want to hide the first image. Finally, I want to keep the hover state if cursor is on the menu.
Source code:
$("#div-right img").hover(function(){
$('#div-right a').removeClass('hidden');
$("#div-right img").css({opacity: "0"});
},function(){
$('#div-right a').addClass('hidden');
$("#div-right img").css({opacity: "1"});
});
<div id="div-right">
<a class="hidden" href="index.html" class="m1">HOME</a>
<a class="hidden" href="#" class="m2">ABOUT</a>
<a class="hidden" href="#" class="m3">CONTACT</a>
<img src="images/menu-01.png" style="position:relative; right:30px;">
</div>
#div-right a hidden{
display:none;
}

