Simple jQuery Image Zoom

In this tutorial, I will teach you how to create jQuery Image Zoom. It is a simple and easy to use jQuery image zoom that enlarge your images on mouse over, grab, click or toggle. And jQuery image zoom has a plugin. Simple jQuery image zoom lets you partially clip and confine large images on your site to a smaller container to save space, with the hidden portion accessible by dragging or panning inside the image. This script is great for embedding images on your page that users may also want to used in on to get a closer look.

Sample Code

jQuery Zoom & Library
  1. <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js'></script>
  2. <script src='jquery.zoom.js'></script>
And for the Plugin to Call
  1. <script>
  2.   $(document).ready(function(){
  3.     $('#ex1').zoom();
  4.     $('#ex2').zoom({ on:'grab' });
  5.     $('#ex3').zoom({ on:'click' });    
  6.     $('#ex4').zoom({ on:'toggle' });      
  7.   });
  8. </script>
Sample Image For toggle Result For more tutorials just visit this website @www.sourcecodester.com and don't forget to Like and Share. Enjoy Coding.

Add new comment