-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html.html
140 lines (126 loc) · 4.2 KB
/
index.html.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Video Background with Loading Progress</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<style>
/* Custom CSS to style the video background and overlay */
body, html {
height: 100%;
margin: 0;
overflow: hidden; /* Hide horizontal scrollbar */
}
#video-background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1; /* Place the video below other content */
}
video {
object-fit: cover;
width: 100%;
height: 100%;
}
/* Dark overlay with animation */
#video-background::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.1); /* Adjust the opacity as needed */
z-index: 1; /* Place the overlay above the video */
animation: dissolve 5s ease-out forwards; /* Dissolve animation */
}
/* Dissolve animation keyframes */
@keyframes dissolve {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
/* Centered heading with contrasting color */
.content {
text-align: center;
padding: 100px;
color: #F32626 ; /* Text color */
z-index: 2; /* Place the content above the overlay */
position: absolute; /* Ensure content is positioned above the overlay */
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
/* Italic heading text */
.heading {
font-style: italic;
font-weight: bold;
}
/* Loading progress bar */
.progress-bar-container {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
background-color: #00FF5C; /* Text color */
color: #fff; /* Text color */
padding: 5px 0;
text-align: center;
display: none; /* Initially hidden */
}
.progress-bar {
width: 0;
height: 4px;
background-color: #FFFFFF; /* Progress bar color */
animation: load 6s linear forwards; /* Loading animation */
}
/* Loading animation keyframes */
@keyframes load {
0% {
width: 0;
}
100% {
width: 100%;
}
}
</style>
</head>
<body>
<!-- Video Background -->
<div id="video-background">
<video autoplay loop muted>
<source src="Main.mp4" type="video/mp4"> <!-- Replace 'your-video.mp4' with your video file path -->
Your browser does not support the video tag.
</video>
</div>
<!-- Content -->
<div class="content">
<h1 class="display-3 heading">Welcome to Bharat Genome Database</h1>
</div>
<!-- Loading Progress Bar -->
<div class="progress-bar-container">
<div class="progress-bar"></div>
</div>
<!-- Bootstrap JavaScript and jQuery -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<!-- JavaScript to show loading progress bar and redirect after animation -->
<script>
// Show loading progress bar
setTimeout(function() {
$(".progress-bar-container").show();
}, 0);
// Redirect after animation completes
setTimeout(function() {
window.location.href = './BGDB/BGDB_HOME.html'; // Replace with the URL you want to redirect to
}, 6000); // 6000 milliseconds (6 seconds) delay
</script>
</body>
</html>