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
What are the differences between size and length in jquery?
How to add or remove classes to an element in jquery?
Can you please explain the difference between parent() and parents() methods in jquery? : jquery mobile
Difference between document.ready and window.onload? : jQuery Mobile
What is the script build up by jQuery?
Why is jquery better than javascript?
Define type paremeter of jquery ajax method?
Can we have multiple document.ready() function on the same page? : jquery mobile
What is parent() in jquery?
How to check/uncheck an input in jquery?
Why we need jquery mobile? : jquery mobile
What is the basic requirement to start with the jquery?
When can jquery be used?
How to get the style property of an element using ?
Define jquery connect?