vue-image-lightbox-video-extension

A Vue.js package to display an video gallery lightbox
3,225 1
Install
npm install vue-image-lightbox-video-extension
Latest Version:1.0.0
Vue:2
License:MIT
Last Updated:Nov 24, 2017
Links: GitHub  ·  npm
Maintainer: wawlik

vue-image-lightbox

A simple image lightbox component for Vuejs
NPM Package

I use CSS style from react-images

Demo!

Development (NPM / Yarn)

npm run dev
yarn dev

Install

NPM / Yarn

Install the package:

npm install vue-image-lightbox vue-lazyload vue-touch@next
yarn add vue-image-lightbox vue-lazyload vue-touch@next

Then import it in your project At your entry point (main.js normally)

import Vue from 'vue'
import VueLazyLoad from 'vue-lazyload'
import VueTouch from 'vue-touch'
...
Vue.use(VueLazyLoad)
Vue.use(VueTouch, { name: 'v-touch' })

and use the lightbox:

import Lightbox from 'vue-image-lightbox'

export default {
  components: {
    Lightbox,
  },
}
Browser global
<script src="path/to/vue.js"></script>
<script src="path/to/dist/vue-image-lightbox.js"></script>

Usage

You can simply view App.vue to see how to use vue-image-lightbox

Import CSS style

require('vue-image-lightbox/dist/vue-image-lightbox.min.css')
// Use only when you are using Webpack

How to use:

<lightbox :images="images"></lightbox>

images has the structure:

[
  {
    thumb: 'http://example.com/thumb.jpg',
    src: 'http://example.com/image.jpg',
    caption: 'caption to display. receive <html> <b>tag</b>', // Optional
  }
]

Options

Properties

Methods

CREDITS

Most of the CSS belongs to react-images

Contributors:

Related Packages

vue-cool-lightbox

A pretty Vue.js component to display an image gallery lightbox inspired by fancy...

229,123 339
vue-image-lightbox

A Vue.js package to display an image gallery lightbox

157,508 344
vue-cool-lightbox-next

Big thanks to vue-cool-lightbox for the great work.

1,366 0
vue-it-bigger

A simple image / (YouTube) video lightbox component for Vue.js.

42,544 191
vue-tinybox

A slick, yet tiny lightbox gallery for Vue.js

38,510 92

Version History

Version Released License
1.0.0 MIT