Skip to content

Commit

Permalink
fix fade
Browse files Browse the repository at this point in the history
  • Loading branch information
TodePond committed Oct 14, 2024
1 parent e630350 commit 655d95e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flok/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@
}

// fade out header, then update text, then fade in
header.classList.add("fade-out");
marquee.classList.add("fade-out");
setTimeout(() => {
marquee.innerHTML = currentMantra;
header.classList.remove("fade-out");
header.classList.add("fade-in");
marquee.classList.remove("fade-out");
marquee.classList.add("fade-in");
setTimeout(() => {
header.classList.remove("fade-in");
marquee.classList.remove("fade-in");
}, FADE_TIME);
}, FADE_TIME);
}, MANTRA_UPDATE_INTERVAL);
Expand Down

0 comments on commit 655d95e

Please sign in to comment.