code: function incrementPosition() {
              comparison._animateInterval = setInterval(function () {
                  currentPositionInPercent++;
                  comparison._updatePosition(currentPositionInPercent);
                  if (currentPositionInPercent >= newPositionInPercent) {
                      setFinalPositionAndClearInterval();
                  }
              }, 10);
          }
docs: Support animate functions