?autoplay=1
) to YouTube or Vimeo video URLs in the Lightbox video link.To make a Lightbox video autoplay and ensure the navbar stays behind the lightbox, you'll need to apply custom settings and minor code adjustments within Webflow.
Webflow’s Lightbox doesn’t natively support embedded video autoplay, so you’ll need to host your video on platforms like YouTube or Vimeo and modify the URL.
?autoplay=1&rel=0
to the URL.https://www.youtube.com/watch?v=VIDEO_ID?autoplay=1&rel=0
?autoplay=1
to the URL.https://vimeo.com/VIDEO_ID?autoplay=1
Note: YouTube autoplay may still be blocked by browsers if sound is enabled. Consider muting the video (either by default or via platform settings) to improve success.
The Webflow Lightbox opens a popup modal that overlays your screen, but sometimes a Navbar with fixed positioning or high z-index
can appear above it.
z-index
is still below the Lightbox modal.To autoplay a video in a Webflow Lightbox, append autoplay parameters (?autoplay=1
) to the video URL. To ensure the navbar stays behind the lightbox, reduce the Navbar’s z-index
to a value below 9999.