<label> label <progress max="100" value="10" style="--p:10%">10%</progress></label>
<label> label <progress max="100" value="40" style="--p:40%">40%</progress></label>
<label> label <progress max="100" value="80" style="--p:80%">80%</progress></label>
<label> label <progress max="100" value="100" style="--p:100%">100%</progress></label>
progress[value] {
--background: conic-gradient(#31c6f7 var(--p),lightgrey 0);
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border: none;
position: absolute;
inset: 0;
height: 100%;
width: 100%;
border-radius: 50%;
overflow: hidden;
background: var(--background);
-webkit-mask: radial-gradient(#0000 59%,#000 60% 70%,#0000 71%)
}
progress[value]::-webkit-progress-bar {
background: var(--background);
}
progress[value]::-webkit-progress-value {
background: #0000;
}
progress[value]::-moz-progress-bar {
background: #0000;
}
label {
--w: 150px; /* the width*/
font-size: 20px;
font-weight: bold;
display: inline-grid;
place-content: center;
width: var(--w);
aspect-ratio: 1;
position: relative;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.