@najeeb-anwari
Posted
Hi Mr. Jacko,
I hope this is helpful for you.
I recommend that you append <div class="overlay">
and make the overlay class absolutely positioned to your card-hero container.
-
Make the position relative as so
.card-hero { position: relative; }
-
Add transition and set width and height to 100% and set opacity to 0 as so
.overlay { pisition: absolute; transition: .4s; width: 100% ; height: 100%; opacity: 0 }
.
- Set the hover effect like
.card-hero:hover .overlay { opacity: 1; }
Marked as helpful