-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
120 lines (117 loc) · 2.89 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>oldPie</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<!--[if lt IE 9]>
<script src="es5-shim.js"></script>
<script src="es5-sham.js"></script>
<script src="html5shiv.js"></script>
<![endif]-->
<style>
.in-round {
position: absolute;
left: 50%;
/*top: -50%;*/
top: 200px;
transform: translate(-50%, -50%) rotate(180deg);
width: 70px;
height: 70px;
border-radius: 50%;
}
/*左边两个半圆*/
.lt-round, .lt-mask {
position: absolute;
width: 35px;
height: 70px;
border-radius: 35px 0 0 35px;
transform-origin: right center;
}
.lt-round {
z-index: 3;
background-color: #bbb;
animation: ltRound 1.5s linear infinite running;
}
.lt-mask {
z-index: 2;
background-color: #eee;
animation: ltMask 1.5s linear infinite running;
}
/*右边两个半圆*/
.rt-round, .rt-mask {
position: absolute;
left: 50%;
width: 35px;
height: 70px;
border-radius: 0 35px 35px 0;
transform-origin: left center;
}
.rt-round {
z-index: 1;
background-color: #bbb;
animation: rtRound 1.5s linear infinite running;
}
.rt-mask {
background-color: #eee;
}
@keyframes ltRound {
0% {
transform: rotate(-360deg);
}
24.9% {
z-index: 3;
}
25% {
z-index: 1;
transform: rotate(-180deg);
}
50% {
transform: rotate(0deg);
}
74.9% {
z-index: 1;
}
75%, 100% {
z-index: 3;
}
}
@keyframes rtRound {
0%, 24.9% {
z-index: 1;
}
25% {
z-index: -3;
}
74.9% {
z-index: -3;
}
75%, 100% {
z-index: 1;
}
}
@keyframes ltMask {
0%, 25%, 50% {
transform: rotate(-360deg);
}
75% {
transform: rotate(-180deg);
}
100% {
transform: rotate(0deg);
}
}
</style>
</head>
<body>
<div id="app"></div>
<script src="vendors.js"></script>
<script src="app.js"></script>
<div class="in-round">
<div class="lt-round"></div>
<div class="lt-mask"></div>
<div class="rt-round"></div>
<div class="rt-mask"></div>
</div>
</body>
</html>