Nepotistic Pontifex Maximus
    Have ideas to improve npm?Join in the discussion! »

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

    2.2.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
    })

    Install

    npm i @better-scroll/slide

    DownloadsWeekly Downloads

    3,512

    Version

    2.2.1

    License

    MIT

    Unpacked Size

    152 kB

    Total Files

    22

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar