I have a 10 seconds video as my wallpaper in my webpage using pure css only. Here is my code:
<style>
video#bgvid {
position: fixed; right: 0; bottom: 0;
min-width: 100%; min-height: 100%;
width: auto; height: auto; z-index: -100;
background: url(polina.jpg) no-repeat;
background-size: cover;
}
</style>
<body>
<video autoplay loop poster="polina.jpg" id="bgvid">
<source src="vidwallpaper.mp4" type="video/webm" />
<source src="vidwallpaper.mp4" type="video/mp4 " />
</video>
</body>
When my 10 seconds video is finished, the video repeats, back from the start and the way it started is not appealing to the eyes because the ending part of the video and the starting point of the video doesnt connect well.
Is there a way i can make a transition like fading effect so that the loop of my wallpaper will be better? tia