) => {
          num.classList.value = "";
        });

        nums[0].classList.add("in");
      }

      function runAnimation() {
        nums.forEach((num, idx) => {
          const nextToLast = nums.length - 1;

          num.addEventListener("animationend", (e) => {
            if (e.animationName === "goIn" && idx != nextToLast) {
              num.classList.remove("in");
              num.classList.add("out");
            } else if (e.animationName === "goOut" && num.nextElementSibling) {
         