Design comparison
SolutionDesign
Community feedback
- @Eldio-NetoPosted almost 3 years ago
hey bro, to make the img:hover efect i did another <div class="main-equilibrium">before the nft-img, then i used this on css to put the <div> over nft-img.
.container{ position:relative; }
nft-img{ position:relative; }
.main-equilibrium div{ position: absolute; top: 25px; /this is variable/ background-color: hsla(178, 100%, 50%, 0.5); width: 86.5%; height: 53%; z-index: 999; border-radius: 20px; opacity: 0; } .main-equilibrium div:hover{ opacity: 1; cursor: pointer; }
Hope I helped you.
Marked as helpful0
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