1. @better-scroll/zoom
a BetterScroll plugin to enlarge or narrow
@better-scroll/zoom
Package: @better-scroll/zoom
Created by: ustbhuangyi
Last modified: Fri, 19 May 2023 10:27:11 GMT
Version: 2.5.1
License: MIT
Downloads: 10,737
Repository: https://github.com/ustbhuangyi/better-scroll

Install

npm install @better-scroll/zoom
yarn add @better-scroll/zoom

@better-scroll/pull-up

中文文档

Plugin for zooming in or out.

Usage

 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
  }
})

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin