chore: fix complexity of close() method (#1641)
chore: fix complexity of close() method (#1641)

* Separates responsibility from replace class on Dom from the close method

* Separates responsibility from animate

* Reorganize code

* Separate animation handling from close method

* Remove line

* Rename animation method

* Fix code organization

* Remove brackets

limonte/sweetalert2