@better-scroll/slide
TypeScript icon, indicating that this package has built-in type declarations

2.5.1 • 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
})

Package Sidebar

Install

npm i @better-scroll/slide

Weekly Downloads

4,320

Version

2.5.1

License

MIT

Unpacked Size

156 kB

Total Files

22

Last publish

Collaborators

  • hubvue
  • dolymood
  • candyj
  • theniceangel