Last active
November 28, 2016 05:02
-
-
Save danieliser/76c10db40326210f886c to your computer and use it in GitHub Desktop.
Auto Play HTML5 video on popup open.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery('#pum-123') | |
| .on('pumBeforeClose', function () { | |
| var $video = jQuery('video', jQuery(this)); | |
| $video[0].pause(); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment