@pluginjs/zoom
v0.8.12
Published
A flexible modern zoom js plugin.
Downloads
113
Readme
Zoom
A flexible modern zoom js plugin.
Introduction
Installation
Yarn
yarn add @pluginjs/zoom
NPM
npm i @pluginjs/zoom
Getting Started
CDN:
Development:
<script src="https://unpkg.com/@pluginjs/zoom/dist/zoom.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@pluginjs/zoom/dist/zoom.css">
Production:
<script src="https://unpkg.com/@pluginjs/zoom/dist/zoom.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@pluginjs/zoom/dist/zoom.min.css">
Initialize
HTML:
<div class="element"></div>
ECMAScript Module:
import Zoom from "@pluginjs/zoom"
import "@pluginjs/zoom/dist/zoom.css"
Zoom.of(document.querySelector('.element'), options)
CommonJS:
require("@pluginjs/zoom/dist/zoom.css")
const Zoom = require("@pluginjs/zoom")
Zoom.of(document.querySelector('.element'), options)
Browser:
<link rel="stylesheet" href="https://unpkg.com/@pluginjs/zoom/dist/zoom.css">
<script src="https://unpkg.com/@pluginjs/zoom/dist/zoom.js"></script>
<script>
Pj.zoom('.element', options)
</script>
Browser support
Tested on all major browsers.
| IE / Edge | Firefox | Chrome | Safari | Opera | | --------- | --------- | --------- | --------- | --------- | | IE11, Edge| last 2 versions| last 2 versions| last 2 versions| last 2 versions|
License
@pluginjs/zoom is Licensed under the GPL-v3 license.
If you want to use @pluginjs/zoom project to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary.
For purchase an Commercial License, contact us [email protected].
Copyright
Copyright (C) 2022 Creation Studio Limited.