I am using FullPage JS and Would like to implement a fixed a video background with scrolling content. I have the video set to section 1 however when scrolling it shifts to a white a background. An help would be great!
#fullpage {
background-attachment: fixed;
background-repeat: no-repeat;
}
<div id="fullpage">
<video autoplay loop muted id="myVideo">
<source src="video/empty.mp4" type="video/mp4">
<source src="video/empty.webm" type="video/webm">
</video>
</div>
#myVideo{
position: fixed;
right: 0;
bottom: 0;
top:0;
right:0;
width: 100%;
height: 100%;
background-size: 100% 100%;
background-color: black;
background-image: /* our video */;
background-position: center ;
background-size: cover;
object-fit: cover;
z-index: -1;
overflow: hidden
}