-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
127 lines (111 loc) · 2.98 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ignitia 2K24</title>
<style>
body {
margin: 0;
padding: 0;
overflow: hidden;
background-image: url(background.jpg);
background-size: cover;
}
.reveal {
width: 100%;
height: 100vh;
position: relative;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}
.reveal-text {
position: absolute;
color: white;
font-size: 50px;
white-space: nowrap;
will-change: transform;
}
.reveal-text img{
padding-left: 10%;
width: 400px;
height: auto;
}
.reveal-text .text
{
font-size: 30px;
font-weight: 300;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
color:rgb(205, 243, 243);
text-align: center;
margin-top: 30pxpx;
margin-left: 300px;
animation: flash 3s infinite;
}
@keyframes textAppear {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes flash {
0% {opacity: 0;}
50% {opacity: 1;}
100% {opacity: 0;}
}
.reveal-bg {
width: 100%;
height: 100%;
position: absolute;
background-color: black;
will-change: transform;
}
.reveal-bg-video {
width: 100%;
height: 100%;
position: absolute;
background-color: black;
will-change: transform;
object-fit: cover;
}
</style>
</head>
<body>
<div class="reveal">
<video class="reveal-bg-video" src="bg-vid.mp4" autoplay muted loop></video>
<div class="reveal-text">
<img src="logo.png" alt="">
<div class="text">Coming Soon...</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.10.4/gsap.min.js"></script>
<script>
const revealText = document.querySelector('.reveal-text');
const revealBg = document.querySelector('.reveal-bg-video');
gsap.fromTo(
revealBg,
{ width: '0%' },
{
width: '100%',
duration: 5,
ease: 'expo.inOut',
stagger: 1,
}
);
gsap.fromTo(
revealText,
{ x: '-100%' },
{
x: '0%',
duration: 5,
ease: 'expo.inOut',
stagger: 0.5,
}
);
</script>
</body>
</html>