Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

animationStartTime property

Obsolete. Returns a timestamp of the start time of the current refresh interval, such that multiple animations can be synchronized with each other.

This property is read-only.

Syntax

JavaScript
ptr = object.animationStartTime

Property values

Type: DOMHighResTimeStamp

A DOMHighResTimeStamp value which represents the start time of the current refresh interval.

Standards information

Remarks

Obsolete. Originally supported in pre-release versions of a Windows Store app using JavaScript, the animationStartTime property is superceded in favor of the performance.now property. Applications using animationStartTime should be updated accordingly.

Use the animationStartTime property instead of recording animation start time using the Date.now function in order to ensure that the clock you are using has millisecond resolution and is monotonically increasing (where later values are always larger than earlier values).

The value reported by the animationStartTime property represents the number of milliseconds between the recorded time and midnight January 1, 1970 (UTC).

See also

Window
requestAnimationFrame
cancelAnimationFrame

 

 

Show:
© 2014 Microsoft. All rights reserved.