How can I make an embedded video in Webflow loop once it finishes? Can I remove the video controls on hover?

TL;DR
  • Modify the video URL parameters to enable looping and autoplay; use ?loop=1&autoplay=1 for YouTube or &loop=1 for Vimeo.
  • Insert an Embed element in Webflow with the modified video URL.
  • Add custom CSS in the Webflow settings to hide video controls on hover using a rule targeting the specific video class.

When you want to make an embedded video in Webflow loop and remove video controls on hover, follow the steps below.

1. Enable Looping for Embedded Video

  • Find the Video URL: Locate the URL of the video you want to embed.
  • Modify the URL Parameters: Add ?loop=1&autoplay=1 to the end of the URL if it is a YouTube video. For Vimeo, you add &loop=1 in the embed settings.
  • Embed the Video in Webflow: Use an Embed element in Webflow to insert your custom video embed code with the modified URL.

2. Remove Video Controls on Hover

  • Insert Custom CSS: Use the Custom Code section of your Webflow project settings or page settings to add CSS.
  • Use Appropriate CSS Rules: Add CSS like .video-element:hover::-webkit-media-controls { display: none !important; } to hide the controls on hover. Replace .video-element with the class of your video.

3. Add Negative Margin (Optional)

  • Adjust Video Position: If removing controls affects layout, consider giving the video a negative top margin in the CSS to adjust positioning.

Summary

To loop an embedded video in Webflow and remove controls on hover, modify the video URL parameters for looping and add custom CSS for control visibility. Adjust video position if necessary with CSS.

Rate this answer

Other Webflow Questions