launcher: smooth show

This commit is contained in:
jean-emmanuel 2016-11-05 10:16:32 +01:00
parent d9cc5e5637
commit 0322092504
2 changed files with 9 additions and 3 deletions

View file

@ -127,9 +127,10 @@
})
form.appendTo('#launcher')
$('#loading').remove()
setTimeout(()=>{
form.addClass('loaded')
},100)
},0)
})
@ -139,6 +140,7 @@
</head>
<body id="launcher">
<div id="loading"><div class="spinner"></div></div>
</body>
</html>

View file

@ -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;
}