hey y'all, i wanted to know if it's possible to use a video with audio for the loading/warning screen? this is the code i used
« Web, HTML, Tech Forum
using a video with sound for a loading screen?
<style>
body:before {
content: " ";
height: 100vh;
width: 100vw;
display: block;
position: fixed;
top: 0;
left: 0;
z-index: 100;
background-image: url('url here');
background-size: cover;
background-repeat: no-repeat;
background-position:center;
animation: yourAnimation 3s ease 0s 1 normal forwards;
pointer-events: none;
}
@keyframes yourAnimation { 0.0%{ opacity: 1;} 75%{ opacity: 1; } 100%{ opacity: 0;} }
</style>
it works with gifs but is there a way it could work with a video??