tz-better-scroll-indicators
v2.5.5
Published
used as parallax scrolling, magnifier effects
Downloads
18
Maintainers
Readme
@better-scroll/indicators
Indicator can be used to achieve magnifying glass, parallax scrolling and other effects.
Usage
import BScroll from 'tz-better-scroll-core'
import Indicators from 'tz-better-scroll-indicators'
BScroll.use(Indicators)
const bs = new BScroll('.wrapper', {
indicators: [
relationElement: someHTMLElement
]
})
interface IndicatorOptions {
interactive?: boolean
ratio?: Ratio
relationElementHandleElementIndex?: number
relationElement: HTMLElement
}