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
Request path contains unescaped characters
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive NFT Card challenge

@obengkenneth

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


Please I need help on how to overlay the card image with the view svg on hover.

Community feedback

P

@jbaldwin406

Posted

Hey there, first off nice work on the challenge.

One way of getting the overlay with the view svg is to create a div that holds the view svg, and then set that initially to 0 opacity. Then on hover of the card img, set the overlay opacity to 1, which then will give you the effect you are looking for. In order to get the view icon to not have the opacity effect applied to it, I instead set the background color of the overlay div to rgba in order to give just the background the opacity and not the icon on top of it.

Hopefully this makes sense, and nice work again

0

@obengkenneth

Posted

@jbaldwin406 thank you very much.

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