Untitled
unknown
plain_text
a year ago
1.8 kB
4
Indexable
<div class="center">
<div class="background-circle"></div>
<div class="spinner"></div>
</div>
<style>
.center {
margin: 0;
position: absolute;
top: 50%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%);
display: flex;
align-items: center;
justify-content: center;
}
.background-circle {
width: 56px;
height: 56px;
border-radius: 50%;
border: 4px solid #e6f8fd;
position: absolute;
z-index: 1;
}
</style>
<style>
.spinner {
width: 56px;
height: 56px;
border-radius: 50%;
border: 4px solid #00aeef;
z-index: 2;
animation: spinner-bulqg1 1s infinite linear alternate,
spinner-oaa3wk 2s infinite linear;
}
@keyframes spinner-bulqg1 {
0% {
clip-path: polygon(50% 50%, 0 0, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0%);
}
12.5% {
clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 0%, 100% 0%, 100% 0%);
}
25% {
clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 100% 100%, 100% 100%);
}
50% {
clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%);
}
62.5% {
clip-path: polygon(50% 50%, 100% 0, 100% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%);
}
75% {
clip-path: polygon(50% 50%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 50% 100%, 0% 100%);
}
100% {
clip-path: polygon(50% 50%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 0% 100%);
}
}
@keyframes spinner-oaa3wk {
0% {
transform: scaleY(1) rotate(0deg);
}
49.99% {
transform: scaleY(1) rotate(135deg);
}
50% {
transform: scaleY(-1) rotate(0deg);
}
100% {
transform: scaleY(-1) rotate(-135deg);
}
}
</style>Editor is loading...
Leave a Comment