How can I call Magnific Popup without clicking on a button? I found public methods in the documentation, but I can't figure out how to implement it.

Example: http://playcode.io/146240?tabs=console&script.js&output

How can I call a window through the console, for example?

    1 answer 1

    Use the method

    $('.popup-gallery').magnificPopup('open'); 

    More details and other methods in the documentation.