An animation configuration. Animation configurations can also be defined as
booleans, where false
turns off animation and true
defaults to a duration
of 500ms and defer of 0ms.
Members
-
complete :function|undefined
-
A callback function to execute when the animation finishes.
Type:
- function | undefined
-
defer :number|undefined
-
The animation defer in milliseconds.
Type:
- number | undefined
-
duration :number|undefined
-
The animation duration in milliseconds.
Type:
- number | undefined
-
easing :string|function|undefined
-
The name of an easing function as defined on the
Math
object.Type:
- string | function | undefined
-
step :function|undefined
-
A callback function to execute on each step of each attribute or CSS property that's being animated. The first argument contains information about the animation and progress.
Type:
- function | undefined