<div class="firstAnimation"> <div class="secondAnimation"> <div class="card"> </div> </div> </div>
.card { width: 190px; height: 254px; background: rgb(0, 0, 0); border: 2px solid rgb(255, 255, 255); border-radius: 20px; } .card:hover { width: 190px; height: 254px; background: rgb(255, 255, 255);