diff --git a/assets/js/theme/design-system/modal.js b/assets/js/theme/design-system/modal.js index ce1d6a6b2c5ab0791169e58053338ace90ff1427..8b68877ecfb3ae892c7d4b8a3f9a2170d1f9dacb 100644 --- a/assets/js/theme/design-system/modal.js +++ b/assets/js/theme/design-system/modal.js @@ -2,7 +2,6 @@ import { focusTrap } from '../utils/focus-trap'; const CLASSES = { modalOpened: 'has-modal-opened', - isAnimating: 'is-animating', modalIsOpened: 'is-opened' }; @@ -57,12 +56,8 @@ class Modal { document.documentElement.classList[classAction](CLASSES.modalOpened); - setTimeout(() => { - document.documentElement.classList.remove(CLASSES.isAnimating); - - this.element.setAttribute('aria-hidden', !this.state.opened); - this.element.classList[classAction](CLASSES.modalIsOpened); - }, 0.2); + this.element.setAttribute('aria-hidden', !this.state.opened); + this.element.classList[classAction](CLASSES.modalIsOpened); } }