jQuery plugin for PhotoSwipe.
- 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>`
- Step 2: include jQuery Photoswipe plugin:
`
<script src="path/to/jquery.photoswipe.js"></script>`
- 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">
- Step 4: apply jQuery PhotoSwipe plugin:
$('.image-slider--floor-plan').photoSwipe({ link: '.js-lightbox' });