Design comparison
Solution retrospective
Hello everyone! This is my second challenge, I struggled with the transition to the view in the image. Actually, I cannot make it completely similar as I was not able to set the "eye" icon not transparent. Any feedback or suggestion will be highly appreciated!
Thank you for your time checking y challenge!
Community feedback
- @JRS-DeveloperPosted over 2 years ago
Hi Pedro, good work!
About your question of the overlay, you only need to add a opacity: 1 to the overlay on hover and change the background color from hsl to hsla.
.imgcontainer:hover .overlay { /* opacity: 0.7; */ opacity: 1; /* background-color: hsl(178, 100%, 50%); /* background-color: hsla(178, 100%, 50%, 0.5); /*https://www.w3schools.com/html/html_colors_hsl.asp */ cursor: pointer; margin-left: 20px; }
Marked as helpful1@verdepedroPosted over 2 years ago@JRS-Developer Thanks a lot for the feedback, I will test it out!
0 - @imadvvPosted over 2 years ago
Hey Pedro, you can add transition to
overlay
like sotransition: all 350ms ease-in-out;
, but also seem like you add some extra margin, that you can actually center element with flex easy, you can read about flex here.#Happy_Coding
Marked as helpful1@verdepedroPosted over 2 years ago@imadbg01 Thanks a lot for the information! I will check it out!
1
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