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

Adding event to after callbacks #33

Open abreckner opened 8 years ago

abreckner commented 8 years ago

Hello, I came across your excellent jQuery plugin, and while it was really cool, there were a couple of things I needed to tweak in order to get it working on my site. I figured other people might want these changes too so I created a fork and a pull request.

Essentially, what I wanted to do was to load the modal with the results of an AJAX call. In order to do that I had to have access to the event object for the callbacks. I also had to remove the href == idConc requirement (not 100% sure it is necessary).

I also noticed that on my mobile site that setting overflow to 'auto' on close was not setting things back to what they were so I changed it to 'initial' instead.

Thanks

Anthony Breckner

abreckner commented 7 years ago

Ok, I will have a look. Thanks!

abreckner commented 7 years ago

hello, I fixed the event is not defined error for Firefox.

Thanks

Tony