Enlarge Image with Smooth Transition – Jquery CSS
In this article we are going to see how to zoom an image when mouse pointer enters the image and how to make it to its original size when mouse leave.

We are going to use mouseenter and mouseleave events of jquery.

		<meta charset='utf-8'/>
		<title>Zoomin and Zoomout</title>
                <script src="jquery-1.11.3.min.js"></script>
                        -webkit-transition:.3s all;
            <img src="/Path of Image" id="image">

In this code, We are using -webkit-transition for smooth enlarging of image when mouseenters and taking back to its original size when mouse leaves.

Similar to mouseenter and mouseleave, we can substitute other events like mouseover, mouseout, hover etc.

By Sri

Leave a Reply

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