/pan-z

framework agnostic, 0 dependency, mobile and desktop friendly, GPU accelerated and easy to use pan/zoom library with a simple programmatic API.

Primary LanguageJavaScript

A Pan/Zoom library

Pan-Z is a framework agnostic, 0 dependency, mobile and desktop friendly, GPU accelerated and easy to use pan/zoom library with an programmatic API.

docs + demos

Install

npm install @thesoulfresh/pan-z

Usage

    import PanZ from '@thesoulfresh/pan-z'

    // Attach pan/zoom functionality to an HTML element.
    const pz = new PanZ(element);

    // Remove pan/zoom functionality
    pz.destroy();