-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
91 lines (83 loc) · 1.59 KB
/
style.css
File metadata and controls
91 lines (83 loc) · 1.59 KB
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
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700;900&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Roboto", sans-serif;
}
section {
min-height: 100vh;
width: 100%;
background-color: rgb(22, 22, 22);
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
.title {
color: salmon;
position: absolute;
top: 100px;
font-weight: 700;
font-size: 4rem;
}
.container {
display: flex;
justify-content: center;
align-items: center;
margin: 0 50px;
width: 400px;
height: 400px;
background-color: salmon;
border-radius: 10px;
}
.container .dot {
height: 24px;
width: 24px;
background-color: whitesmoke;
margin: 0 8px;
display: inline-block;
border-radius: 50px;
}
.container:nth-child(2) .dot {
animation: dotLoaders 0.9s linear infinite forwards;
}
.container:nth-child(3) .dot {
animation: dotLoaders2 1.5s linear infinite forwards;
}
.container .dot.dot-1 {
animation-delay: 0.25s;
}
.container .dot.dot-2 {
animation-delay: 0.5s;
}
.container .dot.dot-3 {
animation-delay: 0.75s;
}
/* jumping animation */
@keyframes dotLoaders {
0% {
transform: translateY(0px);
}
50% {
transform: translateY(-20px);
}
100% {
transform: translateY(0px);
}
}
/* growing-fading animation */
@keyframes dotLoaders2 {
0% {
background-color: rgba(255, 255, 255, 0.137);
transform: scale(0.8);
}
50% {
background-color: white;
transform: scale(1.5);
}
100% {
background-color: rgba(255, 255, 255, 0.137);
transform: scale(0.8);
}
}