-
Notifications
You must be signed in to change notification settings - Fork 105
/
Revolving Circles.html
58 lines (53 loc) · 1.19 KB
/
Revolving Circles.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
<html>
<head>
<title>Revolving Circles | Loaders</title>
<style>
#loader,
#loader::before,
#loader::after {
border: solid 2px transparent;
border-radius: 100%;
animation-name: fullRotate;
animation-duration: 2s;
animation-timing-function: linear;
animation-delay: -2s;
animation-iteration-count: infinite;
}
#loader {
position: relative;
width: 100px;
height: 100px;
margin: 0 auto;
border-top-color: blue;
}
#loader::before,
#loader::after {
position: absolute;
content: "";
}
#loader::before {
top: 15px;
right: 15px;
bottom: 15px;
left: 15px;
border-top-color: red;
animation-duration: 6s;
}
#loader::after {
top: 30px;
right: 30px;
bottom: 30px;
left: 30px;
border-top-color: green;
animation-duration: 12s;
}
@keyframes fullRotate {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
</style>
</head>
<body>
<div id="loader"></div>
</body>
</html>