|
il y a 6 jours | |
---|---|---|
.. | ||
dist | il y a 6 jours | |
src | il y a 6 jours | |
LICENSE | il y a 6 jours | |
README.md | il y a 6 jours | |
README_zh-CN.md | il y a 6 jours | |
package.json | il y a 6 jours |
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
}