diff --git a/js/dom.js b/js/dom.js index dbdcbae9..23d1a351 100644 --- a/js/dom.js +++ b/js/dom.js @@ -119,7 +119,12 @@ function animateElement( } resolve(); }); - element.classList.add(className); + if (element.classList.contains(className)) { + element.classList.remove(className); + setTimeout(() => element.classList.add(className)); + } else { + element.classList.add(className); + } }); }