Commit dc19ba65 authored by Nicolas Pernoud's avatar Nicolas Pernoud
Browse files

fix: animation sequence

parent e51192cb
Pipeline #6120 passed with stages
in 2 minutes and 49 seconds
......@@ -75,7 +75,7 @@
<div class="navbar-menu">
<div class="navbar-end">
<div class="navbar-item"><p>v4.3.26</p></div>
<div class="navbar-item"><p>v4.3.27</p></div>
......@@ -54,13 +54,13 @@ async function navigate() {
async function load(element, domAlteration) {
await AnimateCSS(element, "fadeOut");
// Start the alteration
const alteration = domAlteration();
await AnimateCSS(spinner, "fadeIn");
if (typeof domAlteration === "function") {
await domAlteration();
await alteration; // Await for alteration end
await AnimateCSS(spinner, "fadeOut");
AnimateCSS(element, "fadeIn");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment