Looking for some assistance with a circular progress component code that I have been working on. Despite my efforts, the circle is not completing when hovered over. Any suggestions on how to make it work would be greatly appreciated.
button {
border: 6.429px #f1f1f1 solid;
position: relative;
}
.current-step {
font-size: 24.442px;
}
button::before,
button::after {
box-sizing: inherit;
content: '';
position: absolute;
width: 100%;
height: 100%;
}
.spin {
height: 66px;
width: 65px;
}
.spin::before,
.spin::after {
top: -6px;
left: -5px;
}
.spin::before {
border: 6.429px solid transparent;
}
.spin:hover::before {
border-top-color: #f90;
border-right-color: #f90;
border-bottom-color: #f90;
transition: border-top-color 0.15s linear, border-right-color 0.15s linear 0.1s, border- bottom-color 0.15s linear 0.2s;
}
.spin:hover::after {
border: 0 solid transparent;
}
.spin::after {
// border-top: 6.429px solid #F90;
border-left-width: 6.429px;
border-right-width: 6.429px;
transform: rotate(200deg);
transition: transform 0.4s linear 0s, border-left-width 0s linear 0.35s, -webkit-transform 0.4s linear 0s;
}
.circle {
border-radius: 100%;
box-shadow: none;
}
.circle::before,
.circle::after {
border-radius: 100%;
height: 66px;
width: 65px;
}
<button class="spin circle"><span class="current-step">1</span>/<span>5</span></button>