-
Notifications
You must be signed in to change notification settings - Fork 0
/
Animation10(Circle Transition).html
107 lines (89 loc) · 2.18 KB
/
Animation10(Circle Transition).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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Circle Transition</title>
<link rel="stylesheet" href="css/normalize.css">
<style>
body{
overflow: hidden;
}
div {
position: absolute;
width: 560px;
height: 560px;
border-radius: 100%;
left: 0;
right: 0;
bottom: 0;
top: 0;
margin: auto;
}
div::before {
content: "";
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
border-radius: 100%;
border: 25px grey solid;
border-top-color: #e20036;
background: #ffffff;
animation-name: clockanimate;
animation-duration: 3s;
animation-iteration-count: infinite;
}
div > article {
border-top: 25px #e20036 solid;
width: 50%;
height: 0;
left: 50%;
right: 0%;
top: 50%;
bottom: 50%;
transform-origin: left;
margin: auto;
position: absolute;
transform: rotate(-45deg);
animation-name: clockpinanimate;
animation-duration: 3s;
animation-iteration-count: infinite;
}
div > article:before {
content: "";
position: absolute;
width: 45px;
height: 45px;
border-radius: 100%;
background: #e20036;
left: 88%;
top: -35px;
animation-name: clockpinanimate;
animation-duration: 3s;
animation-iteration-count: infinite;
}
@keyframes clockanimate {
from {
}
to {
transform: rotate(360deg);
}
}
@keyframes clockpinanimate {
from {
}
to {
transform: rotate(315deg);
}
}
</style>
</head>
<body>
<div>
<article>
</article>
</div>
</body>
</html>