Smooth Image Zoom & Pan Plugin With jQuery - ZooMove

Smooth Image Zoom & Pan Plugin With jQuery - ZooMove
File Size: 16.8 KB
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

ZooMove is a super tiny jQuery/HTML5 image zoom plugin which smoothly enlarges and pan a specified image when mouse hovering and moving.

How to use it:

1. Add jQuery JavaScript library and the jQuery ZooMove plugin's script to the webpage.

<link rel="stylesheet" href="zoomove.min.css">
<script src="//code.jquery.com/jquery.min.js"></script>
<script src="zoomove.min.js"></script>

2. Add the image to the webpage using zoo-image attribute as follows:

<figure class="zoo-item" 
        zoo-image="image.jpg">
        Loading...
</figure>

3. Initialize the plugin and we're done.

$('.zoo-item').ZooMove();

4. Default configuration options. Note that the following options can be passed via zoom-OPTION attributes or by passing an object literal when initializing plugin as follows:

<figure class="zoo-item" 
        zoo-image="image.jpg"
        zoo-scale="1.5"
        zoo-move="true"
        zoo-over="false"
        zoo-cursor="false">
        Loading...
</figure>
$('.zoo-item').ZooMove({
  
  // image url
  image: 'image.jpg',

  // shows the cursor pointer
  cursor: 'false',

  // zoom size
  scale: '1.5',

  // enable image pan
  move: 'true',

  // whether the image may be above
  over: 'false'
  
});

This awesome jQuery plugin is developed by thompsonemerson. For more Advanced Usages, please check the demo page or visit the official website.