function Trigger(element, options) {
    _classCallCheck(this, Trigger);
    this.element = element;
    options = extend_default()(new DefaultOptions().trigger, options);
    this.offset = options.offset;
    this.toggle = options.toggle;
    this.once = options.once;
    this.visible = null;
    this.active = true;
  }
Creates a new Trigger from the given element and options

@param {Element|HTMLElement} element
@param {DefaultOptions.trigger} [options=DefaultOptions.trigger] options