App avec splash screen persoonnalisé

This commit is contained in:
2021-12-03 15:45:11 +01:00
parent 10f70bb4c8
commit f190635238
40 changed files with 121 additions and 3 deletions

View File

@@ -1,3 +1,41 @@
.loader {
position: absolute;
inset: 0;
background: radial-gradient(circle at bottom, #9fb8d1 0%, #157496 100% );
display: flex;
justify-content: center;
align-items: center;
}
.circle {
fill: none;
stroke: #fff;
stroke-width: 10px;
/* Couper le cercle */
stroke-dasharray: 100;
/*Décaler les pointillés*/
stroke-dashoffset: 150;
animation: rotation 1800ms ease-in-out infinite alternate;
}
@keyframes rotation {
0%{
stroke-dasharray: 100;
stroke-dashoffset: 70;
}
/* Changement endroit des pointillés */
100%{
stroke-dasharray: 100;
stroke-dashoffset: -800;
}
}
/*Classe que l'on ajoute pour faire transition de fin*/
.ended {
opacity: 0;
transition: opacity 2s ease-in-out;
}
body {
font-family: sans-serif;
background-color: #315481;

View File

@@ -1 +1,17 @@
import '../imports/ui/App.js';
var handle = LaunchScreen.hold();
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
navigator.splashscreen.show();
}
setTimeout(()=> {
handle.release();
}, 10000);