|
3 天之前 | |
---|---|---|
.. | ||
dist | 3 天之前 | |
src | 3 天之前 | |
LICENSE | 3 天之前 | |
README.md | 3 天之前 | |
README_zh-CN.md | 3 天之前 | |
package.json | 3 天之前 |
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
}