code: function(next, options){
  		var self = this;
  		options = options || {};
  		_.defaults(options, {
  		// options = {
  			outClass: 'pt-page-moveToLeft',
  			inClass: 'pt-page-moveFromRight',
  
  			force: false,
  		});
  
  		if(options.animation)
  			_.extend(options, options.animation);
  
  		// If we still animating, but not forcing, cancel change.
  		if( this.isAnimating && !options.force)
  			return false;
  		this.isAnimating = true;
  		
  		var $currPage = this.$currentView;
  		var $nextPage = (next ? this.saveView(next).addClass( 'pt-page-current' ) : null);
  
  		if(!this.supportAnimation)
  			return self.setPage($nextPage);
  
  		this.trigger('start-animate');
  		if($currPage){
  			$currPage.addClass( options.outClass ).on( self.animEndEventName, function() {
  				$currPage.off( self.animEndEventName );
  				self.endCurrPage = true;
  				checkEndAnimation();
  			});
  		}else{
  			self.endCurrPage = true;
  			checkEndAnimation();
  		}
  
  		if($nextPage){
  			$nextPage.addClass( options.inClass ).on( self.animEndEventName, function() {
  				$nextPage.off( self.animEndEventName );
  				self.endNextPage = true;
  				checkEndAnimation();
  			} );
  		}else{
  			self.endNextPage = true;
  			checkEndAnimation();
  		}
  
  		function checkEndAnimation(){
  			if(self.endNextPage && self.endCurrPage)
  				self.setPage($nextPage);
  		}
  	}
docs: /*
  Set the current page. With animations.