diff --git a/src/classes/SplashScreenManager/index.js b/src/classes/SplashScreenManager/index.js index aac2ee5..953f0de 100644 --- a/src/classes/SplashScreenManager/index.js +++ b/src/classes/SplashScreenManager/index.js @@ -5,15 +5,22 @@ export default class SplashScreenManager { attach() { const container = document.getElementById(this.containerId) + if (container && !container.classList.contains("app_splash_visible")) { container.classList.add("app_splash_visible") + container.style.display = "block" } } detach() { const container = document.getElementById(this.containerId) + if (container && container.classList.contains("app_splash_visible")) { container.classList.remove("app_splash_visible") + + setTimeout(() => { + container.style.display = "none" + }, 300) } } }