I am currently utilizing the Magnific Popup plugin in my project. The code snippet I have implemented is as shown below:
$(".event").magnificPopup({
items: {
src: ".hidden-div",
type: "inline"
},
closeBtnInside: true
});
The challenge I am facing is that the ".hidden-div" section, which I intend to display as a popup, has its CSS display property set to none for initial hiding. However, I wish for it to become visible when the script above is executed and return to being hidden when the popup is closed. Is there a method to dynamically toggle its display property from 'none' to 'block' upon opening the popup and back to 'none' upon closure?