Design comparison
SolutionDesign
Community feedback
- @0xabdulkhaliqPosted over 1 year ago
Hello there 👋. Congratulations on successfully completing the challenge! 🎉
- I have other recommendations regarding your code that I believe will be of great interest to you.
CSS 🎨:
- The
transition
is not applied perfectly, if you apply a CSStransition
only onhover
, thetransition
will only occur when the userhovers
over the element, but when the user stopshovering
, thetransition
will not be reversed, resulting in an abrupt change. This can be jarring and not desirable from a UX perspective.
- To avoid this issue, you can add the transition rule
transition: 0.15s;
for the default state of the element.overlay
instead of.overlay:hover
. This will ensure that when the user stops hovering, the transition will smoothly revert back to the original state. You can do this by setting the default state transition to the same property values but with a longer duration or a different easing function.
.
I hope you find this helpful 😄 Above all, the solution you submitted is great !
Happy coding!
Marked as helpful0
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