-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (50 loc) · 1.28 KB
/
index.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
49
50
51
52
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
<style>
#splash-screen {
position: fixed;
top: 50%;
left: 50%;
background: white;
display: flex;
height: 100%;
width: 100%;
transform: translate(-50%, -50%);
align-items: center;
justify-content: center;
z-index: 9999;
opacity: 1;
transition: all 15s linear;
overflow: hidden;
}
#splash-screen.remove {
animation: fadeout 0.7s forwards;
z-index: 0;
}
@keyframes fadeout {
to {
opacity: 0;
visibility: hidden;
}
}
</style>
</head>
<body>
<div id="root"></div>
<div id="splash-screen">
<h1 class="light">Authyr</h1>
</div>
<script type="module" src="/src/main.jsx"></script>
<script>
const rootEl = document.querySelector('#root');
new MutationObserver(() => {
document.querySelector('#splash-screen')?.classList.add('remove');
}).observe(rootEl, { childList: true });
</script>
</body>
</html>