2.5.1 • Published 1 year ago

@better-scroll/indicators v2.5.1

Weekly downloads
1,104
License
-
Repository
github
Last release
1 year ago

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