Embedding a YouTube or Vimeo video in Webflow with a clean appearance can be achieved by hiding extra graphics and suggestions. Follow these steps to integrate a video without showing extra YouTube or Vimeo elements:
1. Use YouTube's Privacy Enhanced Mode
- Go to the desired YouTube video.
- Click on Share, and then Embed.
- Select the option for Enable privacy-enhanced mode.
- Copy the embed code but note that you don’t use it directly on Webflow. Instead, take note of the video ID.
2. Modify the YouTube Embed Code
- Use Webflow’s Embed element to add your video.
- Insert a basic iframe code within Webflow's Embed element.
- Format the iframe like this:
<iframe width="560" height="315" src="https://www.youtube.com/embed/VIDEO_ID?rel=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
- Replace VIDEO_ID with the actual video ID you've noted.
3. Use Vimeo's Player Parameters
- Go to the Vimeo video you wish to embed.
- Use this format to build a Vimeo iframe for embedding:
<iframe src="https://player.vimeo.com/video/VIDEO_ID?background=1" width="640" height="360" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen></iframe>
- Replace VIDEO_ID with your Vimeo video ID.
- Note that Vimeo doesn’t append video suggestions like YouTube.
4. Use Custom Video Controls in Webflow
- Upload a video directly to Webflow for completely custom controls without platform suggestions.
- Drag a video element onto your page.
- Use Webflow’s design and video settings to customize the appearance and functionality.
Summary
For a clean video embed without extra graphics or suggestions, use YouTube's ?rel=0 parameter or Vimeo’s native embed features. Alternatively, you can upload videos directly into Webflow for complete customization using Webflow’s built-in controls.