0.0.13 • Published 5 years ago

vuescroll-carousel v0.0.13

Weekly downloads
59
License
MIT
Repository
-
Last release
5 years ago

vuescroll-carousel

Introduction

vuescroll-carousel is a carousel plugin based on ^vuescroll@4.9.0.

It seems like swiper. You can see the guide below.

Demo

Get Started

  1. You should install Vue@2.x , vuescroll@4.9.0+ and vuescroll-carousel , and registry the plugins.
 npm i vue vuescroll vuescroll-carousel -S
import Vue from vue;
import vuescroll from vuescroll;
import vuescroll/dist/vuescroll.css;
// import carousel plugin and its css file
import vuescrollCarousel from vuescroll-carousel;
import vuescroll-carousel/dist/index.css;

// reigstry the plugin

Vue.use(vuescroll);
Vue.use(vuescrollCarousel);
  1. Wrap the element and that's all.
<vuescroll-carousel>
  <div v-for="i in 10" :key="i">{{i}}</div>
</vuescroll-carousel>

Props and Api

Props

PropNameDefaultDescription
typehh or v. h means scrolling on horizontal direction and v is on vertical direction.
looptrueWhether carousel is connected between the end and the end or not.
autoPlaytruewhether play the carousel automatically or not.
intervalTime1000Interval time of auto-play, only enable when autoPlay is enable.
playSpeed300play speed.
indicatortrueshow indicator or not
currentIndex1the index of current active item, strat from 1.

Api

Api NameDescriptionArguments
refreshrefresh the compoennt's status. All states will be recalculated.-
goToPageGo to the specified page.(pageIndex: Number, animate: Boolean)
prevgo to pre page.
nextgo to next page.

Author

WangYi7099(Yves Wang)

License

MIT

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago