On my webshop www.spidercatcher.dk I want the background vid only to show on PC, and then have a still photo on phones and tablets, it kinda works when I set a poster tag, but I cannot scale the poster tag properly, so the image is too large on phones, plus the margin is weird.
Can anyone help? The website is set up in Wordpress, Woocommerce, with Flatshop theme.
Here is the HTML and CSS code:
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>