fix(app): retire le splash video, repare les animations de fenetres et de vues
- splash screen video (e3ef400) et assets/video/loading.mp4 retires
- .animate-in (modales) n avait aucune regle CSS : keyframes ajoutees
- changement de vue : display none vers block, la transition ne se jouait
pas : remplacee par une animation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Cette révision appartient à :
1 Parent
c2894ca5a2
révision
e2b648e36c
1 fichier modifié
+12
-32
+12
-32
@@ -96,6 +96,11 @@
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
/* Les vues passent de display:none à block : la transition CSS ne se joue pas, on utilise une animation */
|
||||
@keyframes jrViewIn {
|
||||
from { opacity: 0; transform: translateY(8px); }
|
||||
}
|
||||
.app-view.active { animation: jrViewIn 0.22s ease-out; }
|
||||
#view-home.active {
|
||||
display: flex !important;
|
||||
flex-direction: column;
|
||||
@@ -149,6 +154,13 @@
|
||||
50% { transform: scale(1.3); opacity: 0.5; }
|
||||
}
|
||||
|
||||
/* Entrée des fenêtres (classe animate-in, jamais définie : plugin tailwindcss-animate absent) */
|
||||
@keyframes jrAnimateIn {
|
||||
from { opacity: 0; transform: translateY(14px) scale(0.98); }
|
||||
to { opacity: 1; transform: translateY(0) scale(1); }
|
||||
}
|
||||
.animate-in { animation: jrAnimateIn 0.28s ease-out both; }
|
||||
|
||||
.snap-y-mandatory {
|
||||
scroll-snap-type: y mandatory;
|
||||
scroll-behavior: smooth;
|
||||
@@ -163,38 +175,6 @@
|
||||
</head>
|
||||
<body class="selection:bg-job-sage selection:text-white">
|
||||
|
||||
<!-- ================= ÉCRAN DE CHARGEMENT VIDÉO (SPLASH SCREEN) ================= -->
|
||||
<div id="jobrunner-splash-screen" style="position:fixed;top:0;left:0;right:0;bottom:0;z-index:99999;background-color:#F2F0E6;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:opacity 0.7s ease-out;user-select:none;">
|
||||
<div style="position:relative;width:100%;max-width:580px;padding:0 16px;display:flex;flex-direction:column;align-items:center;justify-content:center;">
|
||||
<video id="splash-video" src="assets/video/loading.mp4" autoplay muted playsinline style="width:100%;height:auto;max-height:75vh;object-fit:contain;border-radius:1rem;pointer-events:none;user-select:none;display:block;"></video>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function dismissJobrunnerSplash() {
|
||||
const splash = document.getElementById('jobrunner-splash-screen');
|
||||
if (!splash || splash.dataset.dismissed) return;
|
||||
splash.dataset.dismissed = 'true';
|
||||
splash.style.opacity = '0';
|
||||
splash.style.pointerEvents = 'none';
|
||||
setTimeout(function() {
|
||||
if (splash && splash.parentNode) splash.parentNode.removeChild(splash);
|
||||
}, 750);
|
||||
}
|
||||
(function() {
|
||||
const v = document.getElementById('splash-video');
|
||||
if (v) {
|
||||
v.addEventListener('ended', dismissJobrunnerSplash);
|
||||
const p = v.play();
|
||||
if (p !== undefined) {
|
||||
p.catch(function() {
|
||||
setTimeout(dismissJobrunnerSplash, 1200);
|
||||
});
|
||||
}
|
||||
setTimeout(dismissJobrunnerSplash, 5500);
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
|
||||
<div id="app-wrapper">
|
||||
|
||||
<!-- Toast Notification Global -->
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur