From 03220925044936d24310820ba16aac7de53c1f35 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sat, 5 Nov 2016 10:16:32 +0100 Subject: [PATCH] launcher: smooth show --- app/main/launcher/index.html | 4 +++- src/browser/scss/style.scss | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/main/launcher/index.html b/app/main/launcher/index.html index 68b2393c..30776129 100644 --- a/app/main/launcher/index.html +++ b/app/main/launcher/index.html @@ -127,9 +127,10 @@ }) form.appendTo('#launcher') + $('#loading').remove() setTimeout(()=>{ form.addClass('loaded') - },100) + },0) }) @@ -139,6 +140,7 @@ +
diff --git a/src/browser/scss/style.scss b/src/browser/scss/style.scss index 649a9b82..ea9e0113 100644 --- a/src/browser/scss/style.scss +++ b/src/browser/scss/style.scss @@ -168,9 +168,12 @@ i { width: 100%; height: 100%; background: var(--color-fg); - padding:10rem; + padding:12rem; overflow: hidden; + opacity: 0; + transition: opacity .25s; &.loaded { + opacity: 1; overflow: auto; } } @@ -228,9 +231,10 @@ i { #loading { - position: absolute; + position: fixed; top:50%; left:50%; + margin-left:-15rem; margin-top:-15rem; text-align: center; }