ui: tweak some transitions
This commit is contained in:
parent
751b04e639
commit
e7d110a64e
3 changed files with 6 additions and 4 deletions
|
|
@ -7,7 +7,7 @@ class Lobby {
|
|||
}
|
||||
|
||||
create() {
|
||||
|
||||
|
||||
this.html = DOM.create(`
|
||||
<div id="lobby">
|
||||
<div class="main">
|
||||
|
|
@ -39,7 +39,9 @@ class Lobby {
|
|||
if (!this.state) return
|
||||
this.state = 0
|
||||
this.main.classList.remove('show')
|
||||
document.body.removeChild(this.html)
|
||||
setTimeout(()=>{
|
||||
document.body.removeChild(this.html)
|
||||
}, 100)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue