nicolasbinet / vue3-carousel

Vue 3 carousel component

Home Page:https://ismail9k.github.io/vue3-carousel/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vue 3 Carousel

Modern lightweight Vue 3 carousel component

npm npm

Documentation

https://ismail9k.github.io/vue3-carousel/

TODO

  • Responsive breakpoints
  • Mouse/touch dragging
  • Infinity scroll (wrapping around)
  • Auto play
  • Add classes for active and for visible slides
  • RTL
  • Vertical scroll
  • Sync multiple carousel
  • Enrich a11y

Getting started

Installation

First step is to install it using yarn or npm:

npm install vue3-carousel

# or use yarn
yarn add vue3-carousel

Basic Using

<template>
  <carousel :items-to-show="1.5">
    <slide v-for="slide in 10" :key="slide">
      {{ slide }}
    </slide>

    <template #addons>
      <navigation />
      <pagination />
    </template>
  </carousel>
</template>

<script>
// If you are using PurgeCSS, make sure to whitelist the carousel CSS classes
import 'vue3-carousel/dist/carousel.css';
import { Carousel, Slide, Pagination, Navigation } from 'vue3-carousel';

export default {
  name: 'App',
  components: {
    Carousel,
    Slide,
    Pagination,
    Navigation,
  },
};
</script>

About

Vue 3 carousel component

https://ismail9k.github.io/vue3-carousel/


Languages

Language:TypeScript 87.1%Language:CSS 7.9%Language:JavaScript 3.6%Language:Shell 1.4%