Design comparison
Solution retrospective
Please I need help on how to overlay the card image with the view svg on hover.
Community feedback
- @jbaldwin406Posted over 1 year ago
Hey there, first off nice work on the challenge.
One way of getting the overlay with the view svg is to create a div that holds the view svg, and then set that initially to 0 opacity. Then on hover of the card img, set the overlay opacity to 1, which then will give you the effect you are looking for. In order to get the view icon to not have the opacity effect applied to it, I instead set the background color of the overlay div to rgba in order to give just the background the opacity and not the icon on top of it.
Hopefully this makes sense, and nice work again
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord