Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do you implement animation functionality?



How do you implement animation functionality?..

Answer / 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

More jQuery Interview Questions

How to execute jQuery code after the DOM is ready?

0 Answers  


Can we use our own specific character in the place of $ sign in jQuery?

1 Answers  


How do you attach a event to element which should be executed only once?

1 Answers  


How can we apply css in odd childs of parent node using jquery library?

0 Answers  


What is the difference between text() and html() in jquery?

0 Answers  


Tell me how to executed jquery selectors? : jquery mobile

0 Answers  


Can you please explain the difference between .js and .min.js? : jquery mobile

0 Answers  


Explain the starting point of code execution in jquery? : jquery mobile

0 Answers  


How we can get the input value of an element using jquery?

0 Answers  


How do you update ajax response with id " resilts"?

0 Answers  


How to fetch the values of selected checkbox array using jquery?

0 Answers  


explain width() vs css(‘width’) in jquery

0 Answers  


Categories