Design comparison
Solution retrospective
I was not able to implement active state for image-equilibrium(top image) as not sure how to change color of image on hover . Also didn't add any code for Mobile design as I think in mobile view it is displaying as expected
Community feedback
- @Saran-73Posted almost 3 years ago
Hi ,you can do that by creating a div with same image size create(:before) pseudo element give it backround color then centre the icon inside then make it position absolute to place it above the img and reduse the opacity and z- index property and while hovering change the opacity .Use( cursor:pointer; )property in css for the img div.To understand about not affecting the opacity of the icon while reducing the background opacity ,take a look at my project or the video by (coder coder) in youtube title"how to make background image transparent in Css" will help.
Marked as helpful0@vishwa3Posted almost 3 years ago@Saran-73 : Thanks Saran for taking the time to add a detailed comment as it helped me to fix the hover state for image-equilibrium though I have not used :before to do the same
0 - @ryu-kamiskiPosted almost 3 years ago
You are right I'm also having problems with the hover state. Also you forgot to link the required font. Other than these no issue.
0@vishwa3Posted almost 3 years ago@ryu-kamiski : thanks for the feedback , I have fixed hover for image-equilibrium , you can have a look at my solution if needed
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