Answer Posted / chaitanya
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:
Hide Copy Code
(selector).animate({styles},speed,easing,callback)
styles: Specifies one or more CSS properties/values to animate.
duration: Optional. Specifies the speed of the animation.
easing: Optional. Specifies the speed of the element in different points of the animation. Default value is "swing".
callback: Optional. A function to be executed after the animation completes.
Simple use of animate function is,
Hide Copy Code
$("btnClick").click(function(){
$("#dvBox").animate({height:"100px"});
});
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why is the block display style used for animations?
Define data paremeter of jquery ajax method?
Tell me which program is useful for testing jquery?
Difference between javascript and jquery?
How to use transition effects? : jQuery Mobile
Can you write a jquery code to select all links inside the paragraph?
What are the various ajax functions?
What is the difference between "#" and "." selector in JQuery?
Why do we use jquery? : jquery mobile
Explain the difference between event.preventdefault and "return false"? : jquery mobile
What is the jQuery code to select all links inside the paragraph?
What are two different version of jquery library? : jquery mobile
How to create, read and delete cookies with jquery?
What are all the ways to include jQuery in a page?
What is jquery.holdready() function?