How can I make different background videos for mobile and desktop on my Webflow site without affecting the loading speed?

Published on
September 22, 2023

To make different background videos for mobile and desktop on your Webflow site without impacting loading speed, you can follow these steps:

  1. Prepare the videos: Start by creating two versions of the video you want to use - one optimized for mobile and the other for desktop. Ensure that the video files are compressed and optimized for playback on their respective devices.

  2. Upload the videos to Webflow: Go to your Webflow project and head to the "Assets" panel. Upload both versions of the videos by clicking the "Upload" button.

  3. Add background videos to sections: Now, go to the page where you want to add the different background videos. Select the section where you want to have the video background, or create a new section.

  4. Set up the background video: With the section selected, go to the "Settings" panel on the right-hand side of the Webflow Designer. In the "Background" section, choose the option to have a background video.

  5. Configure the desktop video: In the background video settings, you'll see an option called "Desktop." Select this option, and then select the desktop version of the video you uploaded in the "Video" dropdown menu.

  6. Configure the mobile video: Next, click the "+ Add Mobile" button within the background video settings. In the new mobile video option that appears, select the mobile version of the video you uploaded in the "Video" dropdown menu.

  7. Adjust settings: You can further customize the background video by adjusting other settings, such as the video playback mode (cover, contain, or actual size) and whether the video auto plays or loops.

  8. Optimize video playback: To optimize video playback and loading speed, use appropriate video codecs and formats. MP4 with H.264 or WebM with VP8/VP9 are widely supported options, but do check browser compatibility for best results.

By following these steps, you can have different background videos for mobile and desktop on your Webflow site without sacrificing loading speed.

Additional Questions:

  1. How do I optimize video files for faster loading on my Webflow site?
  2. Can I use a YouTube video as a background video in Webflow?
  3. Is it possible to have multiple background videos on a single page in Webflow?