Transitions
Transitions can be added to your modals just like any other Svelte component. However they
must be global transitions because they are mounted and unmounted by the Modals
component.
Exit before enter
By default, modals will open the next modal before the previous one has finished transitioning. Depending on your transition this might be ok, but often it’s cleaner to play one at a time.
To opt-in to this behaviour, you can use the exitBeforeEnter
action. Use this
on the root element of your modal that has the transitions.