I have an image, and when I hover it, the image disappear and the text is displayed. But I want to add an effect like fadeIn() but it doesn't work.
I have this code :
$('.gridImage').hover(function(){
$(this).find("img").css("visibility","hidden");
}, function(){
$(this).find("img").css("visibility","visible");
});
I tried with $(this).find("img").css("visibility","hidden").fadeIn(1000); but it doesn't work. Can someone help me please ?
EDIT :
<div class="col-md-15 col-lg-15 col-sm-4 col-xs-12 gridImage">
<img src="images/bonheur.jpg" class="img-responsive gridImage couple1" id="">
<div class="projet text-uppercase">Voir le projet</div>
</div>