Thank You Ken you are exactly right, I never noticed that before.
Now to figure out how to fix it… Hmm.
If I start at page load on animation 1 showing, and then open animation 2 or 3, and then go back to animation 1, and close / reopen the modal, I would want it to remain at it’s same state it was before close, which with the procedure above, should be exactly like the page just loaded and it just appeared.
The issue seems to be that it adds the class of animated slideOutLeft on animating to slide 2 or 3, then when clicking Go back, it amends the classes to animated slideInLeft on animation 1
At the same time it also removes an inline style of animation-duration: 1ms; from slide 2 and 3.
In the inspector if I perform the above steps and before re-opening the modal I manually remove the 2 classes on animation 1 animated slideInLeft as well as add back the inline styles of animation-duration: 1ms; to animations 2 and 3.
Then on reopen it all works again as expected.
So you definitely figured out why it’s acting odd in my opinion, but now to figure out how to remove the 2 excess classes and add back the inline style on modal close, I do not think there is a way to read if a modal is open or closed?
@Teodor do you think this could be a bug in Wappler, where if an Animated Region is set to Initially Visible then it should already do this by default?