I am using a background video for my page which is a simple long page where you scroll and see pictures with a video in the background fixed. In chrome it works smooth but for some reason in safari it's a little choppy and laggy. Is there any general best practices when dealing with fixed background videos and safari? Here is how I am grabbing the video and my css properties. Any good tips or resources to look into for this would be greatly appreciated! I can go more in depth if needed or specific if this questions is too broad let me know! Thank you!
<iframe id="v0" src="https://player.vimeo.com/video/318621793?background=1&autoplay=1&loop=1&byline=0&title=0" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen>
</iframe>
#v0{
position:fixed;
width: 100vw;
filter:opacity(60%);
height: 100vw; /* Given a 16:9 aspect ratio, 9/16*100 = 56.25 */
min-height: 100vh;
min-width: 177.77vh; /* Given a 16:9 aspect ratio, 16/9*100 = 177.77 */
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}