commit: e004c4e087d4cf977a3fb713f5441c92028b83b6
parent 711eb24504d231e2276640b614849a3ae6703c14
Author: Henry Jameson <me@hjkos.com>
Date: Wed, 18 Sep 2024 21:33:20 +0300
remove splash when it's done
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/App.js b/src/App.js
@@ -146,7 +146,11 @@ export default {
},
removeSplash () {
document.querySelector('#status').textContent = this.$t('splash.fun_' + Math.ceil(Math.random() * 4))
- document.querySelector('#splash').classList.add('hidden')
+ const splashscreenRoot = document.querySelector('#splash')
+ splashscreenRoot.addEventListener('transitionend', () => {
+ splashscreenRoot.remove()
+ })
+ splashscreenRoot.classList.add('hidden')
document.querySelector('#app').classList.remove('hidden')
}
}