jQuery animate()

The jQuery animate() method provides you a way to create custom animations.


Here, params parameter defines the CSS properties to be animated.

The speed parameter is optional and specifies the duration of the effect. It can be set as "slow" , "fast" or milliseconds.

The callback parameter is also optional and it is a function which is executed after the animation completes.

Example :-


A simple animation example: