|
преди 6 дни | |
---|---|---|
.. | ||
dist | преди 6 дни | |
src | преди 6 дни | |
LICENSE | преди 6 дни | |
README.md | преди 6 дни | |
README_zh-CN.md | преди 6 дни | |
package.json | преди 6 дни |
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
}