退场过渡
This commit is contained in:
parent
ae7402b62c
commit
d142d3a613
@ -200,8 +200,9 @@ export default class ClientList {
|
|||||||
debug = true
|
debug = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
document.addEventListener('keyup', event => {
|
document.addEventListener('keyup', async event => {
|
||||||
if (document.activeElement === document.body && event.key === 'Escape' && debug) {
|
if (document.activeElement === document.body && event.key === 'Escape' && debug) {
|
||||||
|
await debugElement.animate([{ opacity: 1 }, { opacity: 0 }], { duration: 100 }).finished
|
||||||
document.body.removeChild(debugElement)
|
document.body.removeChild(debugElement)
|
||||||
debug = false
|
debug = false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user