dimsemenov / Magnific-Popup

Light and responsive lightbox script with focus on performance.
http://dimsemenov.com/plugins/magnific-popup/
MIT License
11.39k stars 3.48k forks source link

Fade a popup in instead of immediately displaying it #990

Open 1234ru opened 7 years ago

1234ru commented 7 years ago

Currently I have a code initializing a popup like this:

something.magnificPopup({
    callbacks: {
        open: function() {
            this.content.hide();
            this.content.fadeIn();
        }
    }
});

I hope you understand what I mean. Is there a better way to do this?

Note: it would be even better if the solution applies to the whole popup set (including background etc.), not just to the content.