-
-
Notifications
You must be signed in to change notification settings - Fork 320
/
RingSpinner.module.css
61 lines (52 loc) · 1019 Bytes
/
RingSpinner.module.css
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
/* Original styles by https://dmitrymorozoff.github.io/react-spinners-kit/ */
.wrapper {
width: 30px;
height: 30px;
}
.circle {
position: relative;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
max-width: 100%;
height: 100%;
}
.circle::before, .circle::after {
width: 100%;
height: 100%;
content: "";
position: absolute;
border-radius: 50%;
animation-duration: 2s;
animation-iteration-count: infinite;
animation-timing-function: ease-in-out;
}
.circle::before {
box-shadow: inset 0 0 0 3px #00ff89;
animation-name: firstPulse;
}
.circle::after {
box-shadow: 0 0 0 0 #00ff89;
animation-name: secondPulse;
}
@keyframes firstPulse {
0% {
box-shadow: inset 0 0 0 3px #00ff89;
opacity: 1;
}
50%, 100% {
box-shadow: inset 0 0 0 0 #00ff89;
opacity: 0
}
}
@keyframes secondPulse {
0%, 50% {
box-shadow: inset 0 0 0 0 #00ff89;
opacity: 0;
}
100% {
box-shadow: inset 0 0 0 3px #00ff89;
opacity: 1
}
}