-
Notifications
You must be signed in to change notification settings - Fork 0
/
spa-loader.html
48 lines (42 loc) · 982 Bytes
/
spa-loader.html
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
<div class="spa-loader">
<img class="logo" src="/stardew-perfection-randomizer/icon-tiny.webp" alt="Logo" />
<div class="spinner"><div class="fill"></div></div>
</div>
<style>
.spa-loader {
display: block;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
flex-flow: column nowrap;
align-items: center;
gap: 1rem;
}
.logo {
width: 96px;
height: 96px;
}
.spinner {
width: 160px;
height: 12px;
border-radius: 6px;
overflow: hidden;
}
.fill {
width: 160px;
height: 12px;
background-color: rebeccapurple;
border-radius: 6px;
animation: spinner ease-in-out 1.5s infinite;
}
@keyframes spinner {
from {
transform: translateX(-100%);
}
to {
transform: translate(100%);
}
}
</style>