fix video

This commit is contained in:
sakrecoer 2020-08-10 12:47:49 +02:00
parent 2759e9cb27
commit 7062f902a9
4 changed files with 27 additions and 10 deletions

View file

@ -4,17 +4,24 @@
height: 100%;
width: 100%;
overflow: hidden;
z-index: -100;
background: #fff;
z-index: 0;
background: _palette(bg);
top: 0;
left: 0;
right: 0;
z-index: 0;
}
.fullscreen-bg__video {
background: #fff;
position: relative;
left: 50%;
top:50%;
transform: translate(-50%, -50%);
width: 100%;
object-fit: cover;
width: 100vw;
height: 100vh;
position: absolute;
top: 0;
left: 0;
}
#myVideo {
position: absolute;
@ -22,4 +29,5 @@
bottom: 0;
min-width: 100%;
min-height: 100%;
}