Design comparison
SolutionDesign
Community feedback
- @snguyen56Posted 18 days ago
Component looks great!
If you want to improve the user experience, try using a click toggle for the active state for the JS, instead of a mouse leave event.
For more information on toggling classes in JS, refer to this link: https://www.w3schools.com/howto/howto_js_toggle_class.asp
Overall, well done!
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