Новости
CSS

Тестовый пост

Код:

<div id="videoBackground">

 <video style="object-fit: cover; background-size: cover; width: 100%; height: 100%" pip="false" preload="auto" playsinline autoplay loop muted>

  <source src="https://dl.dropboxusercontent.com/s/oftdmwmiuml5gga/%D0%9D%D0%90%D0%A3%D0%A7%D0%9D%D0%9E-%D0%9F%D0%A0%D0%9E%D0%98%D0%97%D0%92%D0%9E%D0%94%D0%A1%D0%A2%D0%92%D0%95%D0%9D%D0%9D%D0%90%D0%AF%20%D0%9A%D0%9E%D0%9C%D0%9F%D0%90%D0%9D%D0%98%D0%AF%20%D0%9E%D0%9E%D0%9E%20%C2%AB%D0%9A%D0%A3%D0%97%D0%91%D0%90%D0%A1%D0%A1%D0%94%D0%A0%D0%9E%D0%91%D0%9C%D0%90%D0%A8%C2%BB.mp4?dl=0" type="video/mp4">

 </video>

</div>

<script>

$(document).ready(() => {

 let width = $(window).width();

 let height = $(window).height();

 $("#videoBackground")

 .width(width)

 .height(height);

});

$(window).resize(() => {

 let width = $(window).width();

 let height = $(window).height();

 $("#videoBackground")

 .width(width)

 .height(height);

});

</script>


Скриншот кода
Подпись к картинке