Background Video Poster
Last updated
Was this helpful?
Last updated
Was this helpful?
In HTML, a refers to an image that should be shown while the video is downloading.
On background videos, this image is specified in the data-poster-url
attribute, and Webflow generates a thumbnail image for you automatically.
In some cases, you may prefer to create your own image, or to create a WEBP image as recommended by Google Lighthouse. This feature allows you to specify your own.
Note: Standard <video>
elements can also specify a video poster, using the poster
attribute- however in Webflow, the standard video elements are designed to embed video players such as YouTube’s which use an <iframe>
embed approach instead.
This tool will replace the data-poster-url
attribute on Webflow’s background videos with the image url you specify.
To use-
Create and setup your background video element
Create your poster image, e.g. a WEBP file, and add it to your website assets
Get the URL of that uploaded asset
Select your video element, and add a custom attribute of wfu-data-poster-url
, and a value of your poster’s URL
Add the WFU video library to your page or site just before the closing body element.
On page load, WFU will find your background videos with that special attribute, and apply your specified URL value to the data-poster-url
.
There are currently no configuration options for this feature, so we’ll use a no-code integration approach.
Install JS in HEAD, generally site-wide.
wfu-data-poster-url
to the Background VideosSee above for details.