|
před 6 dny | |
---|---|---|
.. | ||
dist | před 6 dny | |
src | před 6 dny | |
LICENSE | před 6 dny | |
README.md | před 6 dny | |
README_zh-CN.md | před 6 dny | |
package.json | před 6 dny |
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
}