code: function Slideout(options) {
    options = options || {};
  
    // Sets default values
    this._startOffsetX = 0;
    this._currentOffsetX = 0;
    this._opening = false;
    this._moved = false;
    this._opened = false;
    this._preventOpen = false;
  
    // Sets panel
    this.panel = options.panel;
    this.menu = options.menu;
  
    // Sets options
    this._touch = options.touch === undefined ? true : options.touch && true;
    this._side = options.side || 'left';
    this._easing = options.fx || options.easing || 'ease';
    this._duration = parseInt(options.duration, 10) || 300;
    this._tolerance = parseInt(options.tolerance, 10) || 70;
    this._padding = this._translateTo = parseInt(options.padding, 10) || 256;
    this._orientation = this._side === 'right' ? -1 : 1;
    this._translateTo *= this._orientation;
  
    // Sets  classnames
    if (!this.panel.classList.contains('slideout-panel')) {
      this.panel.classList.add('slideout-panel');
    }
    if (!this.panel.classList.contains('slideout-panel-' + this._side)) {
      this.panel.classList.add('slideout-panel-' + this._side);
    }
    if (!this.menu.classList.contains('slideout-menu')) {
      this.menu.classList.add('slideout-menu');
    }
    if (!this.menu.classList.contains('slideout-menu-' + this._side)) {
      this.menu.classList.add('slideout-menu-' + this._side);
    }
  
    // Init touch events
    if (this._touch) {
      this._initTouchEvents();
    }
  }
docs: Slideout constructor