jQuery jQuery .animate() Method

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  1. (selector).animate({styles},{options})

Parameters

ParameterDetails
propertiesAn object of CSS properties and values that the animation will move toward
duration(default: 400) A string or number determining how long the animation will run
easing(default: swing) A string indicating which easing function to use for the transition
completeA function to call once the animation is complete, called once per matched element.
startspecifies a function to be executed when the animation begins.
stepspecifies a function to be executed for each step in the animation.
queuea Boolean value specifying whether or not to place the animation in the effects queue.
progressspecifies a function to be executed after each step in the animation.
donespecifies a function to be executed when the animation ends.
failspecifies a function to be executed if the animation fails to complete.
specialEasinga map of one or more CSS properties from the styles parameter, and their corresponding easing functions.
alwaysspecifies a function to be executed if the animation stops without completing.


Got any jQuery Question?