Currently, I am developing a timer application where there is an initial white ring surrounding the remaining time. My goal is to gradually change the color of the outer ring to red as the time progresses, ultimately turning completely red when the time runs out.
<div className="countdown-timer">
<span>{remainingTime.hours}</span>
<span>:</span>
<span>{remainingTime.minutes}</span>
<span>:</span>
<span>{remainingTime.seconds}</span>
</div>
.countdown-timer {
width: 400px;
height: 400px;
border: 6px solid white;
border-radius: 50%;
box-shadow: black;
font-family: "DM Sans";
font-size: 72px;
display: flex;
justify-content: center;
align-items: center;
margin-top: 10px;
margin-left: auto;
margin-right: auto;
}
Despite trying a concentric circle approach, I did not achieve the desired effect.
This is the visual representation I am aiming for: https://i.sstatic.net/AVOz3.png