Hello,
I try to change an image on mouse hover using a background image. This is somehow not working correctly (the image disappears). Could you please help me to fix it?
The code in my footer:
<a href="https://www.facebook.com/ghara.construction/" target="_blank" class="fb-hover"><img src="/wp-content/uploads/2019/05/Icone-facebook-ghara.png" alt="Icone Facebook" class="fb-hover"></a>
The CSS:
.fb-hover {
background:url(/wp-content/uploads/2019/05/Icone-facebook-hover.png) no-repeat;
transition: 0.25s all ease-in-out;
}
.fb-hover:hover {
opacity: 0;
transition: 0.25s all ease-in-out;
}