Skip to content

fatemeh-khoshkam/js-image-magnify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-image-magnify

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

In js-image-magnify-example we use this package. You may want to inspect that to learn more.

Installation

Include it in your project:

<link
  rel="stylesheet"
  href="https://raw.githubusercontent.com/fatemeh-khoshkam/js-image-magnify/main/style.css"
/>
<script src="https://raw.githubusercontent.com/fatemeh-khoshkam/js-image-magnify/main/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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published