tz-better-scroll-slide
v2.5.5
Published
a carousel effect triggered by BetterScroll
Downloads
17
Maintainers
Readme
@better-scroll/slide
The ability to inject a Carousel effect for BetterScroll.
Usage
import BScroll from 'tz-better-scroll-core'
import Slide from 'tz-better-scroll-slide'
BScroll.use(Slide)
const bs = new BScroll('.div', {
scrollX: false,
scrollY: true,
slide: {
loop: true,
threshold: 100
},
useTransition: true,
momentum: false,
bounce: false,
stopPropagation: true
})