Vue Picture Swipe Gallery
Vue Picture Swipe Gallery (a gallery of image with thumbnails, lazy-load and swipe) backed by photoswipe
This component is a simple wrapper for the awesome Photoswipe. It's a Vue plugin that displays a gallery of image with swipe function (and more). Includes lazy (smart) loading (mobile friendly) and thumbnails.
Install
Usage
You can use it as you want. Here are some examples if you want to use it inline, or in a .vue
file component or even with Laravel.
Inline usage
You can using it inline:
Just remember to register the component:
Usage in another component
Create a component Example.vue
. Then paste this:
Usage with Laravel
Edit resources/assets/js/app.js
and add this just before the new Vue
lines.
Then run your watcher:
Advanced usage
PhotoSwipe options
Use options
for Photoswipe options.