Skip to content
Snippets Groups Projects
Commit 71224bea authored by Olivia206's avatar Olivia206
Browse files

removed code about is-animating

parent 38d903dd
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment