Webflow sync, pageviews & more.
NEW

How can I set up a loop for an embedded video on the home page of my website using Webflow?

TL;DR
  • Use Webflow's Embed element to insert your video and add the correct loop parameters to the video URL based on platform: YouTube (?playlist=VIDEO_ID&loop=1&autoplay=1&mute=1) or Vimeo (?autoplay=1&muted=1&loop=1&background=1).
  • Save, publish the site, and verify loop functionality on the live version.

To loop an embedded video on your Webflow homepage, you need to modify the embed code with the correct loop parameters depending on the video platform (e.g., YouTube or Vimeo).

1. Identify the Video Platform

  • Check whether your embedded video is from YouTube, Vimeo, or another service.
  • Each platform uses different URL parameters for looping.

2. Use Webflow’s Embed Element

  • Drag an Embed element from the Add panel into your homepage layout.
  • Paste your video embed code into the custom code field.

3. Add Loop Parameters Based on Platform

For YouTube:

  • Modify the URL in the src attribute.
  • Add the following parameters:
    ?playlist=VIDEO_ID&loop=1&autoplay=1&mute=1
    Replace VIDEO_ID with the actual ID.
  • Example:
    https://www.youtube.com/embed/abc123?playlist=abc123&loop=1&autoplay=1&mute=1
  • Important: playlist=VIDEO_ID is required for the loop to work.

For Vimeo:

  • Modify the URL in the src attribute.
  • Add the following parameters:
    ?autoplay=1&muted=1&loop=1&background=1
  • Example:
    https://player.vimeo.com/video/123456789?autoplay=1&muted=1&loop=1&background=1

4. Optional: Style the Embed for Full-Width Display

  • Adjust sizing using Webflow’s style panel.
  • For full width and height:
  • Set Width to 100%
  • Set Height to 100vh (if you want full screen)

5. Save and Publish

  • Click Save & Close inside the Embed editor.
  • Publish your site to see the changes live. Previewing alone may not reflect embed behavior fully.

Summary

To loop an embedded video in Webflow, use the Embed element and append the appropriate loop URL parameters for YouTube (?playlist=ID&loop=1) or Vimeo (?loop=1). Always test the final setup on your published site for full video behavior.

Rate this answer

Other Webflow Questions