1.1.1 • Published 4 months ago

vue-slideshow-library v1.1.1

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

vue-slideshow-library

Simple component library for implementing slideshow-like pages in your web app.

Setup and usage

  • Installing the package
npm install vue-slideshow-library
  • Importing it in your project
import { Slideshow } from vue-slideshow-library
  • Using it in a template
<Slideshow
    @scroll="(count) => console.log(count)"
    :slides="Slide[]"
    :background-color-transition-duration-in-miliseconds="<number>"
    :background-color-transition-mode="<mode or bezier curve>"
/>

where Slide is

type Slide = {
  component: DefineComponent,
  props?: Object,
  backgroundColor?: string,
  transitionName?: string
}

Other

  • Component also provides a scroll emit every time a new slide is displayed, so you can use it to sync with some other features of your app.
  • Slides can be scrolled by mouse wheel, touch and arrow keys.

Contributing

  • You can clone this repo and work on it if you want to make it better :).
1.1.1

4 months ago

1.1.0

5 months ago

1.0.0

5 months ago