|
hai 6 días | |
---|---|---|
.. | ||
dist | hai 6 días | |
src | hai 6 días | |
LICENSE | hai 6 días | |
README.md | hai 6 días | |
README_zh-CN.md | hai 6 días | |
package.json | hai 6 días |
Indicator can be used to achieve magnifying glass, parallax scrolling and other effects.
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
}