Is there a way to rotate an image 180 degrees while keeping the flip side visible? I've attempted different CSS methods, but the image always reverts back to its original side when hovering elsewhere.
Below is an example of the code I tried:
CSS :
.card {
width: 130px;
height: 195px;
background: url("images/card-back.jpg") no-repeat;
margin: 50px;
}
.card:hover {
background: url("images/card-front.jpg") no-repeat;
}
HTML :
<body>
<div class="card"></div>
</body>