Skip to content

Commit ad0efc3

Browse files
goofy intro
1 parent 2c5788f commit ad0efc3

1 file changed

Lines changed: 47 additions & 2 deletions

File tree

index.html

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,10 +571,43 @@
571571
0%, 100% { transform: translateY(0); }
572572
50% { transform: translateY(5px); }
573573
}
574+
/* Page Loader */
575+
#page-loader {
576+
position: fixed;
577+
top: -10;
578+
left: 0;
579+
width: 100%;
580+
height: 100%;
581+
background: var(--bg-primary);
582+
display: flex;
583+
align-items: center;
584+
justify-content: center;
585+
z-index: 99999;
586+
}
587+
588+
.loader-bar {
589+
width: 0;
590+
height: 5px;
591+
background: var(--accent);
592+
border-radius: 3px;
593+
animation: loading 2s forwards;
594+
}
595+
596+
@keyframes loading {
597+
0% { width: 0; }
598+
50% { width: 50%; }
599+
80% { width: 80%; }
600+
100% { width: 100%; }
601+
}
574602

575603
</style>
576604
</head>
577605
<body>
606+
<!-- Page Loader -->
607+
<div id="page-loader">
608+
<div class="loader-bar"></div>
609+
</div>
610+
578611
<!-- Scroll Progress Bar -->
579612
<div class="scroll-progress"></div>
580613

@@ -641,7 +674,7 @@ <h2 class="section-title">Development Status</h2>
641674
<div class="stat-label">Proxy Browsers</div>
642675
</div>
643676
<div class="stat-item">
644-
<div class="stat-number"></div>
677+
<div class="stat-number"><i class="fa-solid fa-infinity"></i></div>
645678
<div class="stat-label">Games, Apps, and Themes</div>
646679
</div>
647680
<div class="stat-item">
@@ -892,7 +925,6 @@ <h4>Notes*</h4>
892925
scrollProgress.style.width = scrollPercent + '%';
893926
});
894927

895-
// Back to Top Button
896928
const backToTop = document.querySelector('.back-to-top');
897929

898930
window.addEventListener('scroll', () => {
@@ -913,6 +945,19 @@ <h4>Notes*</h4>
913945
window.onbeforeunload = function () {
914946
window.scrollTo(0, 0);
915947
};
948+
949+
window.addEventListener('load', () => {
950+
const loader = document.getElementById('page-loader');
951+
952+
loader.style.transition = 'opacity 1s ease';
953+
loader.style.opacity = '0';
954+
955+
setTimeout(() => {
956+
loader.style.display = 'none';
957+
}, 1000);
958+
});
959+
960+
916961
</script>
917962
</body>
918963
</html>

0 commit comments

Comments
 (0)