With the above page opened in a phone, when the second button having the text of "Single image lightbox (with zoom out animation)" is clicked, the body of the webpage seems to shrink and then go back to its regular width.
jQuery('.mfp-zoom-out').magnificPopup({
type: "image",
// Delay in milliseconds before popup is removed
removalDelay: 500,
// Class that is added to popup wrapper and background
// make it unique to apply your CSS animations just to this exact popup
mainClass: 'mfp-zoom-out',
callbacks: {
beforeOpen: function() {
// just a hack that adds mfp-anim class to markup
this.st.image.markup = this.st.image.markup.replace('mfp-figure', 'mfp-figure mfp-with-anim');
// this.st.mainClass = this.st.el.attr('data-effect');
}
},
closeOnContentClick: true,
midClick: true // allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source.
});
The problem is not present when the page is viewed at smaller widths in Chrome.
Test page: https://oxygen.wpdemos.net/magnific-popup-test-page/
With the above page opened in a phone, when the second button having the text of "Single image lightbox (with zoom out animation)" is clicked, the body of the webpage seems to shrink and then go back to its regular width.
Screencast: https://cl.ly/f1cb430ede72
HTML:
CSS:
JS:
The problem is not present when the page is viewed at smaller widths in Chrome.
Any advice on fixing this will be appreciated.