|
há 1 semana atrás | |
---|---|---|
.. | ||
dist | há 1 semana atrás | |
src | há 1 semana atrás | |
LICENSE | há 1 semana atrás | |
README.md | há 1 semana atrás | |
README_zh-CN.md | há 1 semana atrás | |
package.json | há 1 semana atrás |
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
}