Wednesday, April 24, 2013

jQuery animate() method

Animate() is one of the most powerful method in jQuery library used for applying simple animation and effects. It is used to perform custom animation on a set of CSS properties of a object. Animate() is able to animate only numeric values like margin:10px but it can't animate any string value like background-color: red.

We use "+=" or "-=" for relative animations.

For example:



ShowCode/HideCode

Another Example using Animate() method:

Hello







ShowCode/HideCode

No comments:

Post a Comment