Can we gradually fill the color of a CSS semi-circle in a counterclockwise direction, similar to a progress bar?
Here is the code for the semi-circle: https://jsfiddle.net/sonymax46/wqfovdjh/7/.
.cc{
background-color: transparent;
overflow: hidden;
width: 80px;
}
.curve {
height: 60px;
width: 100%;
background-color: none;
border-radius: 50%;
border: 2px solid blue;
transform: translateX(50%);
}
I would like the current blue color to be replaced with green upon triggering an event. How can this be achieved using CSS or SVG?
Thank you in advance.