-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
106 lines (83 loc) · 4.03 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" href="./src/preloader/preloader.css">
<link rel="icon" type="image/svg+xml" href="./assets/logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="https://fonts.cdnfonts.com/css/satoshi" rel="stylesheet">
<link rel="preload" as="style" onload="this.rel = 'stylesheet'" href="https://db.onlinewebfonts.com/c/57b4f5e63d8291afbed1091f97645d52?family=Phonk+Regular+DEMO"
rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- <link rel="preload" fetchpriority="high" as="image" href="./assets/VV-BrAbDelW.png">
<link rel="preload" fetchpriority="high" as="image" href="./assets/homepageevent-rdq2Drb2.png">
<link rel="preload" fetchpriority="high" as="image" href="./assets/theme-Kw6rHKB6.png">
<link rel="preload" fetchpriority="high" as="image" href="./assets/teamshpimg-L7js_O91.png">
<link rel="preload" fetchpriority="high" as="image" href="./assets/synapse-51egIkm-.png">
<link rel="preload" fetchpriority="high" as="image" href="./assets/pronighthpimg-Sq20JaSx.png">
<link rel="preload" fetchpriority="high" as="image" href="./assets/hackout-Axp0lxLx.jpg">
<link rel="preload" fetchpriority="high" as="image" href="./assets/footerimg-zfW4LjY6.png">
<link rel="preload" fetchpriority="high" as="image" href="./assets/eventshpimg-UVlEgEZm.png">
<link rel="preload" fetchpriority="high" as="image" href="./assets/eventpageevent-k2m04ikB.png"> -->
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
<title>Synapse</title>
</head>
<body onload ="hidePreloader()">
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init();
</script>
<div class="preloader">
<div class="logo-container">
<img src="./src/preloader/logo2.png" alt="Logo" class="prelogo">
<div class="progress-bar"></div>
</div>
</div>
<div id="root"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/gsap.min.js"></script>
<script>
const preloader2 = document.getElementById("root");
const main = document.getElementById("root");
main.style.display = "none";
main.style.transition = "display 2s linear";
const tl = gsap.timeline({ defaults: { ease: "power1.out" } });
// Initial state - logo and progress bar hidden
tl.set(".logo-container", { y: 50, opacity: 0 });
tl.set(".progress-bar", { scaleX: 0 });
// Animation for logo sliding in
tl.to(".logo-container", { duration: 1, y: 0, opacity: 1 });
// Animation for spinning logo
tl.to(".prelogo", { duration: 2, rotation: "360", ease: "none", repeat: -1 });
function startLoading() {
let progress = 0;
const progressBar = document.querySelector(".progress-bar");
const interval = setInterval(() => {
progress += 10;
gsap.to(progressBar, { duration: 0.5, scaleX: progress / 100 });
if (progress >= 100) {
clearInterval(interval);
// Animation for smooth exit when progress bar completes
// tl.to(".logo-container", { duration: 1, opacity: 0, y: -50 });
// tl.to(".preloader", { duration: 1, opacity: 0 }, "-=0.5");
}
}, 500);
}
// Start the loading process after the initial animations
tl.call(startLoading);
</script>
<script type="module" src="/src/main.jsx"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.4/gsap.min.js"></script>
<script>
function hidePreloader() {
setTimeout(()=>{
const preloader = document.querySelector(".preloader");
preloader.style.display = "none";
main.style.display = "block";
} , 4000)
// Add your logic to display the main content here
}
</script>
</body>
</html>