-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspinner.css
143 lines (136 loc) · 3.61 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
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/* Spinner From: https://codepen.io/tbrownvisuals/pen/edGYvx */
.spinner {
position: fixed;
z-index: 999;
height: 2em;
width: 2em;
overflow: show;
margin: auto;
top: 0;
left: 0;
bottom: 0;
right: 0;
display: none;
}
.show {
display: block;
}
/* Transparent Overlay */
.spinner:before {
content: '';
display: block;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(rgba(20, 20, 20, 0.8), rgba(0, 0, 0, 0.8));
background: -webkit-radial-gradient(
rgba(20, 20, 20, 0.8),
rgba(0, 0, 0, 0.8)
);
}
/* :not(:required) hides these rules from IE9 and below */
.spinner:not(:required) {
/* hide "loading..." text */
font: 0/0 a;
color: transparent;
text-shadow: none;
background-color: transparent;
border: 0;
}
.spinner:not(:required):after {
content: '';
display: block;
font-size: 10px;
width: 1em;
height: 1em;
margin-top: -0.5em;
-webkit-animation: spinner 150ms infinite linear;
-moz-animation: spinner 150ms infinite linear;
-ms-animation: spinner 150ms infinite linear;
-o-animation: spinner 150ms infinite linear;
animation: spinner 150ms infinite linear;
border-radius: 0.5em;
-webkit-box-shadow: rgba(255, 255, 255, 0.75) 1.5em 0 0 0,
rgba(255, 255, 255, 0.75) 1.1em 1.1em 0 0,
rgba(255, 255, 255, 0.75) 0 1.5em 0 0,
rgba(255, 255, 255, 0.75) -1.1em 1.1em 0 0,
rgba(255, 255, 255, 0.75) -1.5em 0 0 0,
rgba(255, 255, 255, 0.75) -1.1em -1.1em 0 0,
rgba(255, 255, 255, 0.75) 0 -1.5em 0 0,
rgba(255, 255, 255, 0.75) 1.1em -1.1em 0 0;
box-shadow: rgba(255, 255, 255, 0.75) 1.5em 0 0 0,
rgba(255, 255, 255, 0.75) 1.1em 1.1em 0 0,
rgba(255, 255, 255, 0.75) 0 1.5em 0 0,
rgba(255, 255, 255, 0.75) -1.1em 1.1em 0 0,
rgba(255, 255, 255, 0.75) -1.5em 0 0 0,
rgba(255, 255, 255, 0.75) -1.1em -1.1em 0 0,
rgba(255, 255, 255, 0.75) 0 -1.5em 0 0,
rgba(255, 255, 255, 0.75) 1.1em -1.1em 0 0;
}
/* Animation */
@-webkit-keyframes spinner {
0% {
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-ms-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-ms-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@-moz-keyframes spinner {
0% {
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-ms-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-ms-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@-o-keyframes spinner {
0% {
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-ms-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-ms-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes spinner {
0% {
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-ms-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-ms-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
}