NFT Preview Card Component {HTML / CSS}

Solution retrospective
Pls, I didn't get the hover above the Equilibrium image, any solution to that?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @GabrielReis11
Hello Oladimeji, to get the hover effect on my project i used this method:
On the HTML: . On the card <div> i have the Equilibrium image and another <div> with a class called "overlay" at the same position of the image with the icon-view.svg .
On the CSS: on the .overlay .I made all the adjustments of the overlay and set the opacity to 0 on the .overlay:hover .Just change the opacity to 1
I think this will help you. Here is my repository with my code in case you want to take a look. https://github.com/GabrielReis11/NFT-preview-card-component
Marked as helpful - @moqasalem
you can reduce the opacity of the image hover{ opacity:0.5; }
Marked as helpful - @dasurahul
You can use ::before and ::after on image-box to get the hover above the Equilibrium image. I hope this will help you.
Marked as helpful
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