stencil-img-zoom
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

img-zoom

Built With Stencil

What is it?

img-zoom is a web component that handles mouse zoom / drag for HTML images. Like no other, it does not resort to using CSS background images, or a canvas, but works directly with the img tag.

Usage

To use this component in your app, no matter what framework you are using, follow these steps:

  • pop this script tag <script async defer src='https://unpkg.com/img-zoom@0.0.1/dist/img-zoom.js'></script> into your index.html

API

Properties:

Examples

<img-zoom src="assets/img.jpg" alt="Tiger"/>

Readme

Keywords

none

Package Sidebar

Install

npm i stencil-img-zoom

Weekly Downloads

97

Version

0.0.1

License

MIT

Unpacked Size

467 kB

Total Files

33

Last publish

Collaborators

  • amit-my