Skip to content

arunkumarsekar/photoZoom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PhotoZoom

Simple, lightweight jQuery plugin to show zoomed view of image based on screen dimensions. It simulates photo zoom for facebook (Chrome extension).

Browser Support

  • Internet Explorer 7+
  • Firefox
  • Chrome
  • Safari

jQuery

- Jquery Library (version 1.7.0+)

How to use

Init

    $(document).ready(function(){
        $(selector).photoZoom();
    });

Options

- zoomStyle     // Write your own css for large image

Example

     $(document).ready(function(){
         $("body").photoZoom({ zoomStyle : { "border":"1px solid #ccc",
                                             "background-color":"#fff",
                                             "box-shadow":"0 0 5px #888"
                                           }
                            });
     });

Events

- onMouserOver(currentImage)        // Triggers when before zooming image
- onMouseOut(currentImage)          // Triggers when focus out from image

Example

     $(document).ready(function(){
         $("body").photoZoom({ onMouseOver  : function(currentImage){
                                                console.log(currentImage);
                                                // do something
                                              },
                               onMouseOut   : function(currentImage){
                                                console.log(currentImage);
                                                // do something
                                              }
                            });
     });

Demo

- Demo : <http://demos.9lessons.info/photozoom/>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published