C
C
chanel20122019-04-02 13:12:20
fancyBox
chanel2012, 2019-04-02 13:12:20

How to add animation class from Animate.css on Fancybox 3 window close?

How to add animation class from Animate.css on Fancybox 3 window close?
There is such a script, but it does not work on version 3
-

$('.modal').on('click',function(){

  $.fancybox({
    type : 'inline',
    href : '.fancy',
    padding : 0,
    scrolling : 'visible',
    afterLoad : function(){
      $(".fancybox-skin").addClass('fadeInDown animated');
    },
    beforeClose : function(){
      $(".fancybox-skin").addClass('fadeOutDown animated');
    }
  });

});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question