How to use swipejs - 2 common examples

To help you get started, we’ve selected a few swipejs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lyfeyaj / swipe / react / swipe.jsx View on Github external
setupSwipe() {
    if (!this.swipeContainer) return;

    let options = this.swipeOptions();

    if (this.instance) {
      this.instance.setup(options);
      if (options.auto) this.instance.restart();
    } else {
      this.instance = new SwipeJS(this.swipeContainer, options);
    }
  }
github lyfeyaj / swipe / react / index.jsx View on Github external
componentDidMount() {
    const {
      startSlide,
      speed,
      auto,
      draggable,
      continuous,
      autoRestart,
      disableScroll,
      stopPropagation,
      callback,
      transitionEnd
    } = this.props;
    this.instance = new SwipeJS(this.refs.swipe, {
      startSlide,
      speed,
      auto,
      draggable,
      continuous,
      autoRestart,
      disableScroll,
      stopPropagation,
      callback,
      transitionEnd
    });
  }

swipejs

Swipe is the most accurate touch slider

MIT
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis

Popular swipejs functions