veer-vue-slider
v1.1.9
Published
Slider for VueJS 2
Downloads
8
Readme
veer-vue-slider
About
Veer is a simple Vue Js (v2) slider that attempts to handle whatever you want to throw at it. Please let me know what scenarios throw this thing off so I can adjust.
Installation
yarn add veer-vue-slider
or
npm install --save-dev veer-vue-slider
Basic Usage
In your javascript or component:
import Vue from 'vue'
import Veer from './components/Veer'
new Vue({
el: '#app',
components: { Veer }
})
In your HTML or .vue template:
<div id="app">
<veer>
<img src="/static/davide-cantelli-139887.jpg">
<img src="/static/eugene-lim-260668.jpg">
<img src="/static/paul-earle-183430.jpg">
</veer>
</div>
Options
You can pass your options through in an object through the options prop.
<veer :options="{autoplay:false}">
...
</veer>
Below are the available options and the defaults
autoplay: true,
mode: 'fade',
initialDelay: 0,
speed: 4000,
showPrevNext: true,
showPages: true,
pageClass: 'veer-pages',
arrowClass: 'veer-arrows',
width: 'auto',
height: 'auto'
Examples
Clone the project and run
npm run dev
Modify the index.html file