-
Notifications
You must be signed in to change notification settings - Fork 0
/
_spinkit.scss
49 lines (42 loc) · 904 Bytes
/
_spinkit.scss
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
//
// SpinKit: Simple loading spinners animated with CSS
// source: https://github.com/tobiasahlin/SpinKit
// --------------------------------------------------
:root {
--sk-size: 40px;
--sk-color: #333;
}
// Flow
//
// <div class="sk-flow">
// <div class="sk-flow-dot"></div>
// <div class="sk-flow-dot"></div>
// <div class="sk-flow-dot"></div>
// </div>
.sk-flow {
width: calc(var(--sk-size) * 1.3);
height: calc(var(--sk-size) * 1.3);
display: flex;
justify-content: space-between;
}
.sk-flow-dot {
width: 25%;
height: 25%;
background-color: var(--sk-color);
border-radius: 50%;
animation: sk-flow 1.4s cubic-bezier(0.455, 0.03, 0.515, 0.955) 0s infinite both;
}
.sk-flow-dot:nth-child(1) {
animation-delay: -0.30s;
}
.sk-flow-dot:nth-child(2) {
animation-delay: -0.15s;
}
@keyframes sk-flow {
0%, 80%, 100% {
transform: scale(0.3);
}
40% {
transform: scale(1);
}
}