Ok thanks a lot @mariusjopen for having a look, I'll try to use this code;)
countach
Posts
-
Use a video as page backgroundNov 23, 2017, 1:23 PM -
Use a video as page backgroundNov 22, 2017, 10:40 AMHey @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
I also code custom websites or custom Lay features.
💿 Email me here: 💿
info@laytheme.com
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it