demos/slideshow/slideshow.js
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();
    }
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();
    }
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 ( ) ; }
animate out and in
animate out and in