simplyslider
v0.1.0
Published
Simply built vue image slider.<br />
Downloads
2
Readme
Simply built vue image slider.
Project structure
In src sub-folder we have VueJS application including
- entry.js
- SimpleSlider.vue
Setup
npm i simpleslider
In your entry point (where Vue is included, such as app.js/main.js) add the code below
import SimpleSlider from 'simpleslider'
Vue.use(SimpleSlider)
Project requirements
- none
Props
There is a number of props to use, you must set the images
images
(array of objects) e.g. [ { title: 'test', url: '/some/url', id: 1, text: 'Lorem ipsum, etc, etc' }, { title: 'test 2', url: '/some/url2', id: 2 }]interval
(number) how often to automatically change images, in milliseconds, defaults to 15000
Any problems can be reported to https://github.com/Steveo5/simple-slider