elapsedTime property
The amount of time the animation has been running, in seconds.
This property is read-only.
![]() |
Syntax
| JavaScript |
|---|
number = object.elapsedTime |
Property values
Type: Floating-point
The amount of time the animation has been running, in seconds, when this event fired, excluding any time the animation was paused.
Remarks
Note This value is not affected by the value of animation-delay. For an animationStart type event (see initAnimationEvent), the elapsedTime is always zero.
See also
Show:
