Design comparison
Solution retrospective
Having difficulties to have the opacity of 1, for the hover image. Will be helpful if someone could guide me how it can be done. Thanks!!
Community feedback
- @SD-VoyezPosted about 2 years ago
Hi !
Nice work.
I had the same problem, so i put opacity at 1 for the SVG "eye" when hover and play with HSLA and the "background-color transparency".
In your case it will be something like : background-color: hsla(178, 100%, 50%, 0.502);
With your code :
.top-section:hover .overlay { opacity: 1; }
.overlay { display: flex; justify-content: center; align-items: center; position: absolute; top: 0; bottom: 0; left: 0; right: 0; height: 100%; width: 100%; opacity: 0; transition: .5s ease; background-color: hsla(178, 100%, 50%, 0.502); border-radius: 10px;
HSLA : https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/hsla
Regards :)
Marked as helpful1 - @GatiMhersiPosted about 2 years ago
Hola! quedó Increible!
Algo que yo pude implementar, es utilizar el HSLA para agregarle opacidad al fondo del elemento que esta por encima de la imagen del NFT, brindando la posibilidad de que el ojo pueda visualizarse en su tonalidad normal al activarse el :hover. De todas formas me encanto el efecto de incremento de la opacidad!!
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