/
spinner.css
95 lines (85 loc) · 1.8 KB
/
spinner.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
.spinner {
width: 70px;
height: 70px;
border: 8px solid lightblue;
border-top-color: blue ;
border-radius: 50%;
animation: spin 2s linear infinite;
}
.spinner>div{
box-sizing: border-box;
width: 100%;
height: 100%;
}
.spinner-dual {
width: 70px;
height: 70px;
border: 8px solid transparent;
border-top-color: blue;
border-bottom-color: blue;
border-radius: 50%;
animation: spin 1.5s linear infinite;
}
.spinner-dual>div{
box-sizing: border-box;
width: 100%;
height: 100%;
animation: spin .8s reverse linear infinite;
}
.spinner-fast {
width: 70px;
height: 70px;
border-top: 5px solid blue;
border-right: 5px solid transparent;
border-radius: 50%;
animation: spin 1s linear infinite;
}
.spinner-fast>div{
box-sizing: border-box;
width: 100%;
height: 100%;
animation: spin 3s linear infinite;
}
.spinner-triple {
width: 70px;
height: 70px;
border: 5px solid transparent;
border-top-color: blue ;
border-radius: 50%;
animation: spin 2s linear infinite;
}
.spinner-triple::before {
content: "";
border: 5px solid transparent;
border-top-color: lightskyblue ;
border-radius: 50%;
position: absolute;
top: 5px;
left: 5px;
right: 5px;
bottom: 5px;
animation: spin 2s linear infinite;
}
.spinner-triple::after {
content: "";
border: 5px solid transparent;
border-top-color: lightblue;
border-radius: 50%;
position: absolute;
top: 15px;
left: 15px;
right: 15px;
bottom: 15px;
animation: spin 1s linear infinite;
}
.spinner-triple>div{
box-sizing: border-box;
width: 100%;
height: 100%;
animation: spin 1.5s linear infinite;
}
@keyframes spin {
100% {
transform: rotate(360deg);
}
}