
        element.style.left = xpos + "px";
        element.style.top = ypos + "px";

        animate_hash(element, text)
          .then(() => fade_in(element, time))
          .then(() => fade_out(element, time))
          .then(() => start_animation(element));
      }

      /**
       * Fades an element in over a given window of time.
       * @param {Object} [element] - The DOM element in which the transition applies to.
       * @param {int} [time] - The amount of time for the transition to occur over 