-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvideo-background.html
More file actions
50 lines (46 loc) · 1.21 KB
/
Copy pathvideo-background.html
File metadata and controls
50 lines (46 loc) · 1.21 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
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Background Video</title>
<style>
.container {
width: 80%;
background-color: #fff;
margin-left: auto;
margin-right: auto;
border: solid thick #EDEE6A;
border-radius: 15px;
}
video {
width: 100%;
height: 100%;
}
#videoBG {
position: absolute; /*
bottom: 0px;
right: 0px; */
top: 0;
left: 0;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -1000;
overflow: hidden;
}
</style>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<video id="videoBG" preload="auto" autoplay loop muted volume="0">
<source src="images/video.mov">
</video>
<div class="container">
<h1>Testing Video Backgrounds</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</div>
</body>
</html>