adding CSS

This commit is contained in:
Set Sakrecoer 2019-04-28 21:08:49 +02:00
parent 2208b0af0c
commit 45c4cc424d
2 changed files with 22 additions and 5 deletions

View file

@ -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;
}
}

View file

@ -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">