cinema-zoom

Zoom images to cinema mode


Keywords
image, zoom, image-zoom, imagezoom, cinema
License
MIT
Install
npm install cinema-zoom@0.0.5

Documentation

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