Full screen video with link
by mowglisanu
HTML
<video autoplay loop poster="polina.jpg" id="bgvid">
<source src="http://demosthenes.info/assets/videos/polina.webm" type="video/webm">
<source src="http://demosthenes.info/assets/videos/polina.mp4" type="video/mp4">
</video>
<div><a href="http://cnn.com">Go to CNN</a></div>
CSS
video#bgvid {
position: fixed;
top: 50%;
left: 50%;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -100;
-webkit-transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
background: url(polina.jpg) no-repeat;
background-size: cover;
}
div{
display: flex;
align-items: center;
justify-content: center;
height: 100%;
width: 100%;
position: absolute;
}