New animation for Badge[status="processing"]

This commit is contained in:
afc163 2017-02-13 14:49:03 +08:00
parent dd589a4366
commit 8726e8581b

View File

@ -60,7 +60,18 @@
}
&-processing {
background-color: @primary-color;
animation: antStatusProcessing 1.2s infinite ease-in-out;
position: relative;
&:after {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: @primary-color;
content: '';
animation: antStatusProcessing 1.2s infinite ease-in-out;
}
}
&-default {
background-color: @normal-color;
@ -98,11 +109,11 @@
}
@keyframes antStatusProcessing {
0%,
100% {
opacity: 1;
}
50% {
0% {
transform: scale(0.8);
opacity: 0.5;
} 100% {
transform: scale(2.4);
opacity: 0;
}
}