Ok thanks a lot @mariusjopen for having a look, I'll try to use this code;)
C
countach
@countach
Posts
-
Use a video as page background -
Use a video as page backgroundHey @arminunruh
On this website : www.dominique-sierra.fr, I tried the custom code you gave earlier to show a video as background.
In custom CSS & HTML :
<style>
.fixed-bg-video {
position: fixed;
width: 100%;
height: 100vh;
object-fit: cover;
top: 0;
left: 0;
z-index: -1;
}
</style>And in custom HTML at bottom
<video class="fixed-bg-video" preload="" muted="" autoplay="" loop="">
<source src="http://www.nuno-maio.com/wp-content/uploads/2016/10/IMG_6733.m4v" type="video/mp4">
</video>The video doesn’t work on mobile version, there is just an image of the video.
Is there a way to make this work on mobile?Thx dude, laytheme is gold