Closed evanre closed 6 years ago
You missed the animation part and some HTML tags in your example. Here is update version which work as expected.
@evanre Thanks for reporting this. It seems it not possible at the moment to dismiss the modal without any animation. Will look into it.
@kalpeshsingh The need is to toggle the modal without any animation and overlay.
Here we listen for an animationEnd event and then toggle the visibility of the modal. As @evanre pointed out this should work without any animation also.
@ghosh Hi, thank you for the answer. The problem is that I've wasted a lot of time to find it out, because main tutorial on the website says nothing about the animation requirements.
@evanre Yup, this was an oversight on our part. It definitely needs to be fixed. Thanks again for reporting this.
My bad. I misunderstood your question @evanre. We will fix it and inform you.
Hi, I can't make it work properly. It didn't close without css animations ("is-open" class is not removing).
I need just instantly show\hide a small window on my project (without animations and full page overlays).
Here is example on CodePen.