<div class="myCard"> <div class="innerCard"> <div class="frontSide"> <p class="title">FRONT SIDE</p> <p>Hover Me</p> </div> <div class="backSide"> <p class="title">BACK SIDE</p> <p>Leave Me</p> </div> </div> </div>
.myCard { background-color: transparent; width: 190px; height: 254px; perspective: 1000px; } .title { font-size: 1.5em; font-weight: 900; text-align: center; margin: 0;