vue-flickity

A Vue Slider / Carousel Component for Flickity.js

Github stars Tracking Chart

Flickity for Vue.js

npm
npm
npm

A Vue Component for Flickity.js - See a live demo here.

Vue support

Supports only Vue >= 2

Installation and usage

See official documentation here.

$ npm install vue-flickity --save

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();
    }
  }
});
<flickity ref="flickity" :options="flickityOptions">
  <div class="carousel-cell">1</div>
  <div class="carousel-cell">2</div>
  <div class="carousel-cell">3</div>
  <div class="carousel-cell">4</div>
  <div class="carousel-cell">5</div>
</flickity>

<!-- if you don't want to use the buttons Flickity provides -->
<button @click="previous()">Custom Previous Button</button>
<button @click="next()">Custom Next Button</button>

Main metrics

Overview
Name With Ownerdrewjbartlett/vue-flickity
Primary LanguageVue
Program languageVue (Language Count: 2)
Platform
License:
所有者活动
Created At2016-12-05 23:14:55
Pushed At2021-08-10 17:49:21
Last Commit At2019-07-29 20:51:42
Release Count0
用户参与
Stargazers Count371
Watchers Count9
Fork Count55
Commits Count70
Has Issues Enabled
Issues Count49
Issue Open Count20
Pull Requests Count13
Pull Requests Open Count5
Pull Requests Close Count4
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private