Design comparison
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
- @correlucasPosted about 2 years ago
👾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 getstuck
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 nottouch
. 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 helpful1@aakashjangraPosted about 2 years ago@correlucas Thanks for the awesome feedback ♥️. I'll make the changes and update soon 😇
0 - @VCaramesPosted about 2 years ago
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 helpful1@aakashjangraPosted about 2 years agoThanks 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 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