vcomjs
Version:
Vericom AppJs
151 lines (125 loc) • 2.8 kB
CSS
/*.loader {
width: 16px;
height: 16px;
border-radius: 50%;
display: block;
margin: 15px auto;
position: relative;
background: #FFF;
box-shadow: -24px 0 #FFF, 24px 0 #FFF;
box-sizing: border-box;
animation: shadowPulse 2s linear infinite;
}
@keyframes shadowPulse {
33% {
background: #FFF;
box-shadow: -24px 0 #FF3D00, 24px 0 #FFF;
}
66% {
background: #FF3D00;
box-shadow: -24px 0 #FFF, 24px 0 #FFF;
}
100% {
background: #FFF;
box-shadow: -24px 0 #FFF, 24px 0 #FF3D00;
}
}*/
/*.loader {
width: 32px;
height: 32px;
position: relative;
border-radius: 50%;
color: #1a5fed;
animation: fill 1s ease-in infinite alternate;
}
.loader::before, .loader::after {
content: '';
position: absolute;
height: 100%;
width: 100%;
border-radius: 50%;
left: 48px;
top: 0;
animation: fill 0.9s ease-in infinite alternate;
}
.loader::after {
left: auto;
right: 48px;
animation-duration: 1.1s;
}
@keyframes fill {
0% {
box-shadow: 0 0 0 2px inset
}
100% {
box-shadow: 0 0 0 10px inset
}
}*/
.loader {
transform: rotateZ(45deg);
perspective: 1000px;
border-radius: 50%;
width: 48px;
height: 48px;
color: #6C7281;
}
.loader:before,
.loader:after {
content: '';
display: block;
position: absolute;
top: 0;
left: 0;
width: inherit;
height: inherit;
border-radius: 50%;
transform: rotateX(70deg);
animation: 1s spin linear infinite;
}
.loader:after {
color: #FF3D00;
transform: rotateY(70deg);
animation-delay: .4s;
}
@keyframes rotate {
0% {
transform: translate(-50%, -50%) rotateZ(0deg);
}
100% {
transform: translate(-50%, -50%) rotateZ(360deg);
}
}
@keyframes rotateccw {
0% {
transform: translate(-50%, -50%) rotate(0deg);
}
100% {
transform: translate(-50%, -50%) rotate(-360deg);
}
}
@keyframes spin {
0%, 100% {
box-shadow: .2em 0px 0 0px currentcolor;
}
12% {
box-shadow: .2em .2em 0 0 currentcolor;
}
25% {
box-shadow: 0 .2em 0 0px currentcolor;
}
37% {
box-shadow: -.2em .2em 0 0 currentcolor;
}
50% {
box-shadow: -.2em 0 0 0 currentcolor;
}
62% {
box-shadow: -.2em -.2em 0 0 currentcolor;
}
75% {
box-shadow: 0px -.2em 0 0 currentcolor;
}
87% {
box-shadow: .2em -.2em 0 0 currentcolor;
}
}