1.2.4 • Published 6 years ago

seamless-slider v1.2.4

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

seamless-slider

seamless-slider is a carousel plugin for Zepto & jQuery

Installation

Prerequisites:

  • zepto 1.2.0 event fx touch / jQuery

NPM

$ npm install seamless-slider -save 

Usage

<div id="slider-box">
    <div class="slider-item">1</div>
    <div class="slider-item">2</div>
    <div class="slider-item">3</div>
    <div class="slider-item">4</div>
</div>
import Slider from 'seamless-slider'

const slider = new Slider('#slider-box', '.slider-item', {
    activeColor: 'rgb(45,45,45)'
})

Props

NameTypeDefaultDescription
activeColorString'#00BCD4'Color of the current active indicator
autoPlayBooleantrueWhether to play automatically
autoPlayIntervalNumber2000The number of milliseconds played automatically
autoautoPlayDirString'left'Automatic play direction. Enumeration value: 'left', 'right'
controllersArray'indicator'Controllers to be rendered. Controllers: 'indicator'
switchingIntervalNumber500Interval for switching sliders
circulatingBooleantrueWhether to loop
initIdxNumber0Initial display serial number

License

MIT

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago