skip to Main Content

Adding a class to existing class – Jquery

HTML: <div class="card"> <div class="card-back bi bi-bicycle"> CSS: .card-back { transform: rotateY(270deg) translateZ(10px); } .flipped { transform: rotateY(180deg) translateZ(0); } Above are my existing code structure; am trying to add the ‘flipped’ class into the ‘card-back’ class ON CLICK in…

VIEW QUESTION
Back To Top
Search