launcher: smooth show
This commit is contained in:
parent
d9cc5e5637
commit
0322092504
2 changed files with 9 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue