Can I set a Webflow lightbox to close after the video from YouTube is done playing

Hi! I need help about closing Lightbox:

Can I make that the lightbox closes automatically when a video (from youtube) has ended?
I think that I will need javascrip code or jquery.

For example, this video is viewed in a Lightbox, but when it finished the window doesn’t close. I want that when the video ends, the lightbox closes automatically and comes back to the original menu.

Thanks for your help.

Hi @saritalfa Welcome to the community! :slight_smile:

At this time, we do not have that function in our platform. But you may be able to do this with custom code.

Here is something I found for you that might help you get on the right direction:
http://stackoverflow.com/questions/24964232/how-to-fire-function-on-embedded-youtube-iframes-end

Hope this helps :slight_smile: