-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.scss
78 lines (64 loc) · 1.11 KB
/
style.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
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
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: inherit;
}
html {
font-size: 62.5%;
font-family: sans-serif;
}
body {
box-sizing: border-box;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: #faf9f6;
.container {
display: flex;
& > .wave {
background-color: #4ca1af;
margin-inline: 0.3rem;
width: 0.5rem;
height: 8rem;
border-radius: 10px;
animation: loading 1s linear infinite;
/* Add the delays */
&:nth-child(1) {
animation-delay: 0.1s;
}
&:nth-child(2) {
animation-delay: 0.2s;
}
&:nth-child(3) {
animation-delay: 0.3s;
}
&:nth-child(4) {
animation-delay: 0.4s;
}
&:nth-child(5) {
animation-delay: 0.5s;
}
&:nth-child(6) {
animation-delay: 0.6s;
}
&:nth-child(7) {
animation-delay: 0.7s;
}
}
}
}
// Animation
@keyframes loading {
0% {
transform: scaleY(0);
}
50% {
transform: scaleY(1);
}
100% {
transform: scaleY(0);
}
}