NFT preview card component

Solution retrospective
Difficulties:
- I couldn't find a proper way to hover on both image and icon view.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Benjoow
Hello crizalid !
For your hover, you can set your after pseudo element with opacity to 0 and add your icon view with "content: url()". I personnaly recommand to set display of your pseudo element in flex and align your icon view with this. It's more simpler than your solution. For your hover element, you set the opacity to 1 AND your background with another system color like rgba or hsla, like this : background: rgba(color num, color num, color num, transparency)
Join 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