Image hover card animation using CSS Tailwind is not working as expected.
P粉863295057
P粉863295057 2024-04-06 13:43:17
0
1
451

<html>

<body>
  <div class="group card my-14 mx-3 w-80 h-100 bg-gray-800 rounded-xl text-white p-5 cursor-pointer">
    <div class=" flex justify-between items-center text-2xl ">
      <i class='bx bx-heart'></i>
      <i class='bx bx-cart-alt'></i>
    </div>
    <div class="w-11/12 ml-2.5 group-hover:text-white group-hover:-rotate-20">
      <img class="object-cover w-full h-full" src="./Images/Jordan.png" id="bannerImage" alt="">
    </div>
    <div class="text-center uppercase text-xl text-green-600">
      Jordan 1 <br>
      9
    </div>

  </div>
</body>

</html>

Explanation why styles based on parent state don't work. ................................................

P粉863295057
P粉863295057

reply all(1)
P粉238433862

Tailwind does not have a -rotate-20 utility class. Change it to one of the known ones or use any value, such as group-hover:-rotate- [20deg]

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template