update rendering (try to fix tile not appearing)

This commit is contained in:
Gabriel Augendre 2024-01-23 00:29:31 +01:00
parent a703b2e2a8
commit 599de1d25f

View file

@ -51,8 +51,10 @@ function round() {
let zone = zones[Math.floor(Math.random() * zones.length)];
zone.classList.remove("inactive");
setTimeout(function () {
setTimeout(function() {
zone.style.transition = `background-color ${timeBetween-(MIN_TIME_BETWEEN / 2)}ms`;
}, 100);
setTimeout(function () {
zone.classList.add("fade-out");
}, MIN_TIME_BETWEEN / 2);
let zoneTimeout = setTimeout(() => {