code: function() {
          var options = this.options,
              animation = options.animation;
  
          // Cycling more than the show amount causes unexpected issues
          if (options.itemsToCycle > options.itemsToShow) {
              options.itemsToCycle = options.itemsToShow;
          }
  
          // Fade animations can only display 1 at a time
          if (animation === 'fade') {
              options.itemsToShow = options.itemsToCycle = 1;
              options.infinite = false;
  
          // Determine the dimension and position based on animation
          } else if (animation === 'slide-up') {
              this._dimension = 'height';
              this._position = 'top';
  
          } else if (animation === 'slide') {
              this._dimension = 'width';
              this._position = options.rtl ? 'right' : 'left';
          }
      }
docs: Setup the carousel state to introspecting property values and resetting options.
  
  @private