jQuery animate() method is used to perform a custom animation of a set of CSS properties.
Below the syntax of jquery animate() method
.animate(properties[,duration[,opacity][,complete])
-
- properties (default:
400
) - Type: PlainObject
- An object of CSS properties and values that the animation will move toward.
- properties (default:
-
- duration (default:
400
) - Type: Number or String
- A string or number determining how long the animation will run.
- duration (default:
-
- easing (default:
swing
) - Type: String
- A string indicating which easing function to use for the transition.
- easing (default:
-
- complete
- Type: Function()
- A function to call once the animation is complete, called once per matched element.