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?

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


Please Help Members By Posting Answers For Below Questions

How to control page titles in jquery mobile? : jquery mobile

798


Tell me what is the use of .size() method in jquery?

854


What is the difference between prop and attr?

838


What is jquery a client or server scripting?

857


What is .siblings() method in jquery?

895


What is the difference between find and children methods?

907


Explain .live()? : jquery mobile

851


Explain chaining in jquery? : jquery mobile

862


How we can get the value of a radio button using jquery?

846


What are different type of selector in jQuery?

834


Which command will give a version of jQuery?

921


What are the features of jquery used in web applications?

885


What is event preventdefault () and event stoppropagation () in jquery?

775


What is event.stoppropagation? : jquery mobile

900


How do you select all elements with the class of “selected” in jquery?

813