AnimationEvent elapsedTime Property in JavaScript
AnimationEvent elapsedTime Property in JavaScript
The elapsedTime property is used to return number of seconds an animation has been running when an animation event occurs. It is a read-only property and in beginning, the value is always 0. If animation is paused, then the value will remain the same.
Syntax:-
Its syntax is:- event.elapsedTime
Return:-
Its return is:- number of seconds an animation has been running