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 Component challenge

@Alex-Beltran97

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


  1. For me, the eye image hover was difficult because I did know how I can put the image above the NFT image.
  2. I think It is the part of NFT image with its hover.
  3. Yes, I would like any other idea to implement this in better way

Community feedback

@amalkarim

Posted

Hi Pedro.

I think there are some ways to implement that. Yours included. However, with your method, the eye image is only 50% opaque. In the design sample, we could see that the eye image has 100% opacity. Only its background that has 50% opacity. To achieve this, we only need to change a few codes. We also add a little bit of transition for opacity.

Change this:

.nft-eye {
    ...
    background-color: var(--color-primary);
    ...
}
.nft-eye:hover {
    opacity: .5;
}

to this:

.nft-eye {
    ...
    background-color: #0bffff99;
    ...
    transition: opacity 0.3s;
}
.nft-eye:hover {
    opacity: 1;
}

Feel free to check out my solution if you want to know how I did it.

Hope this helps. Happy coding!

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