-
Notifications
You must be signed in to change notification settings - Fork 112
/
d-loading.html
43 lines (42 loc) · 939 Bytes
/
d-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
<template id="d-loading">
<style>
.loader {
width: 2em;
height: 2em;
margin: -0.2em 0 0 -0.2em;
border: 0.3em solid rgba(0, 0, 0, 0.1);
border-left: 0.3em solid #555;
border-radius: 50%;
transform: translateZ(0);
transition: all 500ms ease;
animation: loader 300ms infinite linear;
}
.curtain {
position: absolute;
top: 0;
left: 0;
z-index: 99;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
overflow: hidden;
width: 100%;
height: 100%;
/* background-color: white; */
background: #f5f5d5;
transition: all 600ms ease;
}
@keyframes loader {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
<div class="curtain">
<div class="loader"></div>
</div>
</template>