-
Notifications
You must be signed in to change notification settings - Fork 105
/
Revolving Dots.html
53 lines (48 loc) · 1.12 KB
/
Revolving Dots.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
<html>
<head>
<title>Revolving Dots | Loaders</title>
<style>
#loader {
position: relative;
width: 45px;
height: 45px;
margin: 60px auto 20px;
animation: fullRotate 3s linear 600ms infinite;
}
@keyframes fullRotate {
to { transform: rotate(720deg); }
}
#loader::before,
#loader::after {
position: absolute;
width: 25px;
height: 25px;
content: "";
background-color: hsl(200, 100%, 50%);
border-radius: 50%;
transform: scale(0);
animation-name: pulseScale;
animation-duration: 2s;
animation-timing-function: ease-in-out;
animation-iteration-count: infinite;
}
@keyframes pulseScale {
from, to { transform: scale(0); }
50% { transform: scale(1); }
}
#loader::before {
top: 0;
right: 0;
animation-delay: 1600ms;
}
#loader::after {
bottom: 0;
left: 0;
animation-delay: 600ms;
}
</style>
</head>
<body>
<div id="loader"></div>
</body>
</html>