Open sododesign opened 7 years ago
yup
const markup = `<div class="mfp-iframe-container">
<div class="mfp-close"></div>
<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>
</div>`;
$('.popup-instagram-mf').magnificPopup({
type: iframe,
iframe: {
markup,
patterns: {
instagram: {
index: 'instagram.com',
id: url => {
const m = url.match(/(?:https?:\/\/(?:www\.)?)?instagram\.com\/p\/(\w+)/);
if (!m || !m[1]) {
return null;
}
return m[1];
},
src: '//instagram.com/p/%id%/embed/',
},
...
},
},
...
});
mfp-iframe-scaler
by default has a 16*9 aspect ratio which is why i'm using my own markup
Hi guys,
Is Possible get a small help with the integration of magnificent popup with Instagram? I have this situation:
My HTML: