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

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

    2.2.1 • Public • Published

    @better-scroll/indicators

    中文文档

    Indicator can be used to achieve magnifying glass, parallax scrolling and other effects.

    Usage

    import BScroll from '@better-scroll/core'
    import Indicators from '@better-scroll/indicators'
    BScroll.use(Indicators)
    
    const bs = new BScroll('.wrapper', {
      indicators: [
        relationElement: someHTMLElement
      ]
    })
    interface IndicatorOptions {
      interactive?: boolean
      ratio?: Ratio
      relationElementHandleElementIndex?: number
      relationElement: HTMLElement
    }

    Install

    npm i @better-scroll/indicators

    DownloadsWeekly Downloads

    1,696

    Version

    2.2.1

    License

    none

    Unpacked Size

    78.1 kB

    Total Files

    16

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar