Published
October 16, 2024
Updated
Webflow's lightboxes support video, and use the same Embedly system behind the scenes.
This means that anything you can use in a typical Video element, you should be able to use in a lightbox as well.
YouTube Tricks
Each platform will have different capabilities, but here are a few tricks that you can do with lightboxed YouTube videos.
Start at a specific time
A typical YouTube video link will look like this;
https://www.youtube.com/watch?v=dQw4w9WgXcQ
You can specify a starting time ( in seconds ), by appending a t
parameter, like so;
https://www.youtube.com/watch?v=dQw4w9WgXcQ&t=36
Autoplay video when the lightbox opens
Autoplay can also work in this setup, e.g.;
https://www.youtube.com/watch?v=dQw4w9WgXcQ&autoplay=1
Because a user action is required to open the lightbox, browsers like Chrome will register that as a valid user action and will allow the video to autoplay even though it is not muted.
FAQs
Answers to frequently asked questions.