-
Notifications
You must be signed in to change notification settings - Fork 0
/
video.html
59 lines (58 loc) · 1.21 KB
/
video.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Cancun</title>
<style>
body, h1 {
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
}
.banner {
position: absolute;
width: 100%;
height: 100vh;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
}
.banner video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.banner h1 {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
font-size: 26vw;
text-align: center;
text-transform: uppercase;
letter-spacing: -4vw;
background-color: #fff;
color: #000;
line-height: 100vh;
mix-blend-mode: screen;
}
</style>
</head>
<body>
<div class="banner">
<!-- Read about playsinline at https://webkit.org/blog/6784/new-video-policies-for-ios/ -->
<video autoplay playsinline muted loop>
<source src="./cancun2.mp4" type="video/mp4" />
</video>
<h1>Cancun</h1>
<script>
document.querySelector('video').playbackRate = 0.25;
</script>
</div>
</body>
</html>