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

2.5.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
}

Package Sidebar

Install

npm i @better-scroll/indicators

Weekly Downloads

2,475

Version

2.5.1

License

none

Unpacked Size

78.1 kB

Total Files

16

Last publish

Collaborators

  • hubvue
  • dolymood
  • candyj
  • theniceangel