forked from bestRenekton/demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.html
51 lines (44 loc) · 1.45 KB
/
circle.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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<style>
.circle_wrapper {width: 200px;height: 200px;margin: 50px auto;position: relative; }
.circle_wrapper .wrapper {width: 100px;height: 200px;position: absolute;top: 0;overflow: hidden;}
.circle_wrapper .right {right: 0;}
.circle_wrapper .left {left: 0;}
.circle_wrapper .circleProgress {width: 160px;height: 160px;border: 20px solid transparent;border-radius: 50%;position: absolute;top: 0;}
.circle_wrapper .rightcircle {border-top: 20px solid #f25f5f;border-right: 20px solid #f25f5f;right: 2px;animation: circleProgressLoad_right 5s linear infinite;}
.circle_wrapper .leftcircle {border-bottom: 20px solid #f25f5f;border-left: 20px solid #f25f5f;left: 0;animation: circleProgressLoad_left 5s linear infinite;}
@keyframes circleProgressLoad_right {
0% {
transform: rotate(45deg);
}
50%,
100% {
transform: rotate(225deg);
}
}
@keyframes circleProgressLoad_left {
0%,
50% {
transform: rotate(45deg);
}
100% {
transform: rotate(225deg);
}
}
</style>
</head>
<body>
<div class="circle_wrapper">
<div class="wrapper right">
<div class="circleProgress rightcircle"></div>
</div>
<div class="wrapper left">
<div class="circleProgress leftcircle"></div>
</div>
</div>
</body>
</html>