As I work on developing a website's frontend using Bootstrap/Html/Css, I have encountered a minor issue with css. I have created two cards using bootstrap cards and I am trying to implement an Overlay effect or Flip effect on them. However, I am unsure of the easiest way to apply this switching effect on the two cards.
Any help related to Css or Jquery in achieving this would be greatly appreciated.
Below is my Bootstrap Code for the Cards :
<div class="col-sm-6">
<div class="today-special">
<h4>Today Special</h4>
<div class="row">
<div class="col-sm-6">
<div class="card card-one">
<img class="card-img-top" src="images/320x210.png" alt="Card image cap">
<div class="card-body">
<h5 class="card-title">Pizza Marinara</h5>
<p class="card-text">80.96</p>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="card card-two">
<img class="card-img-top" src="images/320x210.png" alt="Card image cap">
<div class="card-body">
<h5 class="card-title">Chicken Noodles</h5>
<p class="card-text">50.10</p>
</div>
</div>
</div>
</div>
</div>
</div>
CSS for the Cards :
.today-special{
text-align: left;
.card-one{
width:14rem;
border: 1px solid #888888;
border-radius: unset;
box-shadow: 4px 5px 15px 1px #888888;
.card-text{
color: #FEA200;
font-weight: 500;
}
}
.card-two{
width:14rem;
border: 1px solid #888888;
border-radius: unset;
box-shadow: 4px 5px 15px 1px #888888;
.card-text{
color: #FEA200;
font-weight: 500;
}
}
.card-img-top{
border-radius: unset;
}
}
Currently, the appearance of my two bootstrap cards is as follows:
https://i.sstatic.net/eRO0P.png
I aim to have the cards look like this: