@better-scroll/slide
v2.5.1
Published
a carousel effect triggered by BetterScroll
Downloads
17,863
Readme
@better-scroll/slide
The ability to inject a Carousel effect for BetterScroll.
Usage
import BScroll from '@better-scroll/core'
import Slide from '@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
})