Created
August 9, 2021 04:45
-
-
Save AnatoliyAkhmatov/99dabff2a7193ed0cb5b570ca38a204e to your computer and use it in GitHub Desktop.
magnific popup video tag
This file contains 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
$('.index-gallery .link-y').magnificPopup({ | |
type: 'iframe', | |
iframe: { | |
markup: '<div class="mfp-iframe-scaler">'+ | |
'<div class="mfp-close"></div>'+ | |
'<video class="mfp-iframe" frameborder="0" allowfullscreen autoplay></video>'+ | |
'</div>', // HTML markup of popup, `mfp-close` will be replaced by the close button | |
}, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment