0.4.14 • Published 1 year ago

vue-carousel-style v0.4.14

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Vue 3 Carousel

Modern lightweight Vue 3 carousel component revamped and styled!

Credits

The whole component was built by: https://ismail9k.github.io/ and style by me for a modern feel and look!

https://ismail9k.github.io/vue-carousel-style/

Features

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

Getting started

Installation

First step is to install it using yarn or npm:

npm install vue-carousel-style

# or use yarn
yarn add vue-carousel-style

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 'vue-carousel-style/dist/carousel.css'
import { Carousel, Slide, Pagination, Navigation } from 'vue-carousel-style'

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

1 year ago

0.4.13

1 year ago

0.3.12

1 year ago