Join TalkersCode Now !

Get Latest Tutorials And Links On Web Development
And Get Existing Offers Via Email

jQuery Animate

jQuery Animate

With the help of jQuery animate() method you can add animation in elements


Syntax

$(selector).animate({style parameters},speed,callback);


Code Explanation

  • It requires style parameters if you want to add any style in animation you can the css styles in that.
  • It takes speed parameter as optional it can have following values "slow", "fast", milliseconds.
  • Third parameter is also an optional you can five the function to execute after the animation completes.

Example of Animate

$("button").click(function(){
  $("a").animate({font-size:'25px',color:'red'});
}); 
PreviousNext

Join Us With Our 21000+ Subscribers And Get Our Latest Tutorials Update Via Email

Are You Starting A New Blog
Do You Want Best Web Hosting?

Try World's Best Web Hosting Provider BlueHost
At Just $3.95/mo

Hurry Up! Limited Time Offer

Yes, I Want To Check Out BlueHost

Check The World's Best SEO And All-In-One Marketing Toolkit
For Digital Marketing Professionals SEMRUSH

Check Out SEMRUSH