When using the default slide-in-up animation for modal, the modal leave animation looks perfect. But when substituting a different animation ( I am using slide-in-right) the modal is destroyed (i.e. removed from the DOM) before the leave animation is done.
This causes a noticeable UX hiccup, since the modal is only half way through the leave animation before it just disappears. You can see this here:
The leave timing is 2500ms so that’s how long the modal should be visible as it slides out to the left. But it gets removed almost instantly, negating the leave animation. Is this fixable?