So, i have a CSS progress spinner, that that took 10 seconds to full load, with this code:
.loader {
border: 16px solid #d4d8da;
border-radius: 50%;
border-top: 16px solid #3498db;
width: 120px;
height: 120px;
-webkit-animation: spin 10s linear infinite;
animation: spin 10s linear infinite;
}
@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
50% { -webkit-transform: rotate(180deg); }
100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
0% { transform: rotate(0deg); }
50% { -webkit-transform: rotate(180deg); }
100% { transform: rotate(360deg); }
}
And the HTML:
<div class="loader"></div>
But I cant figure out how to fill the hole grey circle according to the progress/time.
Can you help-me please?
Thank you.