From 75477007b55882c3617708ac049059d45eee8619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Wed, 20 Jun 2018 15:27:27 +0200 Subject: [PATCH] Disable fade in of the splashscreen + more time for the anim --- src/index.ejs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/index.ejs b/src/index.ejs index 6dc06cdd..b6be399f 100644 --- a/src/index.ejs +++ b/src/index.ejs @@ -33,8 +33,6 @@ width: 80px; animation: logo 4s infinite 0.5s; transform-origin: 50% 50%; - opacity: 0; - transition: opacity 0.5s ease-in-out; } @keyframes logo { @@ -94,12 +92,9 @@ const initApp = (options = {}) => { } if (name === 'MainWindow') { - setTimeout(() => { - logoEl.style.opacity = 1 - }, 50) preloadEl.style.display = 'flex' const startTime = Date.now() - const PRELOAD_WAIT_TIME_MIN = 2000 + const PRELOAD_WAIT_TIME_MIN = 3000 window.onAppReady = () => { const delay = Math.max(0, PRELOAD_WAIT_TIME_MIN - (Date.now() - startTime)) setTimeout(initApp, delay)