-
Notifications
You must be signed in to change notification settings - Fork 0
/
loading.css
87 lines (81 loc) · 1.67 KB
/
loading.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
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
html,
body,
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: #252629;
width: 100vw;
min-height: 100vh;
position: fixed;
display: flex;
justify-content: center;
align-items: center;
}
.circle {
width: 200px;
height: 200px;
border: 5px solid rgba(42, 192, 132, 0.08);
border-radius: 50%;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
align-items: flex-end;
position: relative;
}
.inner {
width: 100%;
height: 0px;
background-color: rgba(42, 192, 132, 0.1);
border-top-right-radius: 50%;
border-top-left-radius: 50%;
}
.percent-container {
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
color: #fff;
font-weight: lighter;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 2rem;
user-select: none;
}
.percent-container .percent {
font-size: 1.1rem;
}
@keyframes startLoading {
0% {
height: 0px;
background-color: rgba(42, 192, 132, 0.1);
}
100% {
height: 200px;
background-color: rgba(42, 192, 132, 0.3);
}
}
@keyframes changeOpacityBorder {
0% {
border-color: rgba(42, 192, 132, 0.08);
}
100% {
border-color: rgba(42, 192, 132, 0.7);
}
}
.startLoading {
animation-name: startLoading;
animation-iteration-count: 1;
animation-fill-mode: forwards;
animation-timing-function: linear;
animation-duration: 4s;
}
.borderOpacity {
animation-name: changeOpacityBorder;
animation-iteration-count: 1;
animation-fill-mode: forwards;
animation-timing-function: linear;
animation-duration: 2s;
}