Design comparison
Solution retrospective
Hello guys, it's me again, i have issues with adding the view icon and making it visible when you hover and also adding a background color on the background image. Thank you in anticipation.
Community feedback
- @AdrianoEscarabotePosted about 2 years ago
Hello! Congratulations on the challenge!
1- You said you had doubts about how to hover with another image, I'll give you a tip on how I did it and in my opinion it's the easiest way.
First you would put a div around the main image and then you would add a background-image directly in the css with the image that will be behind, you will put an opacity: 0;. With hover you will add it like this:
.div-main image:hover>.secondaryImg {opacity: 1;}
then you style it like this:
.secondaryImg:hover { -shadow: 0 320px hsla(178, 100%, 50%, .5) inset; }
If you have any doubts, you can look at my resolution here: click here
Hope it helps... Don't forget to mark it as helpful 👍
Marked as helpful0
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