From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../web/api/window/mozanimationstarttime/index.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 files/zh-cn/web/api/window/mozanimationstarttime/index.html (limited to 'files/zh-cn/web/api/window/mozanimationstarttime') diff --git a/files/zh-cn/web/api/window/mozanimationstarttime/index.html b/files/zh-cn/web/api/window/mozanimationstarttime/index.html new file mode 100644 index 0000000000..41666637e4 --- /dev/null +++ b/files/zh-cn/web/api/window/mozanimationstarttime/index.html @@ -0,0 +1,21 @@ +--- +title: window.mozAnimationStartTime +slug: Web/API/Window/mozAnimationStartTIme +translation_of: Web/API/Window/mozAnimationStartTime +--- +

{{ ApiRef() }}

+

{{ gecko_minversion_header("2.0") }}{{ non-standard_header() }}

+

概述

+

Returns the time, in milliseconds since the epoch, at which animations started now should be considered to have started. This value should be used instead of, for example, Date.now(), because this value will be the same for all animations started in this window during this refresh interval, allowing them to remain in sync with one another.

+

This also allows JavaScript-based animations to remain synchronized with CSS transitions and SMIL animations triggered during the same refresh interval.

+

语法

+
time = window.mozAnimationStartTime;
+
+

规范

+

不属于任何规范.

+

相关链接

+ +

{{ languages( { "en":"en/DOM/window.mozAnimationStartTime" } ) }}

-- cgit v1.2.3-54-g00ecf