Magnific Popup

Popup based on Magnific Popup. More information can be found here: https://dimsemenov.com/plugins/magnific-popup/

/** add class for video and audio popup add class play_btn */
$(".play_btn").each(function () {
    $(this).magnificPopup({
      type: "iframe",
      mainClass: "mfp-fade",
      preloader: false,
      fixedContentPos: true,
    });
});
/** add class for image popup add class image_popup */
$(".image_popup,.gallery_popup a").magnificPopup({
      type: "image",
      gallery: {
        enabled: true,
      },
      mainClass: "mfp-fade",
});
$(".details").magnificPopup({
      type: "inline",
      overflowY: "auto",
      closeBtnInside: true,
      mainClass: "mfp-fade zyan-popup",
  });

Last updated