Responsive jQuery picture zoom Plugin

A stylish, responsive photo zoom jquery plugin ideal for ecommerce website to highlight product details. Plugin works on desktop, ipad and kindle.

PhotoZoom - Responsive jQuery picture zoom Plugin


Zoom Position - Over, Left, Right

Photo with Photo Scroller


  1. Responsive (Works on PC, iPad, iPhone, Android Phones)
  2. All Default options customizable
  3. Customizable UI via CSS
  4. Adjustable Zoomlevel
  5. Adjustable Zoom Container
  6. Click or Hover triggered
  7. Zoom Image can be positioned on Top, Bottom, Left, Right or Over target image
  8. Uses CSS3

How To Use

This script goes into head section

<!-- Include jQuery Library -->
<script src="//" type="text/javascript"> </script>
<link href="photozoom.css" rel="Stylesheet" />
<script src="photozoom.js" type="text/javascript"></script>
<script src="swipe.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#photozoom1").photozoom({ Position: 'top' });
        $("#photozoom2").photozoom({ Position: 'left' });
        $("#photozoom4").photozoom({ Position: 'bottom'});

HTML Example

<img id="photozoom1" data-largesrc="//" src="//" />

<img id="photozoom3" data-largesrc="//" src="//" />

<img id="photozoom2" data-largesrc="//" src="//" />

<img id="photozoom4"  data-largesrc="//" src="//" />

Any target image should be placed inside a Div with a class "rst-photocontainer" and the image should have class "rst-smallimg".

Usage Options

Option Default Description
Position 'right' 'right' | 'left' | 'top' | 'bottom' | 'over'

Zoomcontainer position

Distance 5 Integer

Distance between zoom container and target photo. This option would not work on Position : 'over'

ZoomLevel 1 1 to 5
ZoomContainerRatio { width: 0, height: 0 } 0.1 to 1

Set width and height ratio of zoom container based on small image widht and height.