Created
December 13, 2014 21:52
-
-
Save ladislavsulc/3cf14c6f7a3cbb5a7da2 to your computer and use it in GitHub Desktop.
Stretch HTML5 Video 100% height and width - in a relative container - crossbrowser -> just adjust the absolute position to where you want to have the camera
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.bg-video { | |
position: absolute; | |
left: 0; | |
right: 0; | |
bottom: 0; | |
min-width: 100%; | |
/*min-height: 100%;*/ | |
/*width: 100%;*/ | |
/*height: 100%;*/ | |
z-index: 99; | |
background-position: left center; | |
@include background-size(cover); | |
object-fit: cover; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment