Design comparison
SolutionDesign
Solution retrospective
In this challenge I used my creativity for the image of the NFT :hover, I racked my brains a lot to create the effect and I would like to know a feedback on how they managed to create this effect. I used Figma to create a new image with this opacity effect and I practically managed to leave it the way the challenge asked. I will be willing to learn more and develop these very basic animation techniques.
Community feedback
- @miranleginPosted about 2 years ago
Hi Adriel,
regarding hover on images you could do a couple of things:
- use <img> instead of <div> with background-image
- use parent element of an image and create hover effect with pseudo-element
::before
or::after
- move transition property from hover state to initial state, right now when you move your mouse away from the image the transition effect is not working because of that
Keep coding!
Cheers, Miran
Marked as helpful1
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