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