AnimateEvent

Information passed to animation callbacks that describes what is animating and when includes the animated element, the animation effect/type, duration, delay, and a timestamp.

Props

The following table outlines the props for the AnimateEvent:

NameTypeDefaultDescription
delay
number
-

animate delay in milliseconds.

duration
number
-

animate duration in milliseconds.

effect
-

animate type.

element
HTMLElement | Object
-

The element being animated.

timeStamp
number
-

Current timestamp of the animate.

timingFunction
string
-

animate timing function.