Skip to content

Instantly share code, notes, and snippets.

@thiagotmendes
Created November 20, 2019 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thiagotmendes/ae562eea5342c908a772fed0d11064dc to your computer and use it in GitHub Desktop.
Save thiagotmendes/ae562eea5342c908a772fed0d11064dc to your computer and use it in GitHub Desktop.
.fullscreen-bg
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: hidden;
z-index: -100;
&__video
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
@media (min-aspect-ratio: 16/9)
width: 100%;
//height: auto;
height: 300%;
top: -100%;
@media (max-aspect-ratio: 16/9)
//width: auto;
height: 100%;
width: 300%;
left: -100%;
// video banner
.video__banner
position: fixed
background-color: rgba(black, .6)
width: 100%
height: 100%
top: 0px
left: 0px
display: none
z-index: 100
justify-content: center
align-items: center
animation: fadein 1s
.container
position: relative
display: block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment