1.0.0 • Published 5 months ago

js-image-magnify v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

js-image-magnify

This package enables you to magnifiy on images, for example in product pages or galleries.

Installation

Include it in your project:

<script src="index.js"></script>

Usage

<div class="container">
  <!-- The area that indicates where to magnify on the image  -->
  <div class="squareZoom"></div>
  <!-- The image you want to magnify on it -->
  <img src="img/picture.jpg" alt="picture" class="img" />
  <!-- The place of showing magnified area -->
  <div class="showZoomImg" style="background-image: url(img/picture.jpg)"></div>
</div>
1.0.0

5 months ago