Looking for some assistance with my webshop www.spidercatcher.dk. I'm trying to have a background video display only on PCs, while showing a still photo on phones and tablets. I've tried using a poster tag but I can't seem to scale it properly, resulting in the image being too large on phones and a weird margin.
If anyone can help, the website is built on Wordpress, Woocommerce, using the Flatshop theme.
Below are the HTML and CSS code snippets:
video#bgvid {
position: static;
margin-top: -15%;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -100;
background: transparent url(/wp-content/uploads/2016/04/Spidercatcher_vid_frame.jpg) no-repeat 0 0;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
<video autoplay loop poster="/wp-content/uploads/2016/04/Spidercatcher_vid_frame.png" id="bgvid">
<source src="/wp-content/uploads/2016/04/Spidercatcher_vid.mp4" type="video/mp4">
</video>