How do you implement animation functionality?

Answer

 The .animate() method allows us to create animation effects on any numeric CSS property. This method changes an element from one state to another with CSS styles. The CSS property value is changed gradually, to create an animated effect.  
Syntax is: (selector).animate({styles},speed,easing,callback)


1: styles: Specifies one or more CSS properties/values to animate.

2:duration: Optional. Specifies the speed of the animation.

3: easing: Optional. Specifies the speed of the element in different points of the animation. Default value is "swing".

4: callback: Optional. A function to be executed after the animation completes.
Simple use of animate function is,  


$("btnClick").click(function(){   $("#dvBox").animate({height:"100px"}); });

All JQUERY Questions

Ask your interview questions on jquery

Write Your comment or Questions if you want the answers on jquery from jquery Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---