jquery-photoswipe

1.0.3 • Public • Published

jQuery Photoswipe

Description

jQuery plugin for PhotoSwipe.

Installation

Manual Install

  1. Step 1: include JS and CSS files of Photo Swipe:

`

<script src="path/to/photoswipe.min.js"></script> <script src="path/to/photoswipe-ui-default.min.js"></script>

`

  1. Step 2: include jQuery Photoswipe plugin:

`

<script src="path/to/jquery.photoswipe.js"></script>

`

  1. Step 3: add data size tag to your gallery links, attribute should describe image dimensions.

<a href="imageUrl.jpg" class="js-lightbox" data-size="1350x901">

  1. Step 4: apply jQuery PhotoSwipe plugin:

$('.image-slider--floor-plan').photoSwipe({ link: '.js-lightbox' });

Package Sidebar

Install

npm i jquery-photoswipe

Weekly Downloads

2

Version

1.0.3

License

ISC

Last publish

Collaborators

  • krzysztof.lojniewski