Click/Tap To Smooth Zoom Images – Image Zoom Plugin

Looking for a affordable website?

GET STARTED
www.codingexpertz.com
Click/Tap To Smooth Zoom Images  – Image Zoom Plugin

File Size: 126KB

Total Views: 11

Date Created:

Last Modified Date:

Official Website: Go to website

License: MIT

Image Zoom Plugin is a lightweight and very easy to use jquery plugin that creates smooth zoom effects instantly for any images. You can experience the zoom effects with a mouse click and touch events. The zoom will reset automatically when users moving to focus out of the image. Also, the user can reset the zoom manually by clicking on the image.

Features:

  • Click/tap to zoom in an image.
  • Very lightweight and easy to implement.
  • Can modify the default zoom.
  • Supports on all modern devices and browsers.

How to use it:

1. Include the Javascript image-zoom.min.js at the bottom of the web page.

<script src="path/to/image-zoom.min.js"></script>

2. Include the CSS image-zoom.css in the header of the page.

<link rel="stylesheet" href="path/to/image-zoom.css">

3. Add the basic HTML to the page.

<img id="imageZoom" src="path/to/image" alt="">

4. Initialize the plugin and we’re ready to go.

$(document).ready(function(){
  $('#imageZoom').imageZoom();
});

Options

You can pass the Zoom level as an option, by default this is set to 150%.

$(document).ready(function(){
  $('#imageZoom').imageZoom({
     zoom : 200
  });
});

Leave a comment

Your email address will not be published. Required fields are marked *

STAYUPDATED

Receive all our future posts instantly in your inbox. Enter your email to enroll.