@better-scroll/indicators
v2.5.1 scroll iscroll javascript typescript ios scrollbar minimap magnifier parallax scroll and 1 more...
@better-scroll/indicators
Indicator can be used to achieve magnifying glass, parallax scrolling and other effects.
Usage
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
}
npm i @better-scroll/indicators
Metadata
- Unknown
- Whatever
- jizhi
- released 3/29/2023