I’ve got this far (i.e. not very far!). I’m not precious about the method (for example, I don’t care if the box-sizing method is used), I just want the end result.
It would be more efficient if you could have just the video for the screen, and an image of the phone.
You’d have to put the image of the phone in a div, make the div position:relative.
Then add a Video BG element in the div too, upload your video, give the video bg position:absolute and adjust the position.
You should end up with an autostart looping video. That’s the fastest way. you can also do it with a custom code widget but then you have to host your videos by yourself.
tip: if using the videobg widget, uplod your bestest possible video under 30mo. WF will manage conversion and optimisation.
Sorry I hadn’t seen your link
So you have the video of just the screen. Just use a video bg widget instead of the custom code. it’s easier to resize to your needs. And follow my simple settings above.
I’ve also tried making the position relative, then resizing the bg video. But it just seems to resize the container, and not the video itself.
So no matter which method I try, I can’t seem to get it to work. Could you jump in and take some screenshots of what the design panel looks like when you’ve got it working, please?
I’d rather not change the size of the video and then use it as a constant. As the video size will need to change depending on the viewport anyway, I’d rather work out how to alter the video size from within the code.
Can anyone else assist?
To this link I’ve added 3 videos (one in each of the three methods Webflow supports; video element, background video element and embedded video. I can’t get any of them to line up in the iPhone frame without cropping out half the video.