Design comparison
SolutionDesign
Solution retrospective
- For me, the eye image hover was difficult because I did know how I can put the image above the NFT image.
- I think It is the part of NFT image with its hover.
- Yes, I would like any other idea to implement this in better way
Community feedback
- @amalkarimPosted almost 2 years ago
Hi Pedro.
I think there are some ways to implement that. Yours included. However, with your method, the eye image is only 50% opaque. In the design sample, we could see that the eye image has 100% opacity. Only its background that has 50% opacity. To achieve this, we only need to change a few codes. We also add a little bit of transition for opacity.
Change this:
.nft-eye { ... background-color: var(--color-primary); ... } .nft-eye:hover { opacity: .5; }
to this:
.nft-eye { ... background-color: #0bffff99; ... transition: opacity 0.3s; } .nft-eye:hover { opacity: 1; }
Feel free to check out my solution if you want to know how I did it.
Hope this helps. Happy coding!
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