I am looking to develop a unique rating system using css, html, and potentially js :
https://i.sstatic.net/pQP79.png
My goal is for the user to hover over a specific section of a circular stroke and have it fill with a particular color, all while maintaining functionality. So far, I have completed the following code snippets:
* {
background-color: blue;
}
.progress-ring__circle {
stroke-dasharray: 25 6;
}
<svg
class="progress-ring"
width="120"
height="120">
<circle
class="progress-ring__circle"
stroke="grey"
stroke-width="10"
fill="transparent"
r="52"
cx="60"
cy="60"/>
</svg>
The challenge now lies in detecting which section of the dash the user's cursor is on. Is there a way to achieve this using JS or CSS?