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
Tell me how to check data type of any variable in jquery? : jquery mobile
Write the code to define a requirejs module with its dependencies.
Explain the difference between jquery's ready and holdready?
How to check/uncheck an input in jquery?
Define cdn in jquery?
Back onto jquery ui' can you see jquery ui making more of an impression in the future, lead by the current successes of jquery?
How can we debug jQuery?
How to stop jqm from auto-enhancing an element? : jquery mobile
How to debug jquery code/ debug jquery?
Is jquery library used for server scripting or client scripting?
What are different type of selector in jQuery?
How to multiple AJAX requests be run simultaneously in jQuery?
Can we include multiple version of jquery? : jquery mobile
How you get server response from an ajax request using jquery?
How to read, write and delete cookies in jquery?