diff options
Diffstat (limited to 'src/shadow.js')
| -rw-r--r-- | src/shadow.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shadow.js b/src/shadow.js index 019cec5..8421fbe 100644 --- a/src/shadow.js +++ b/src/shadow.js @@ -52,6 +52,7 @@ export default class Shadow { open() { this.isOpen = true; + this.element.classList.add('open'); this.original.style.visibility = 'hidden'; if (!document.body.contains(this.element)) this.placeItself(); @@ -65,6 +66,7 @@ export default class Shadow { close() { this.isOpen = false; + this.element.classList.remove('open'); this.original.style.visibility = 'visible'; |
