|
2 days ago | |
---|---|---|
.. | ||
dist | 2 days ago | |
src | 2 days ago | |
LICENSE | 2 days ago | |
README.md | 2 days ago | |
README_zh-CN.md | 2 days ago | |
package.json | 2 days ago |
Plugin for zooming in or out.
import BScroll from '@better-scroll/core'
import Zoom from '@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
}
})