I’m having a few issues with a background video I am trying to put in on the first section.
The video won’t go full screen without overlapping into the section below, when it does this the video controls won’t work. When the video is within it’s designated section, I can’t get it to fill it completely. I have put the background behind the video as red to show the contrast.
I’ve embedded the video, so please find the code in the settings section.
The video can be found in the section titled ‘Title Page’ (beneath ‘modal background’) and is called ‘Video’
I’m not sure how this can be fixed. I have limited experience with coding, so can’t really tell what is wrong with the code for the embedded video. Is it conflicting with the parameters set within the positions settings in webflow? I have taken them all out, but the problem still persists.
The video also has issues in scaling up or down when moving across devices!
There isnt really a way to natively show a video as a background without some CSS hackery which is problem harmful from a cross browser persepctive in the long run. There are a few js libraries that are quite lightweight and acheive what you require.
There are other solutions if having the video always fit 100% of the viewport height isnt a deal breaker.So in essence keeping the video resolution 16x9 and width at 100% with height staying at auto.
Still having an issue. @PixelGeek I have incorporated your code, however it is still not covering the whole section. Again, I have put the background in red to highlight the space that needs to be filled.
Could you both please look at the code, I’m not sure what’s going wrong!
@cyberdave@PixelGeek One tiny little thing…How can I make the whole video shift up with the ‘Title Page’ section, instead of it being fixed and the next section scrolling over the top? I have tried replacing ‘fixed’ with ‘scroll’ in the ‘position=’. However, this downsizes the screen again. I am unable to access the controls of the video also, by adding ‘controls’ before ‘style=’ on the first line.
Hi @taniaf, the embedded video is slightly wider than the parent element - a quick resolution to this would be to set the parent element to overflow:hidden.
Hope that helps a bit! Also, looks like a cool project