-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloader.css
125 lines (113 loc) · 2.36 KB
/
loader.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/**
* Proud To Load
* Author: Katarina Ljungdahl <[email protected]>
* License: MIT
*/
@keyframes rainbow-color-is-rotating {
from {
transform: rotate(-180deg);
}
to {
transform: rotate(180deg);
}
}
.rainbow {
width: 160px;
height: 80px;
position: absolute;
top: calc(50% + 40px);
left: 50%;
margin-left: -80px;
margin-top: -80px;
overflow: hidden;
}
.rainbow-container {
width: 160px;
height: 160px;
transform: rotate(45deg) translateY(1px);
}
.rainbow-color {
position: absolute;
border-radius: 50%;
border: 10px solid transparent;
box-sizing: border-box;
animation-name: rainbow-color-is-rotating;
animation-duration: 2s;
animation-timing-function: ease-in-out;
animation-iteration-count: infinite;
transform: rotate(-180deg)
}
.rainbow-color.red {
border-left-color: #f03837;
border-top-color: #f03837;
width: 100%;
height: 100%;
left: 0;
top: 0;
animation-delay: 0;
}
.rainbow-color.orange {
border-left-color: #ffb900;
border-top-color: #ffb900;
width: calc(100% - 20px);
height: calc(100% - 20px);
left: 10px;
top: 10px;
animation-delay: 0.14s;
}
.rainbow-color.yellow {
border-left-color: #ffe200;
border-top-color: #ffe200;
width: calc(100% - 40px);
height: calc(100% - 40px);
left: 20px;
top: 20px;
animation-delay: 0.05s;
}
.rainbow-color.green {
border-left-color: #9adf10;
border-top-color: #9adf10;
width: calc(100% - 60px);
height: calc(100% - 60px);
left: 30px;
top: 30px;
animation-delay: 0.45s;
}
.rainbow-color.blue {
border-left-color: #1cc2da;
border-top-color: #1cc2da;
width: calc(100% - 80px);
height: calc(100% - 80px);
left: 40px;
top: 40px;
animation-delay: 0.3s;
animation-timing-function: ease-out;
}
.rainbow-color.indigo {
border-left-color: #545cda;
border-top-color: #545cda;
width: calc(100% - 100px);
height: calc(100% - 100px);
left: 50px;
top: 50px;
animation-delay: 0.7s;
}
.rainbow-color.violet {
border-left-color: #dc7fba;
border-top-color: #dc7fba;
width: calc(100% - 120px);
height: calc(100% - 120px);
left: 60px;
top: 60px;
animation-delay: 1s;
animation-timing-function: linear;
animation-duration: 1.2s;
}
.rainbow-cover-box {
width: 0;
height: 0;
border-width: 79px 81px 81px 79px;
border-style: solid;
border-color: transparent #fff #fff transparent;
position: relative;
}