Modern Lightweight Vue 3 Carousel Component Plugin

Vue 3 Carousel is a lightweight circular component, talk and respond to VUE.JS 3 applications.

vue carousel, vue product carousel, vuesax carousel, v carousel example, vue carousel with thumbnails, vue dynamic carousel, vue card carousel

An Accessible Touch-enabled Slider Web Component | fg-carousel

How to make use of it:

Install and download:

# Yarn
$ yarn add vue3-carousel

# NPM
$ npm i vue3-carousel

1. Import and register component.

import 'vue3-carousel/dist/carousel.css';
import { Carousel, Slide, Pagination, Navigation } from 'vue3-carousel';
export default {
  components: {
    Carousel,
    Slide,
    Pagination,
    Navigation,
  },
};

2. Add a Carousel component to the application.

<template>
  <carousel>
    <slide v-for="slide in 10" :key="slide">{{ slide }}</slide>
    <template #addons>
      <navigation />
    </template>
  </carousel>
</template>

3. Possible props to customize circular.

// count of items to showed per view
itemsToShow: {
  default: 1,
  type: Number,
},
// count of items to be scrolled
itemsToScroll: {
  default: 1,
  type: Number,
},
// control infinite scrolling mode
wrapAround: {
  default: false,
  type: Boolean,
},
// control snap position alignment
snapAlign: {
  default: 'center',
  validator(value: string) {
    // The value must match one of these strings
    return ['start', 'end', 'center'].includes(value);
  },
},
// sliding transition time in ms
transition: {
  default: 300,
  type: Number,
},
// an object to pass all settings
settings: {
  default() {
    return {};
  },
  type: Object,
},
// an object to store breakpoints
breakpoints: {
  default: null,
  type: Object,
},
// time to auto advance slides in ms
autoplay: {
  default: 0,
  type: Number,
},
// slide number number of initial slide
modelValue: {
  default: undefined,
  type: Number,
},
// toggle mouse dragging.
mouseDrag: {
  default: true,
  type: Boolean,
},
// toggle mouse dragging.
touchDrag: {
  default: true,
  type: Boolean,
},

Available Props

PropDefaultDescription
itemsToShow1count of items to showed per view (can be a fraction).
itemsToScroll1number of slides to be scrolled
currentSlide0index number of the initial slide. Deprecated 0.1.20
wrapAroundfalseenable infinite scrolling mode.
snapAlign‘center’controls the carousel position alignment, can be ‘start’, ‘end’, ‘center[-odd|-even]’
transition300sliding transition time in ms.
autoplay0Auto play time in ms.
settings{ }an object to pass all settings.
breakpointsnullan object to pass all the breakpoints settings.
modelValue0index number of the initial slide. 0.1.20
mouseDragtruetoggle mouse dragging 0.1.23
touchDragtruetoggle pointer touch dragging 0.1.23
pauseAutoplayOnHovertruetoggle if auto play should pause on mouse hover 0.1.25

Slots Attributes

PropDescription
slideWidththe width of a single slide element.
currentSlideindex number of the current slide.
slidesCountthe count of all slides

Modern Carousel Component For Vue 3, Vue 3 Carousel Plugin/Github, vue carousel 3d codepen


See Demo And Download

Official Website(ismail9k): Click Here

This superior jQuery/javascript plugin is developed by ismail9k. For extra Advanced Usages, please go to the official website.

Related Posts

vue-image-slider-transition

Image Slider With 20 Cool Transitions Component | vue-flux

Vue flux is an image slider developed with Vuejs 2 that comes with 20+ nice transitions out of the box. Included transitions 2D transitions Fade: Fades from…

simple-parallax-scrolling

Simple background Image Parallax Scroll Plugin In jQuery

Background parallax effect is a simple jQuery background image without any library. Uses jQuery’s scroll() function to track the scroll event and applies the exact parallax scroll…

bootstrap-color-picker-plugin

Modular Color Picker Plugin for Bootstrap | BS Colorpicker

Bootstrap Colorpicker is a standard color picker plugin for Bootstrap 4. Colorpicker Plugin for Bootstrap 5/4/3 frameworks that allow you to add a color picker to an…

gdpr-iframe-manager-js

GDPR Friendly iFrame Manager In Vanilla JS | iframemanager

IframeMananger is a lightweight JavaScript plug-in that helps you to comply with GDPR by completely removing iframes at first and setting a notice related to that service….

diagonal-slider-anime-js

Diagonal Thumbnails Carousel Slider | Anime.js

Diagonal Slider is a cool mini carousel made with Anime.js JavaScript library. It takes a bunch of pictures and turns them into a circular user interface where…

Notiflix-Notification

Notiflix Notification, Popup Boxes, Loading Indicators, and More in JavaScript Library

Notiflix is the JavaScript library of client-side unblocked notifications, popups, load indicators, and more that makes your web projects so much better. Notiflix is a versatile, highly…