@keinermendozaSubmitted 2 months ago
What are you most proud of, and what would you do differently next time?
Well, in this challenge, I learned two valuable things:
- It is not possible to create a pseudo-element from an image element. I tried several times, and then I searched and found this article on Stack Overflow
.image::after ❌ .image-wrapper::after ✅
- I learned how to apply a hover selector to an ::after pseudo-element.
/* for example */
.card__image__wrapper:hover:after{
opacity: 1;
}