Created
September 12, 2023 21:15
-
-
Save askwpgirl/c5c1540214cbfe8b319e39d32712176d to your computer and use it in GitHub Desktop.
Avoid Black Screen from displaying when loading iframe Vimeo or YouTube Video in Elementor Container Background
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
/* Add this CSS to the Advanced tab > Custom CSS section of the Container containing the background video | |
This solution was proposed here: https://github.com/elementor/elementor/issues/1644#issuecomment-1125174378 | |
*/ | |
selector iframe { | |
opacity: 1; | |
animation-name: fadeInOpacity; | |
animation-iteration-count: 1; | |
animation-timing-function: ease-in; | |
animation-duration: 1.75s; | |
} | |
@Keyframes fadeInOpacity { | |
0% { | |
opacity: 0; | |
} | |
80% { opacity:0; | |
} | |
100% { | |
opacity: 1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment