code: function swap() {
          iv1.x.anim().delay(1000).from(0).to(-sw).dur(3000).start();
          iv2.x.anim().delay(1000).from(sw).to(0).dur(3000)
              .then(afterAnim).start();
      }
docs: animate out and in