Skip to content

Instantly share code, notes, and snippets.

@wplit
Created July 20, 2022 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wplit/dd8a37c97d3d2eb585fa104e6267cc49 to your computer and use it in GitHub Desktop.
Save wplit/dd8a37c97d3d2eb585fa104e6267cc49 to your computer and use it in GitHub Desktop.
force video to pause when lightbox closed
jQuery(document).on('beforeClose.fb', function( e, instance, slide ) {
slide.$slide.find("vime-player")[0].pause();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment