Design comparison
Solution retrospective
Can someone could give me some advice on how to made the eye effect with background ? Thanks !
Community feedback
- @ZglobiulViuPosted almost 3 years ago
You should try to wrap your main image and the eye logo in a div , which I saw in your code that you did already. Now go on and try to set a
background-image:url() on that div
with the same main image(url is a bit tricky when you set the path, search on yt). That url image should copy the size of your main image and should be below it. Also you would need to set z-index on the logo. z-index=-1 should work I guess. Now on hover effect set your main image to become transparent. Also to set that blue color to the url you should use a linear-gradient. I practice CSS for 2 months now, so i'm not a pro. I hope I could help you.Marked as helpful1@JexintePosted almost 3 years ago@ZglobiulViu Hey, thanks for the advice I'll try your solution later and If it was successful I come by here later show you the result
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