-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
136 lines (109 loc) · 2.7 KB
/
test.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
128
129
130
131
132
133
134
135
136
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
/* Global Styles */
@import url("//fonts.googleapis.com/css?family=Poiret+One|Josefin+Sans");
@import url("//www.weloveiconfonts.com/api/?family=iconicfill");
[class*="iconicfill-"]::before { font-family:"iconicfill", sans-serif; }
html,body {
color:#fddaec;
font-family:"Josefin Sans", sans-serif;
font-size:100%;
height:100%;
line-height:1.45;
}
/* Video Overlay */
#overlay {
background-color:rgba(0,0,0,.65);
height:100%;
left:0;
position:relative;
top:0;
transition:background-color 300ms ease;
width:100%;
}
.fade { background-color:rgba(0,0,0,.85) !important; }
/* Hero Video + Fallback */
#hero-vid {
backface-visibility:hidden;
background:url("http://www.markhillard.com/sandbox/media/polina.jpg") no-repeat scroll 0 0 #000;
background-size:cover;
bottom:0;
height:auto;
min-height:100%;
min-width:100%;
perspective:1000;
position:fixed;
right:0;
width:auto;
z-index:-1;
}
#hero-pic {
display:block;
height:auto;
width:100%;
}
#state {
background-color:rgba(0,0,0,.5);
bottom:0;
cursor:pointer;
font-size:2.25em;
left:0;
padding:0.55em 1.05em 0.35em 1em;
position:absolute;
}
/* Content Styles */
#title {
backface-visibility:hidden;
left:0;
perspective:1000;
position:fixed;
width:100%;
}
#title h1 {
background-color:rgba(0,0,0,.5);
font-family:"Poiret One", sans-serif;
font-size:2.5em;
padding:.5em .725em;
}
#content {
background-color:#151515;
padding:2em;
position:relative;
z-index:1;
}
#content p {
font-size:1.25em;
letter-spacing:.02em;
margin-bottom:1.3em;
}
/* Media Queries */
@media only screen and (max-width:768px) {
#overlay { height:auto; }
}
/* Visibility Helpers */
@media only screen and (min-width:769px) {
.visible-mobile,.visible-tablet,.hidden-desktop { display:none !important; }
}
@media only screen and (min-width:480px) and (max-width:768px) {
.visible-mobile,.hidden-tablet,.visible-desktop { display:none !important; }
}
@media only screen and (max-width:479px) {
.hidden-mobile,.visible-tablet,.visible-desktop { display:none !important; }
}
</style>
</head>
<body>
<div id="overlay">
<div id="title"><h1>Parallaxelicious</h1></div>
<video class="visible-desktop" id="hero-vid" poster="http://www.markhillard.com/sandbox/media/polina.jpg" autoplay loop muted>
<source type="video/webm" src="http://www.markhillard.com/sandbox/media/polina.webm"></source>
<source type="video/mp4" src="http://www.markhillard.com/sandbox/media/polina.mp4"></source>
</video>
<div id="state" class="visible-desktop"><span class="iconicfill-pause"></span></div>
<img id="hero-pic" class="hidden-desktop" src="http://www.markhillard.com/sandbox/media/polina.jpg" alt="">
</div>
</body>
</html>