Share via


elapsedTime property

The amount of time the animation has been running, in seconds.

This property is read-only.

 

Syntax

HRESULT get_elapsedTime(
  [out] float *number
);

Property values

Type: float

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 IHTMLCSSStyleDeclaration2::animationDelay. For an animationStart type event (see initAnimationEvent), the IDOMMSAnimationEvent::elapsedTime is always zero.