jQuery Animation Effects
The jQuery animate() method provides you a way to create custom animations. It is a wrapper method, meaning that it operates on a set of previously selected DOM elements , wrapped by jQuery. This method allows you to apply your own custom animation effects to the elements in the set. This method can be used in various ways, accepting unlimited parameters which specify what CSS properties should be affected, as well as duration and a callback function .
- parameters: CSS properties to be animated.
- speed: Duration of the effect (optional).
- callback: function which is executed after the animation completes.
It is important to note that, by default, all HTML elements have a static position, and cannot be moved. To manipulate the position, remember to first set the CSS position property of the element to relative, fixed, or absolute.