Skip to content

Instantly share code, notes, and snippets.

@guillaumecabanel
Created December 7, 2017 12:49
Show Gist options
  • Save guillaumecabanel/639119980d7cbb058dcc55e87b6d6ed6 to your computer and use it in GitHub Desktop.
Save guillaumecabanel/639119980d7cbb058dcc55e87b6d6ed6 to your computer and use it in GitHub Desktop.
Custom color filter on embeded Youtube video
<div class="video-wrapper"></div>
<iframe class="my-video" src="https://www.youtube.com/embed/TLPvy5d3lo4?rel=0&amp;controls=0&amp;showinfo=0" frameborder="0" gesture="media" allow="encrypted-media"></iframe>
.video-wrapper{
z-index: 2;
background-color: rgba(0,0,233,0.4);
position: absolute;
width: 100%;
height: 80vh;
}
.my-video{
z-index: 1;
width: 100%;
height: 80vh;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment