Exit animations for the popups

how to set exit animations for the popup?
if set with “start animation”, i will work , buy just work when i click close button,
don’t work when i click backdrop or press “esc”.

How do I achieve it?

Add this custom css somewhere and adjust to your liking:

.brx-popup {
	transition: opacity 200ms,visibility 200ms;
}