Background Video βœ…

A simple background video player with some cool enhancements.

Goals

  • Easy replacement for the native Background Video element

  • External video hosting, to improve quality, size & bandwidth efficiency

  • CMS bindable, for e.g. Service-page-specific videos with the URL stored in the CMS

  • Direct control over the poster image art

Feature Comparison

The code component approach adds a few useful capabilities.

Code Component
Native Element

Upload Video directly in Webflow

β›” No. You can use the native Background Video element to the upload, publish and then get the CDN URLs for the video files.

βœ… YES

Support external video URLs

βœ… YES

β›” No

CMS Bindable

βœ… YES

β›” No

Supports MP4 & WEBM

βœ… YES

βœ… YES

Supports Fallback Image

βœ… YES

βœ… YES

Play/Pause button

βœ… YES, optional

βœ… YES, optional

Autoplay

βœ… YES

βœ… YES

Automatic aspect-ratio detection

βœ… YES

β›” No

Aspect ratio control

βœ… YES Auto detect on load Landscape - 16:9, 4:3, 21:9 Square - 1:1 Portrait - 9:16

βœ… YES Must be manually sized in the designer with a class. Can use ratio control there.

Direct poster image control

βœ… YES

β›” No, auto-generated from the video

Detects prefers-reduced-motion and suppresses autoplay

⚠️ NOT YET- planned.

βœ… YES

Demonstration

Properties

Property
Type
Description

Video URL (MP4)

Text, URL

Link to an external MP4, or or to the CDN URL generated by Webflow's Background Video component.

Video URL (WEBM)

Text, URL

Link to an external WEBM, or or to the CDN URL generated by Webflow's Background Video component.

Poster Image

Image

Specify the exact poster image you want. Make sure it works for the aspect ratio you choose.

Aspect Ratio

Variant

Include auto-detection from the source video, on load.

Show Controls

Boolean

Show or hide the play/pause buttons.

Debug

Boolean

For console logging

Future

  • Might add audio support on user interaction, an unmute button, for external streams that contain audio content

  • Considering streaming support for longer videos, Webcams, live broadcasts, etc.

  • Possibly play / pause icon control

  • Loop option

  • Autoplay option

  • Prefers-reduced-motion

  • iOS low-power / hide button?

Technical Notes

  • Component type: Standard

Reference Background Video HTML

Last updated