Needlessly Provoking Marsupials
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@better-scroll/slide

2.0.4 • Public • Published

@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
})

Install

npm i @better-scroll/slide

DownloadsWeekly Downloads

2,486

Version

2.0.4

License

MIT

Unpacked Size

122 kB

Total Files

22

Last publish

Collaborators

  • avatar
  • avatar
  • avatar