Editor Arrow Download Open
<!DOCTYPE html> <html> <head> <title>jQuery animate function</title> <script src="jquery-latest.min.js"></script> <script> $(document).ready(function() { $("#btn1").click(function(){ $("#divanimate").animate({fontSize: "25px"}); }); $("#btn2").click(function(){ $("#divanimate").animate({fontSize: "15px"}); }); }); </script> </head> <body> <button id="btn1">Animate Start</button> <button id="btn2">Animate Stop</button> <div id="divanimate" style="background: pink; font-size:15px; font-family: 'Arial';">When start animation font size and font family will be change.</div> </body> </html>
  Preview Arrow