As a user hovers over the card, I want to change the image displayed. I attempted the following code without success:
.card {
height: auto;
min-width: 90%;
background-color: white;
margin: 20px auto 0px;
}
.card img {
width: 100%;
height: auto;
border-radius: 10px;
}
.card img:hover {
background-image: url(images/hijab-icon-black-vector-illustration-260nw-1712786086.jpg);
width: auto;
height: 500px;
}
<div class="card">
<img src="images/image-equilibrium.jpg" alt="" />
</div>