NFT Preview Card Component using Next.js, Typescript and SASS
Design comparison
Solution retrospective
Is there any way to make the "view" icon opacity: 1? SASS selectors are unable to access the .view class for some unknown reason. Maybe because CSS modules are in use?
Community feedback
- @MaxTarasevichPosted about 2 years ago
Hi Anthony!
You can easily solve your problem by setting the property background-color as rgba(0, 255, 247, 0.65);.
The opacity property when hovering over the .Card Image _wrapper block should be 1, respectively.
.Card_image__wrapper__MClPi:hover .Card_overlay__3i7Lc { opacity: 1.0; }
You can't make the value of the opacity property of a child element greater than that of the parent element. Less - you can, no more!
Also add a display: block property to the image, as it has a smaller height than the parent, and it's noticeable on hover!
.Card_image__sWcC9 { display: block; }
I hope my feedback was helpful!
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