UNPKG

vue-carousel-3d

Version:

Beautiful, flexible and touch supported 3D Carousel for Vue.js

52 lines (47 loc) 1.41 kB
import type { Component, ComponentPublicInstance, Plugin } from 'vue' export interface Carousel3dInstance extends ComponentPublicInstance { currentIndex: number total: number goNext(): void goPrev(): void goSlide(index: number | string): void goFar(index: number): void startAutoplay(): void pauseAutoplay(): void } export interface Carousel3dProps { count?: number | string perspective?: number | string display?: number | string loop?: boolean animationSpeed?: number | string dir?: 'rtl' | 'ltr' width?: number | string height?: number | string border?: number | string space?: number | string startIndex?: number | string clickable?: boolean disable3d?: boolean minSwipeDistance?: number inverseScaling?: number | string controlsVisible?: boolean controlsPrevHtml?: string controlsNextHtml?: string controlsWidth?: number | string controlsHeight?: number | string dots?: boolean dotsPosition?: 'bottom' | 'top' horizonOffset?: number | string lazy?: boolean beforeSlideChange?: (index: number, fromIndex: number) => boolean oneDirectional?: boolean ariaLabel?: string autoplay?: boolean autoplayTimeout?: number autoplayHoverPause?: boolean } declare const VueCarousel3d: Plugin export default VueCarousel3d export const Carousel3d: Component export const Slide: Component