I have been working on creating flipping cards for my website using CSS, but I am facing an issue. Even after styling my cards as per the provided CSS code, I am unable to make them flip when I hover my mouse over them.
.row {
padding-top: 25px;
}
.card {
display: block;
margin-bottom: 20px;
line-height: 1.42857143;
background-color: #E0E0E0s;
border-radius: 2px;
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
transition: box-shadow .25s;
border-right: 100%;
}
.card:hover {
box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.img-card {
width: 100%;
height: 200px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
display: block;
overflow: hidden;
}
.img-card img {
width: 100%;
height: 200px;
object-fit: cover;
transition: all .25s ease;
}
.card-content {
padding: 15px;
text-align: left;
}
.card-title {
margin-top: 0px;
font-weight: 700;
font-size: 1.65em;
}
.card-title a {
color: #000;
text-decoration: none !important;
}
.card-read-more {
border-top: 1px solid #D4D4D4;
}
.card-read-more a {
text-decoration: none !important;
padding: 10px;
font-weight: 600;
text-transform: uppercase
}
<div class="col-xs-12 col-sm-4">
<div class="card">
<a class="img-card" href="http://www.fostrap.com/">
<img src="https://images.pexels.com/photos/170811/pexels-photo-170811.jpeg?w=940&h=650&auto=compress&cs=tinysrgb" />
</a>
<br />
<div class="card-content">
<h4 class="card-title">
<a href="http://www.fostrap.com/">
BMW X5 SERIES
</a>
</h4>
<div class="">
New Delhi, 2005, Petrol
</div>
</div>
<div class="card-read-more">
<a class="btn btn-link btn-block" href="http://www.fostrap.com/">
BID NOW
</a>
</div>
</div>
</div>
After trying to add a hover class without success, I am seeking help to understand which class will allow me to achieve the desired flipping effect. Thank you.