-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloading.html
216 lines (208 loc) · 3.99 KB
/
loading.html
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<div id="loadingDiv">
<h1>
<span>S</span>
<span>L</span>
<span>O</span>
<span>c</span>
<span>o</span>
<span>d</span>
<span>e</span>
</h1>
<span class="container">
<div></div>
<div></div>
<div></div>
<div></div>
</span>
<h2>
<span>l</span>
<span>o</span>
<span>a</span>
<span>d</span>
<span>i</span>
<span>n</span>
<span>g</span>
</body>
<style>
#loadingDiv h1 {
font-family: "Montserrat", sans-serif;
font-size: 4em;
text-align: center;
letter-spacing: -10px;
font-weight: lighter;
top: 50px;
position:relative;
}
#loadingDiv h1 span:first-child {
color: #fff;
}
#loadingDiv h1 span:nth-child(2) {
color: #fff;
}
#loadingDiv h1 span:nth-child(3) {
color: #fff;
}
#loadingDiv h1 span:nth-child(4) {
color: #fff;
}
#loadingDiv h1 span:nth-child(5) {
color: #fff;
}
#loadingDiv h1 span:nth-child(6) {
color: #fff;
}
#loadingDiv h1 span:nth-child(7) {
color: #fff;
-ms-transform: rotate(-20deg);
-webkit-transform: rotatee(-20deg);
transform: rotate(-20deg);
display: inline-block;
}
#loadingDiv h2 {
font-family: "Montserrat", sans-serif;
font-size: 2em;
text-align: center;
letter-spacing: -4px;
font-weight: lighter;
top: 120px;
position:relative;
}
#loadingDiv h2 span:first-child{
color: #fff;
}
#loadingDiv h2 span:nth-child(2) {
color: #fff;
}
#loadingDiv h2 span:nth-child(3) {
color: #fff;
}
#loadingDiv h2 span:nth-child(4) {
color: #fff;
}
#loadingDiv h2 span:nth-child(5) {
color: #fff;
}
#loadingDiv h2 span:nth-child(6) {
color: #fff;
}
#loadingDiv h2 span:nth-child(7) {
color: #fff;
}
#loadingDiv .container {
display: block;
width: 122px;
margin: 200px auto;
animation: fadein 3s;
}
#loadingDiv div {
height: 20px;
width: 20px;
position: absolute;
border-radius: 50%;
background: #000;
display: inline-block;
}
#loadingDiv div:first-child {
animation: move 1s ease-in-out infinite alternate;
background: #fff;
margin-left: 0;
}
#loadingDiv div:nth-child(2) {
animation: move 1s ease-in-out -0.25s infinite alternate;
margin-left: 35px;
background: #fff;
}
#loadingDiv div:nth-child(3) {
animation: move 1s ease-in-out -0.5s infinite alternate;
margin-left: 70px;
background: #fff;
}
#loadingDiv div:nth-child(4) {
animation: move 1s ease-in-out -0.75s infinite alternate;
margin-left: 105px;
background: #fff;
}
@-moz-keyframes move {
0% {
transform: translateY(-10px);
}
100% {
transform: translateY(5px);
}
}
@-webkit-keyframes move {
0% {
transform: translateY(-10px);
}
100% {
transform: translateY(5px);
}
}
@-o-keyframes move {
0% {
transform: translateY(-10px);
}
100% {
transform: translateY(5px);
}
}
@keyframes move {
0% {
transform: translateY(-10px);
}
100% {
transform: translateY(5px);
}
}
@keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
@-webkit-keyframes color {
100%, 0% {
background-color: #fff;
}
10% {
background-color: #FFC107;
}
25% {
background-color: #9C27B0;
}
50% {
background-color: #F44336;
}
80% {
background-color: #CDDC39;
}
}
@keyframes color {
100%, 0% {
background-color: #fff;
}
10% {
background-color: #FFC107;
}
25% {
background-color: #9C27B0;
}
50% {
background-color: #F44336;
}
80% {
background-color: #FF5722;
}
}
#loadingDiv {
position: fixed;
top:0;
left:0;
right:0;
bottom:0;
background-color-dasharray: 1,200;
background-color-dashoffset: 0;
-webkit-animation: dash 6s ease-in-out infinite, color 6s ease-in-out infinite;
animation: dash 6s ease-in-out infinite, color 6s ease-in-out infinite;
background-color-linecap: round;
z-index: 1000;
}
</style>