0.0.5 • Published 6 years ago

cinema-zoom v0.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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 :)