HTML
2
Вклад в тег
<!doctype html>
HTML5 видео в качестве заднего фона
<link rel="stylesheet" href="style.css" />
<video autoplay loop muted class="bgvideo" id="bgvideo">
<source src="http://m.y.co/video/h264/luxury-yacht-charter-video.mp4" type="video/mp4"></source>
</video>
</!doctype>
body {
background: url('video.png');
background-size: cover;
}
.bgvideo {
position: fixed;
right: 0;
bottom: 0;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -9999;
}