1.0.2 • Published 4 years ago

vue-image-slider v1.0.2

Weekly downloads
40
License
MIT
Repository
github
Last release
4 years ago

vue-image-slider

Install

npm install vue-image-slider --save

Usage

<div id="app">
	<vue-image-slider :images="imageArray" :intervalVal=3000 :height=700 :width=1200 />
</div>
import VueImageSlider from 'vue-image-slider'

export default {
 name: 'app',
 components: {
  VueImageSlider
 },
 data() {
  return {
   imageArray: [
    'https://cdn.pixabay.com/photo/2015/12/12/15/24/amsterdam-1089646_1280.jpg',
    'https://cdn.pixabay.com/photo/2016/02/17/23/03/usa-1206240_1280.jpg',
    'https://cdn.pixabay.com/photo/2015/05/15/14/27/eiffel-tower-768501_1280.jpg',
    'https://cdn.pixabay.com/photo/2016/12/04/19/30/berlin-cathedral-1882397_1280.jpg'
   ],
  }
 },
}

Props

nametypedefaultdescription
widthString700pxSlider width
heightString400pxSlider height
intervalValNumberUndefinedDelay of autoplay
imagesArrayUndefinedArray of images

License

MIT