forked from djpogo/background-video
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
74 lines (74 loc) · 3.22 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>background video</title>
<meta name="description" content="example page for background video js handler">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/bg-video.css">
</head>
<body>
<section class="content-section content-section__half-height">
This is some content, so scrolling is possible…
</section>
<section class="content-section">
<div class="bg-video" style="background-image:url('//static.raoulkramer.de/background-videos/cologne-rain.jpg')">
<video class="bg-video__video" muted playsinline loop data-bg-video>
<source src="//static.raoulkramer.de/background-videos/cologne-rain.mp4" type="video/mp4">
</video>
</div>
<div class="bg-video__content">
<h1>cologne rain</h1>
<p>filmed in 1080p30, scaled to 720p</p>
</div>
</section>
<section class="content-section content-section__half-height">
And more content…
</section>
<section class="content-section content-section__grid">
<div class="bg-video" style="background-image: url('//static.raoulkramer.de/background-videos/bensberg-1.jpg')">
<video class="bg-video__video" muted playsinline loop data-bg-video>
<source src="//static.raoulkramer.de/background-videos/bensberg-1.mp4" type="video/mp4">
</video>
<div class="bg-video__content">
<h1>Bensberg 1</h1>
<p>filmed in 720p120</p>
</div>
</div>
<div class="bg-video" style="background-image: url('//static.raoulkramer.de/background-videos/bensberg-2.jpg')">
<video class="bg-video__video" muted playsinline loop data-bg-video>
<source src="//static.raoulkramer.de/background-videos/bensberg-2.mp4" type="video/mp4">
</video>
<div class="bg-video__content">
<h1>Bensberg 2</h1>
<p>filmed in 720p120</p>
</div>
</div>
<div class="bg-video" style="background-image: url('//static.raoulkramer.de/background-videos/bensberg-3.jpg')">
<video class="bg-video__video" muted playsinline loop data-bg-video>
<source src="//static.raoulkramer.de/background-videos/bensberg-3.mp4" type="video/mp4">
</video>
<div class="bg-video__content">
<h1>Bensberg 3</h1>
<p>filmed in 720p120</p>
</div>
</div>
<div class="bg-video" style="background-image: url('//static.raoulkramer.de/background-videos/hopevalley-1.jpg')">
<video class="bg-video__video" muted playsinline loop data-bg-video>
<source src="//static.raoulkramer.de/background-videos/hopevalley-1.mp4" type="video/mp4">
</video>
<div class="bg-video__content">
<h1>Hopevalley 1</h1>
<p>filmed in 720p120</p>
</div>
</div>
</section>
<section class="content-section content-section__half-height">
And more content…
</section>
<script type="text/javascript" src="js/bg-video.js"></script>
<script type="text/javascript" src="js/app.js"></script>
</body>
</html>