Design comparison
Solution retrospective
Did not figure it out the hover image question, i tried overlaping the image in so many ways and did not get it in the end...
Community feedback
- @Feyisara2306Posted over 2 years ago
Hello Heitor! well done on completing the challenge.
As regard your question on image overlay hover effect, put the two images in a separate div and declare an empty div for the overlay, then style its container div with a position:relative; and a 100% width. Then display the images as a block, and the overlay div position: absolute; .
Here is a snippet below...
.image{ position: relative; width: 100%; }
.image_img{ display: block; width: 100%; border-radius: 10px; }
.image_overlay{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 255, 247, 0.4); display: flex; align-items: center; justify-content: center; opacity: 0; border-radius: 10px; }
I hope this helps.
Good luck and happy coding!
Marked as helpful1
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