Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
109 lines (99 loc) · 3.29 KB
/
Copy pathindex.html
File metadata and controls
109 lines (99 loc) · 3.29 KB
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
107
108
109
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="title" content="CustomBAR" />
<meta
name="description"
content="CustomBAR: Dynamic progress bars, Rumble API, community skins, and volunteer-driven enhancements!"
/>
<meta
name="keywords"
content="CustomBAR, progress bar, customization, animations, Rumble API, community skins, stable releases, streaming, volunteer, free open-source"
/>
<title>CustomBAR</title>
<!-- Font Awesome Library -->
<script
src="https://kit.fontawesome.com/739e3ae0dc.js"
crossorigin="anonymous"
></script>
<style>
/* Basic styles for the loading screen */
body {
margin: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #141023; /* Background color */
color: #ffffff; /* Text color */
font-family: Arial, sans-serif;
font-size: 24px;
text-align: center;
}
.welcome-text {
margin-bottom: 20px;
}
.progress-bar {
padding: 10px;
width: 50%;
height: 20px;
background-color: transparent; /* Progress bar background */
border-radius: 10px;
overflow: hidden;
margin: 20px;
border: 3px solid white;
border-radius: 50px;
}
.bar-fill {
width: 0;
height: 100%;
background-color: #ffffff; /* Progress bar color */
box-shadow: 0px 0px 20px 5px rgb(252, 228, 93);
transition: width 5s ease; /* Extend the transition duration */
border-radius: 50px;
}
.fade-out {
animation: fadeOut 4s forwards; /* Fade out animation */
}
@keyframes fadeOut {
to {
opacity: 0;
visibility: hidden;
}
}
</style>
</head>
<body>
<div class="welcome-text">
<p>Welcome! BARian You're almost there. Just a moment...</p>
</div>
<div class="progress-bar">
<div class="bar-fill"></div>
</div>
<script>
// Simulate loading and progress bar animation
const progressFill = document.querySelector(".bar-fill");
const welcomeText = document.querySelector(".welcome-text");
let width = 1;
const interval = setInterval(() => {
if (width >= 50) {
clearInterval(interval);
welcomeText.style.display = "block"; // Show the welcome message
progressFill.style.width = "100%"; // Fill the progress bar completely
setTimeout(() => {
document.body.classList.add("fade-out"); // Fade out the message and redirect
setTimeout(() => {
window.location.href = "main.html"; // Replace 'main.html' with your actual main page
}, 2000); // Delay for the fade-out animation duration
}, 2000); // Delay before fading out
} else {
width++;
progressFill.style.width = width + "%";
}
}, 100); // Adjust the interval for the progress bar animation
</script>
</body>
</html>