Friday, March 1, 2013

Jquery animate

Jquery Animate.

A small example to illustrate the animate function.In this example I have used 3 buttons which modifies the fontsize.

<button class='increase'>Increase</button>
<button class='decrease'>Decrease</button>
<button class='reset'>Reset</button>
<div class="div1">
This is the sample text and now check how the font increases and decreases when clicked on the respective buttons.
<br />
$(document).ready(function() {
(function display(){




You can also view the live working example on the below mentioned link.

Similarly you can implement the image resize functionality. I can check the below link for working example

No comments:

Post a Comment