adding CSS
This commit is contained in:
parent
2208b0af0c
commit
45c4cc424d
|
@ -0,0 +1,16 @@
|
||||||
|
#hero {
|
||||||
|
video {
|
||||||
|
position:fixed;
|
||||||
|
right:0;
|
||||||
|
bottom:0;
|
||||||
|
min-width:100%;
|
||||||
|
min-height:100%;
|
||||||
|
width:auto;
|
||||||
|
height:auto;
|
||||||
|
z-index:-100;
|
||||||
|
background:url(../../assets/img/bg/frontpage.jpg) no-repeat;
|
||||||
|
background-size:cover;
|
||||||
|
-webkit-transition:1s opacity;
|
||||||
|
transition:1s opacity;
|
||||||
|
}
|
||||||
|
}
|
11
index.html
11
index.html
|
@ -7,6 +7,12 @@ layout: default
|
||||||
---
|
---
|
||||||
<div id="hero">
|
<div id="hero">
|
||||||
<h1>GREETINGS<br />ROBOT!</h1>
|
<h1>GREETINGS<br />ROBOT!</h1>
|
||||||
|
<button id="video_pause">Pause<br />Video</button>
|
||||||
|
|
||||||
|
<video autoplay loop poster="{{ site.baseurl }}/assets/img/bg/frontpage.jpg" id="bgvid">
|
||||||
|
<source src="{{ site.baseurl }}/assets/vi/0001-0076.webm" type="video/webm">
|
||||||
|
<source src="{{ site.baseurl }}/assets/vi/0001-0076.mp4" type="video/mp4">
|
||||||
|
</video>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
@ -21,12 +27,7 @@ layout: default
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<button id="video_pause">Pause<br />Video</button>
|
|
||||||
|
|
||||||
<video autoplay loop poster="{{ site.baseurl }}/assets/img/bg/frontpage.jpg" id="bgvid">
|
|
||||||
<source src="{{ site.baseurl }}/assets/vi/0001-0076.webm" type="video/webm">
|
|
||||||
<source src="{{ site.baseurl }}/assets/vi/0001-0076.mp4" type="video/mp4">
|
|
||||||
</video>
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue