Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/drewjbartlett/vue-flickity
- Owner: drewjbartlett
- Created: 2016-12-05T23:14:55.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-08-10T17:49:21.000Z (over 3 years ago)
- Last Synced: 2024-04-23T10:34:19.839Z (7 months ago)
- Topics: carousel, flickity, slider, vue, vue-components
- Language: Vue
- Homepage: http://drewjbartlett.com/demos/vue-flickity/
- Size: 161 KB
- Stars: 374
- Watchers: 10
- Forks: 56
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
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/).
## 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
1
2
3
4
5Custom Previous Button
Custom Next Button
```