ui: tweak some transitions

This commit is contained in:
jean-emmanuel 2018-01-19 07:43:34 +01:00
parent 751b04e639
commit e7d110a64e
3 changed files with 6 additions and 4 deletions

View file

@ -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)
}
}