From e004c4e087d4cf977a3fb713f5441c92028b83b6 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 18 Sep 2024 21:33:20 +0300 Subject: remove splash when it's done --- src/App.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index d2dd35c7..e87108dd 100644 --- 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') } } -- cgit v1.2.3-70-g09d2