Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

NFT Preview card

@Prakash1411

Desktop design screenshot for the NFT preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

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_Voyez 110

@SD-Voyez

Posted

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 helpful

1
Matias gh 40

@GatiMhersi

Posted

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 GitHub
Discord logo

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