So I have a lightbox with a vimeo and was wondering if it was possible either through custom code or (ideally) native to close a lightbox when the video ends… @cyberdave it would be great to hear your thoughts on this.
If it is not possible I will add it to the wishlist woo
Something like this would need be done with custom code. Something like when the Vimeo player notices that the video is finished, it’ll fire an event those could close a webflow modal.
Thanks @PixelGeek I had taken a look at that, do you know what trigger would close the mobile in webflow? I could export a lightbox site and trawl through the js but would probably miss it, if you happen to know let me know.
For more details, you’ll need to beautify the source code (@danro mentioned in another thread that it was not minified aside from third-party libs, but I must be blind!), and then look for the function createLightbox().
To trigger that after your video is done, you’d listen for the finish event via the Vimeo API: