Closed lpeterke closed 8 years ago
Oh yes, solving this via CSS and Media Queries entirely is the smartest solution.
For somehow, my response has disappeared:
The
img
prop has used to set an image background to thesection.VideoBg
element. You could achieve that you want by using CSS media queries.Also, I think to remove the
img
prop. :)
Usually you want to reduce the pageload on mobile devices. On top of that the user's viewport probably isn't 16:9 on a smartphone.
It would be great if you could specify a second image that will be displayed instead of the video on smaller viewports and a property to define the minimum width in pixels for the desktop behaviour.