?raw=1
and embed it using an HTML5 <video>
tag with autoplay
, muted
, and playsinline
.Your Dropbox-hosted video is not autoplaying on the published Webflow site likely due to autoplay restrictions or improper embedding. Here's how to make the video autoplay when scrolled into view.
https://www.dropbox.com/s/yourfile.mp4?dl=0
https://www.dropbox.com/s/yourfile.mp4?raw=1
?raw=1
forces Dropbox to directly serve the video file.<script>
tag:<video src="https://www.dropbox.com/s/yourfile.mp4?raw=1" autoplay muted playsinline preload="auto" style="width:100%; height:auto;"></video>
muted
for autoplay to work on most browsers.Because autoplay may not function on initial load, trigger video play when scrolled into view:
myVideo
.#myVideo
) and add an animation.document.getElementById('myVideo').play();
muted
is required).To autoplay a Dropbox-hosted video on scroll in Webflow, use the modified ?raw=1
link in a custom video embed with muted
and autoplay
attributes. Then, use a scroll-in-view interaction in Webflow to trigger video playback using JavaScript.