Have ideas to improve npm?Join in the discussion! »

    @better-scroll/zoom
    TypeScript icon, indicating that this package has built-in type declarations

    2.2.1 • Public • Published

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

    Install

    npm i @better-scroll/zoom

    DownloadsWeekly Downloads

    2,463

    Version

    2.2.1

    License

    MIT

    Unpacked Size

    89.9 kB

    Total Files

    13

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar