tz-better-scroll-zoom
v2.5.5
Published
a BetterScroll plugin to enlarge or narrow
Downloads
26
Maintainers
Readme
@better-scroll/pull-up
Plugin for zooming in or out.
Usage
import BScroll from 'tz-better-scroll-core'
import Zoom from 'tz-better-scroll-zoom'
BScroll.use(Zoom)
const bs = new BScroll('.zoom-wrapper', {
freeScroll: true,
scrollX: true,
scrollY: true,
disableMouse: true,
useTransition: true,
zoom: {
start: 1,
min: 0.5,
max: 2
}
})