There is such an example, you need to open the modal when hovering, when we remove the mouse from the link, the window closes. How to implement this?
$('.open-popup-link').mouseover(function() { $.magnificPopup.open({ items: { src: '.white-popup' // can be a HTML string, jQuery object, or CSS selector } }) }); $.magnificPopup.close(); .white-popup { position: relative; background: #FFF; padding: 20px; width: auto; max-width: 500px; margin: 20px auto; } <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/jquery.magnific-popup.min.js"></script> <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/magnific-popup.css"> <a href="#test-popup" class="open-popup-link">Show inline popup</a> <!-- Popup itself --> <div id="test-popup" class="white-popup mfp-hide"> Popup content </div>