veer-vue-slider

1.1.9 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i veer-vue-slider

Weekly Downloads

0

Version

1.1.9

License

MIT

Last publish

Collaborators

  • dolbex