joaopereirawd / animatedModal.js

animatedModal.js is a jQuery plugin to create a fullscreen modal with CSS3 transitions. You can use the transitions from animate.css or create your own transitions.
MIT License
962 stars 207 forks source link

Callbacks? Events #37

Closed daslicht closed 7 years ago

daslicht commented 7 years ago

Hi, are there any Events or Callbacks? That would be useful, if you for example have a Slideshow, which needs to be reinitialized after the modal has been shown .

I saw that there is an afterOpen function. Is there way to use it from outside, please ?

daslicht commented 7 years ago

solution:

 $("#demo01").animatedModal({
     "color": "rgb(64, 83, 164)", //primary-barnd,
     "overflow":"hidden",
     afterOpen: function(){ 
         alert();
     }
 });