How to embed youtube video in magnific popup?

Liju picture Liju · Jan 14, 2014 · Viewed 59k times · Source

i have magnific popup plugin.but it not showing the video on popup How to embed youtube video in magnific popup?

Answer

Pranita picture Pranita · Jan 14, 2014

Check the following link for documentation:

Doc

$(document).ready(function() {
    $('.popup-youtube, .popup-vimeo, .popup-gmaps').magnificPopup({
        disableOn: 700,
        type: 'iframe',
        mainClass: 'mfp-fade',
        removalDelay: 160,
        preloader: false,

        fixedContentPos: false
    });
});

<a class="popup-youtube" href="http://www.youtube.com/watch?v=0O2aH4XLbto">Open YouTube video</a>

Hope this helps.