Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/drewjbartlett/vue-flickity

A Vue Slider / Carousel Component for Flickity.js
https://github.com/drewjbartlett/vue-flickity

carousel flickity slider vue vue-components

Last synced: 3 months ago
JSON representation

A Vue Slider / Carousel Component for Flickity.js

Awesome Lists containing this project

README

        

# Flickity for Vue.js

[![npm](https://img.shields.io/npm/v/vue-flickity.svg?style=flat-square)](https://www.npmjs.com/package/vue-flickity)
[![npm](https://img.shields.io/npm/dt/vue-flickity.svg?style=flat-square)](https://www.npmjs.com/package/vue-flickity)
[![npm](https://img.shields.io/travis/drewjbartlett/vue-flickity.svg?branch=master&style=flat-square)](https://www.npmjs.com/package/vue-flickity)

A Vue Component for Flickity.js - See a live demo [here](http://drewjbartlett.com/demos/vue-flickity/).


Flickity
Vue.js

## Vue support

Supports only Vue >= 2

## Installation and usage

See official documentation [here](http://flickity.metafizzy.co/).

$ npm install vue-flickity --save

```js
import Flickity from 'vue-flickity';

new Vue({
components: {
Flickity
},

data() {
return {
flickityOptions: {
initialIndex: 3,
prevNextButtons: false,
pageDots: false,
wrapAround: true

// any options from Flickity can be used
}
}
},

methods: {
next() {
this.$refs.flickity.next();
},

previous() {
this.$refs.flickity.previous();
}
}
});
```

```html





Custom Previous Button
Custom Next Button
```