forked from tobiasahlin/SpinKit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
12-chasing-circles.html
146 lines (133 loc) · 3.66 KB
/
12-chasing-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
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<html>
<head>
<title>Chasing Circules</title>
<style>
/* ============================================================
CORE
============================================================ */
h1.demo-title {
font-family: "Roboto Slab", serif;
}
/* ============================================================
SPINNER CONTAINER
============================================================ */
.spinner-container {
padding: 20px 0;
}
/* ============================================================
SPINNER - COMMON
============================================================ */
[class*="cmn-spinner"] {
position: relative;
margin: 0 auto;
width: 100px;
height: 100px;
color: rgba(0, 0, 0, 0);
font-size: 0;
text-indent: -99999px;
}
/* ============================================================
CMN-SPINNER__RADAR
============================================================ */
.cmn-spinner__radar {
border-top: solid 1px transparent;
border-right: solid 1px transparent;
border-bottom: solid 1px transparent;
border-left: solid 1px transparent;
-webkit-border-radius: 100%;
-moz-border-radius: 100%;
-ms-border-radius: 100%;
-o-border-radius: 100%;
border-radius: 100%;
-webkit-animation: cmn-spinner--animation__radar 1.5s infinite linear;
-moz-animation: cmn-spinner--animation__radar 1.5s infinite linear;
-ms-animation: cmn-spinner--animation__radar 1.5s infinite linear;
-o-animation: cmn-spinner--animation__radar 1.5s infinite linear;
animation: cmn-spinner--animation__radar 1.5s infinite linear;
}
.cmn-spinner__radar::before, .cmn-spinner__radar::after {
display: block;
position: absolute;
border-right: solid 2px transparent;
border-bottom: solid 2px transparent;
border-left: solid 2px transparent;
-webkit-border-radius: 100%;
-moz-border-radius: 100%;
-ms-border-radius: 100%;
-o-border-radius: 100%;
border-radius: 100%;
content: "";
}
.cmn-spinner__radar::before {
top: 1px;
right: 1px;
bottom: 1px;
left: 1px;
border-top: solid 3px black;
-webkit-animation: cmn-spinner--animation__radar 1.75s infinite linear;
-moz-animation: cmn-spinner--animation__radar 1.75s infinite linear;
-ms-animation: cmn-spinner--animation__radar 1.75s infinite linear;
-o-animation: cmn-spinner--animation__radar 1.75s infinite linear;
animation: cmn-spinner--animation__radar 1.75s infinite linear;
}
.cmn-spinner__radar::after {
top: 1px;
right: 1px;
bottom: 1px;
left: 1px;
border-top: solid 3px black ;
-webkit-animation: cmn-spinner--animation__radar 2s infinite linear;
-moz-animation: cmn-spinner--animation__radar 2s infinite linear;
-ms-animation: cmn-spinner--animation__radar 2s infinite linear;
-o-animation: cmn-spinner--animation__radar 2s infinite linear;
animation: cmn-spinner--animation__radar 2s infinite linear;
}
/* animation keyframes */
@-webkit-keyframes cmn-spinner--animation__radar {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
}
}
@-moz-keyframes cmn-spinner--animation__radar {
from {
-moz-transform: rotate(0deg);
}
to {
-moz-transform: rotate(360deg);
}
}
@-ms-keyframes cmn-spinner--animation__radar {
from {
-ms-transform: rotate(0deg);
}
to {
-ms-transform: rotate(360deg);
}
}
@-o-keyframes cmn-spinner--animation__radar {
from {
-o-transform: rotate(0deg);
}
to {
-o-transform: rotate(360deg);
}
}
@keyframes cmn-spinner--animation__radar {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
</style>
</head>
<body>
<div class="spinner-container">
<div class="cmn-spinner__radar">Loading..
</div>
</body>
</html>