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 is the between $(this) and 'this' in jquery?
Difference between javascript and jquery?
Is jQuery a programming language?
What is serialize() in jquery?
What is the starting point of code execution in jquery?
Define cdn in jquery?
How to use connect?
What are the types of selectors that are used in jquery? Give examples.
What are selectors in jquery? Explain
Which are the fastest selectors in jquery? : jquery mobile
What are the popular jquery cdn? : jquery mobile
Whether jQuery HTML work for both HTML and XML documents?
Is jQuery is a client or server scripting?
What is a jquery library?
How to get the server response from an ajax request using jquery?