Skip to content

Instantly share code, notes, and snippets.

@askwpgirl
Created September 12, 2023 21:15
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 askwpgirl/c5c1540214cbfe8b319e39d32712176d to your computer and use it in GitHub Desktop.
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
/* 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