Created
December 7, 2017 12:49
-
-
Save guillaumecabanel/639119980d7cbb058dcc55e87b6d6ed6 to your computer and use it in GitHub Desktop.
Custom color filter on embeded Youtube video
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
<div class="video-wrapper"></div> | |
<iframe class="my-video" src="https://www.youtube.com/embed/TLPvy5d3lo4?rel=0&controls=0&showinfo=0" frameborder="0" gesture="media" allow="encrypted-media"></iframe> |
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
.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