流动加载中.html
1.22 KB
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
<html>
<head>
<style>
body, html {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
height: 100%;
}
body {
background-repeat: no-repeat;
background-position: center;
background-image: radial-gradient(circle, #989898, #545454);
}
.container {
width: 240px;
margin: 20vh auto 0;
}
.container .warning {
height: 240px;
}
.warning {
background-color:#fff;
}
.loading{
width:240px;
height:4px;
background-image:
linear-gradient(90deg,pink 0em,
purple 3em,
purple 3.1em,
pink 3.2em
);
-webkit-animation: warning-animation 5s infinite linear;
-moz-animation: warning-animation 5s infinite linear;
animation: warning-animation 4s infinite linear;
}
@-webkit-keyframes warning-animation {
0% {
background-position: 0 0;
}
100% {
background-position: 20px 0;
}
}
@-moz-keyframes warning-animation {
0% {
background-position: 0 0;
}
100% {
background-position: 240px 0;
}
}
@keyframes warning-animation {
0% {
background-position: 0% 0%;
}
100% {
background-position: 240px 0;
}
}
</style>
</head>
<body>
<div class="container">
<div class="loading"></div>
<div class="warning">
</div>
</div>
</body>
</html>