ui: tweak some transitions
This commit is contained in:
parent
f62c9ded6e
commit
23f2f9151c
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)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ body {
|
|||
background:var(--color-bg);
|
||||
padding:2rem;
|
||||
opacity: 0;
|
||||
transition: opacity .2s;
|
||||
transition: opacity .1s;
|
||||
&.show {
|
||||
opacity: 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ body {
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
opacity: 0;
|
||||
transition: opacity .25s;
|
||||
transition: opacity .1s;
|
||||
&.show {
|
||||
opacity: 1;
|
||||
overflow: auto;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue