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

Akash 120

@aakashjangra

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


How to make eye icon appear in white color when hovered over the card? Any suggestions would be much appreciated... Thanks

Community feedback

Lucas 👾 104,420

@correlucas

Posted

👾Hello @AkashsRepositoriesCongratulations on completing this challenge!

Nice code and nice solution! You did a good job here putting everything together. I’ve some suggestions for you:

1.Add transitions to make the interaction smoother while the element gets hovered, you can use a value like transition: all ease-in 0.5s.

2.Its amazing that you’ve customized some interaction, you’ve to pay attention because when you add some hover effects you've to think that for the mobile version there's an issue that the elements with hover get stuck on the active state of the hover until you click on something else. Something you can do to avoid this problem on mobile, the stick hover, is to add a media query saying that you want hover effects only on devices that are not touch. So you can use:

@media (hover: hover) {
{ADD HERE ALL THE CLASSES WITH HOVER EFFECTS TO DISABLE IT ON MOBILE}
}

✌️ I hope this helps you and happy coding!

Marked as helpful

1

Akash 120

@aakashjangra

Posted

@correlucas Thanks for the awesome feedback ♥️. I'll make the changes and update soon 😇

0

@VCarames

Posted

Hey @AkashsRepositories, great job on this project!

Regarding your question, your hover seems to be working but for some reason when you move the mouse inside the image it keeps on going on and off. Weird...

Heres a link that can show you how to apply it:

https://www.w3schools.com/howto/howto_css_image_overlay.asp

Happy Coding!

Marked as helpful

1

Akash 120

@aakashjangra

Posted

Thanks for the feedback @vcarames. I was looking forward for something like that only.

Edit: Fixed hover effect on nft image.

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