I've an icon with a border on my login page:
.border {
position: absolute;
font-size: 35px;
color: var(--main-color);
display: flex;
text-align: center;
line-height: 90px;
border: 4px solid;
width: 90px;
border-radius: 100%;
height: 90px;
align-items: center;
justify-content: center;
margin: auto;
padding: 5px;
left: 0;
right: 0;
top: 20px;
background: #ffffff;
}
<div class="border">✔</div>
I'm looking now for a way to add the border around with an growing animation because I've a timeout for login. The timeout is 60 seconds (60000 mil. sek.) so the border should be expanding from the right to the left all the round along. Is this possible?
Update
.border {
content: '';
position: absolute;
font-family: 'ETModules';
font-size: 60px;
color: var(--main-color);
display: -webkit-box;
display: -ms-flexbox;
display: flex;
text-align: center;
line-height: 90px;
width: 98px;
height: 98px;
border-radius: 100%;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
margin: auto;
padding: 5px;
left: 0;
right: 0;
top: 20px;
z-index: 9998;
background: #ffffff;
--percentage: 100deg;
background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#ffffff)) content-box no-repeat, conic-gradient(black var(--percentage, 0), transparent var(--percentage, 0)) border-box;
background: -webkit-linear-gradient(#ffffff, #ffffff) content-box no-repeat, conic-gradient(black var(--percentage, 0), transparent var(--percentage, 0)) border-box;
background: -o-linear-gradient(#ffffff, #ffffff) content-box no-repeat, conic-gradient(black var(--percentage, 0), transparent var(--percentage, 0)) border-box;
background: linear-gradient(#ffffff, #ffffff) content-box no-repeat, conic-gradient(black var(--percentage, 0), transparent var(--percentage, 0)) border-box;
-webkit-box-shadow: 0 0.2rem 0.4rem 0 rgba(0, 0, 0, .2);
box-shadow: 0 0.12rem 0.4rem 0 rgba(0, 0, 0, .2);
}
<div class="border">✔</div>
I've used now the duplicate question / answer but the "border" is thicker then 5px. Any idea how to fix this?