This project is about to finish and I’m now seeing a problem for the mobile version. In fact the video background is very large, this means that the happy guy is not visible on small screens. So I cropped the video and tried to replace the video “only” for the mobile version but it replaces also on the desktop version…
Any idea how to solve that inside webflow? Or do I need to add custom code?
Not sure if you can replace the video using the same video bg element, but you can use a different bg element for mobile and just make it display none for desktop.
You need to add a second video element and make it visible only on mobile. So the video element will have a class mobile-video and will be set to display none for desktop.
@PeterDimitrov really interested to watch that Loom video but it looks like it’s been discontinued. I know that tactic is what I need to do, but for some reason no matter what I do…the desktop video is the only one that is being shown on mobile/tablet, even though I have set desktop to display:none and set the mobile version of the video to display:flex.
There’s a div called “Video Container” with the two background videos in it. Eventually I’m going to be tying video progress to scroll position with custom code, but I can’t get the divs to show/display correctly. When inspecting the code at the published link — https://differential-3c7dbf49e9e3ed5aaf5ae8f54d.webflow.io/ — it almost looks like it’s being overridden somehow.
This is what I’m seeing when I inspect the published link on tablet breakpoint. Somehow my display:none is being overwritten. I have 0 custom code on this page. Honestly no clue what could be doing this…