#demo{
}
.lds-spinner{
background
:
#000
;
}
.lds-spinner {
color
: official;
display
: inline-
block
;
position
:
relative
;
width
:
64px
;
height
:
64px
;
}
.lds-spinner div {
transform-origin:
32px
32px
;
animation: lds-spinner
1.2
s linear infinite;
}
.lds-spinner div:after {
content
:
" "
;
display
:
block
;
position
:
absolute
;
top
:
3px
;
left
:
29px
;
width
:
5px
;
height
:
14px
;
border-radius:
20%
;
background
:
#fff
;
}
.lds-spinner div:nth-child(
1
) {
transform: rotate(
0
deg);
animation-delay:
-1.1
s;
}
.lds-spinner div:nth-child(
2
) {
transform: rotate(
30
deg);
animation-delay:
-1
s;
}
.lds-spinner div:nth-child(
3
) {
transform: rotate(
60
deg);
animation-delay:
-0.9
s;
}
.lds-spinner div:nth-child(
4
) {
transform: rotate(
90
deg);
animation-delay:
-0.8
s;
}
.lds-spinner div:nth-child(
5
) {
transform: rotate(
120
deg);
animation-delay:
-0.7
s;
}
.lds-spinner div:nth-child(
6
) {
transform: rotate(
150
deg);
animation-delay:
-0.6
s;
}
.lds-spinner div:nth-child(
7
) {
transform: rotate(
180
deg);
animation-delay:
-0.5
s;
}
.lds-spinner div:nth-child(
8
) {
transform: rotate(
210
deg);
animation-delay:
-0.4
s;
}
.lds-spinner div:nth-child(
9
) {
transform: rotate(
240
deg);
animation-delay:
-0.3
s;
}
.lds-spinner div:nth-child(
10
) {
transform: rotate(
270
deg);
animation-delay:
-0.2
s;
}
.lds-spinner div:nth-child(
11
) {
transform: rotate(
300
deg);
animation-delay:
-0.1
s;
}
.lds-spinner div:nth-child(
12
) {
transform: rotate(
330
deg);
animation-delay:
0
s;
}
@keyframes lds-spinner {
0%
{
opacity:
1
;
}
100%
{
opacity:
0
;
}
}