-
Notifications
You must be signed in to change notification settings - Fork 1
/
loading.otp.html
102 lines (100 loc) · 1.7 KB
/
loading.otp.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
<style>
.loading{
position:fixed;
z-index:200;
width:100%;
height:100%;
top:0;
left:0;
margin:0 auto;
background-color:#494949;
}
@keyframes loadin{
0% {
opacity:0;
}
100%{
z-index:200;
opacity:1;
}
}
@keyframes loadout{
0% {
opacity:1;
}
100%{
z-index:-1;
opacity:0;
}
}
@keyframes jumping{
0% {
transform:translate(-50%,-50%);
animation-timing-function: ease-out;
}
20%{
transform:translate(-50%,-100%) scaleX(80%);
animation-timing-function: linear;
}
50%{
transform:translate(-50%,-135%) scaleX(100%);
animation-timing-function: linear;
}
55%{
transform:translate(-50%,-140%) scaleX(103%);
animation-timing-function: linear;
}
70%{
transform:translate(-50%,-135%) scaleX(95%);
animation-timing-function: linear;
}
80%{
transform:translate(-50%,-115%);
animation-timing-function: ease-in;
}
90%{
transform:translate(-50%,-50%);
animation-timing-function: ease-out;
}
95%{
transform:translate(-50%,-50%) scale(110%,80%);
animation-timing-function: ease-in;
}
100%{
transform:translate(-50%,-50%);
}
}
.dot{
position:fixed;
margin:0 auto;
left:50%;
top:50%;
transform:translate(-50%,-50%);
display: block;
width:1.8em;
height:1.8em;
background-color:#fff;
border-radius:50%;
animation:jumping 1s ease infinite;
}
.loadshow{
animation:loadin 0.2s ease forwards;
}
.loadhide{
animation:loadout 0.2s ease forwards;
}
</style>
<div class='loading' id='loading'><span class="dot"></span></div>
<loadset style='display:none'>
{
"animations": {
"in": {
"id:loading": "loadshow"
},
"out": {
"id:loading": "loadhide"
}
},
"listening":"id:loading"
}
</loadset>