forked from Shreyaa173/Code-Book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (47 loc) · 1.3 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
<!doctype html>
<html lang="en">
<head>
<!-- ... existing head content ... -->
<style>
#loader-wrapper {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
/* background-color: #100d0d; */
background-image:url(src/assets/bk.jpg) ;
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
}
.loader {
border: 16px solid #f3f3f3;
border-top: 16px solid #250141;
border-radius: 50%;
width: 120px;
height: 120px;
animation: spin 2s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
</head>
<body>
<div id="loader-wrapper">
<div class="loader"></div>
</div>
<div id="root"></div>
<script type="module" src="./src/main.jsx"></script>
<script>
window.addEventListener('load', function() {
setTimeout(function() {
document.getElementById('loader-wrapper').style.display = 'none';
}, 1000); // Hide loader after 1 second (adjust as needed)
});
</script>
</body>
</html>