ui: tweak some transitions

This commit is contained in:
jean-emmanuel 2018-01-19 07:43:34 +01:00
parent f62c9ded6e
commit 23f2f9151c
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)
}
}

View file

@ -13,7 +13,7 @@ body {
background:var(--color-bg);
padding:2rem;
opacity: 0;
transition: opacity .2s;
transition: opacity .1s;
&.show {
opacity: 1;
}

View file

@ -113,7 +113,7 @@ body {
display: flex;
flex-direction: column;
opacity: 0;
transition: opacity .25s;
transition: opacity .1s;
&.show {
opacity: 1;
overflow: auto;