-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex8.html
More file actions
185 lines (162 loc) · 5.55 KB
/
Copy pathindex8.html
File metadata and controls
185 lines (162 loc) · 5.55 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
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AIV | GitHub Portfolio</title>
<style>
:root {
--accent: #00f2ff;
--glitch-red: rgba(255, 0, 128, 0.8);
--glitch-blue: rgba(0, 255, 255, 0.8);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body, html {
height: 100%;
background-color: #050505; /* Fallback color */
color: white;
font-family: 'Segoe UI', sans-serif;
overflow: hidden;
}
/* Video Background Container */
.video-wrapper {
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
z-index: -1;
background: radial-gradient(circle, #111 0%, #000 100%);
}
#bg-video {
width: 100%; height: 100%;
object-fit: cover;
filter: brightness(0.4) contrast(1.2);
}
.container {
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}
/* GLITCH LOGO EFFECT */
.glitch-container {
position: relative;
display: inline-block;
}
.typewriter-title {
font-size: 5rem;
letter-spacing: 15px;
text-transform: uppercase;
font-weight: 900;
position: relative;
cursor: pointer;
}
/* Glitch layers on hover */
.typewriter-title:hover::before,
.typewriter-title:hover::after {
content: "AIV";
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
background: transparent;
}
.typewriter-title:hover::before {
left: 2px;
text-shadow: -2px 0 var(--glitch-red);
clip: rect(44px, 450px, 56px, 0);
animation: glitch-anim 5s infinite linear alternate-reverse;
}
.typewriter-title:hover::after {
left: -2px;
text-shadow: -2px 0 var(--glitch-blue);
clip: rect(10px, 450px, 30px, 0);
animation: glitch-anim2 5s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
0% { clip: rect(31px, 9999px, 94px, 0); }
20% { clip: rect(62px, 9999px, 42px, 0); }
/* ... more keyframes ... */
100% { clip: rect(89px, 9999px, 98px, 0); }
}
.typewriter-sub {
font-size: 1rem;
letter-spacing: 5px;
color: var(--accent);
margin-bottom: 50px;
min-height: 1.5em;
text-transform: uppercase;
opacity: 0.8;
}
/* POPUP BUTTONS */
.menu { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.menu-item {
opacity: 0;
transform: translateY(-40px);
animation: dropIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes dropIn { to { opacity: 1; transform: translateY(0); } }
.btn {
text-decoration: none;
color: white;
padding: 15px 50px;
border: 1px solid rgba(255, 255, 255, 0.2);
background: rgba(255, 255, 255, 0.03);
backdrop-filter: blur(10px);
display: inline-block;
transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
width: 280px;
letter-spacing: 2px;
}
.btn:hover {
background: var(--accent);
color: black;
border-color: var(--accent);
box-shadow: 0 0 20px var(--accent);
transform: scale(1.05);
}
/* Staggered Delay */
.menu-item:nth-child(1) { animation-delay: 1.8s; }
.menu-item:nth-child(2) { animation-delay: 2.0s; }
.menu-item:nth-child(3) { animation-delay: 2.2s; }
</style>
</head>
<body>
<div class="video-wrapper">
<video autoplay muted loop playsinline id="bg-video">
<source src="assets/backgrnd.mp4" type="video/mp4">
</video>
</div>
<div class="container">
<div class="glitch-container">
<h1 class="typewriter-title" id="main-title"></h1>
</div>
<p class="typewriter-sub" id="sub-title"></p>
<nav>
<ul class="menu">
<li class="menu-item"><a href="#" class="btn">SATELLITE SYSTEMS</a></li>
<li class="menu-item"><a href="#" class="btn">ORBITAL VECTORS</a></li>
<li class="menu-item"><a href="#" class="btn" style="border-color: var(--accent);">GITHUB SOURCE</a></li>
</ul>
</nav>
</div>
<script>
function typeWriter(elementId, text, speed, delay) {
setTimeout(() => {
let i = 0;
const element = document.getElementById(elementId);
function type() {
if (i < text.length) {
element.innerHTML += text.charAt(i);
i++;
setTimeout(type, speed);assets/backgrnd.mp4" type="video/mp4
}
}
type();
}, delay);
}
typeWriter("main-title", "AIV", 150, 200);
typeWriter("sub-title", "Advancing Global Connectivity", 50, 1000);
</script>
</body>
</html>