video cover

This commit is contained in:
Arvind Tiwari 2017-12-07 23:40:14 +05:30
commit 13d3419cd5
2 changed files with 38 additions and 2 deletions

View file

@ -256,6 +256,31 @@
background-position: center;
}
.bg_vid {
position: absolute;
top: 0;
left: 0;
z-index: -1;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
}
@media (min-aspect-ratio: 16/9) {
.bg_vid > video {
width: 100%;
height: auto;
}
}
@media (max-aspect-ratio: 16/9) {
.bg_vid > video {
width: auto;
height: 100%;
}
}
.timeline>li .timeline-panel {
display: flex;
flex-direction: column;