Social Networks

After very good feedback on the Increase Decrease Font Size Using JQuery this tutorial focus on how to zoom in and zoom out image using jQuery. Script will increase size of image from 100 to 300 px, you can change script as per your requirement.


When image clicked we used toggle method in two function to zoom in and zoom out image. For live demo click on below demo to see in action –



<script type="text/javascript" src=""></script>
<script language="javascript" type="text/javascript">
$("#image").css("width", "100px");
$(this).animate({width: "300px"}, 1000);
$('p').text("Click To Zoom Out");

}, function(){
$(this).animate({width: "100px"}, 1000);
$('p').text("Click To Zoom In");


<img src="" alt="Logo" id="image">
Click on above picture To Zoom In


None found.
  1. Navtej Singh says:

    Real nice tutorial, Mr Jha. Somehow it is not working for me the way it should be.
    I am sure it must be due to some sort of Syntax or setting omission on my part.
    Otherwise, a very simple and to the point tutorial which everybody should be able to activate on his/her site.

  2. i have 2 images 1 is background image of another. i want to get the background image zoom with out the front image. how can i do. do you help me

Leave a Reply

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

Allowed Tags:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>