I'm doing mouseover
and mouseout
to some images that have the same class. I want to put a visibility: hidden
and visibility: visible
. The code that I leave does but it applies to all the elements at the same time.
How do I apply it to each individual element or in itself?
Thank you.
$(".vc_clearfix", this).mouseover(function(){
$('.vc_gitem-zone-img').css("visibility", "hidden");
});
$(".vc_clearfix", this).mouseout(function(){
$('.vc_gitem-zone-img').css("visibility", "visible");
});