Interactive-rating-component using HTML Css and Javascript
Design comparison
Solution retrospective
Hi, this is my 3rd challenge. For this challenge try to find a different solution and experiment whit de DOM. To select the rating use a div container , whit hover from Css, and manipulate the other states from Js. This causes hover to stop working as soon as the script was executed (I guess because of a specificity issue). So I decided to manipulate all states from Js using mouse events and problem solved :) Later I will upload another solution using the usual tags such as radio buttons for rating and managing their states using the focus and selected properties. I think it should be easier and more efficient.
All comments are welcome, thank you.
All comments are welcome, thank you.
Community feedback
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