cinema-zoom

0.0.5 • Public • Published

Cinema-Zoom

Zoom images to cinema mode

Demo

Check out the demo

How to install?

There are two ways of installing cinema-zoom

Using npm...

Get the package

$ npm install cinema-zoom

Import the package

import 'cinema-zoom';

... or through HTML

<script src="cinema-zoom.min.js"></script>

How to use?

Add a data-cz-zoom data attribute with a path to a larger version of the the image you want to zoom.

<img src="path/to/image.png" data-cz-zoom="/path/to/larger/image.png"/> 

That's all :)

Package Sidebar

Install

npm i cinema-zoom

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

315 kB

Total Files

4

Last publish

Collaborators

  • dejorrit