How to use the photoswipe/dist/photoswipe.min function in photoswipe

To help you get started, we’ve selected a few photoswipe 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 qious / gallery-server / assets / js / pswp.init.js View on Github external
}
    } else {
      options.index = parseInt(index, 10)
    }

    // exit if index not found
    if (isNaN(options.index)) {
      return
    }

    if (disableAnimation) {
      options.showAnimationDuration = 0
    }

    // Pass data to PhotoSwipe and initialize it
    let gallery = new PhotoSwipe(pswpElement, PhotoSwipeUIDefault, items, options)
    gallery.init()
  }

photoswipe

JavaScript gallery

MIT
Latest version published 2 months ago

Package Health Score

78 / 100
Full package analysis