diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/window/mozanimationstarttime | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/web/api/window/mozanimationstarttime')
-rw-r--r-- | files/zh-cn/web/api/window/mozanimationstarttime/index.html | 21 |
1 files changed, 21 insertions, 0 deletions
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 +--- +<p>{{ ApiRef() }}</p> +<p>{{ gecko_minversion_header("2.0") }}{{ non-standard_header() }}</p> +<h3 id="Summary" name="Summary">概述</h3> +<p>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, <code><a href="/zh-cn/JavaScript/Reference/Global_Objects/Date/now" title="zh-cn/JavaScript/Reference/Global Objects/Date/now">Date.now()</a></code>, 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.</p> +<p>This also allows JavaScript-based animations to remain synchronized with CSS transitions and SMIL animations triggered during the same refresh interval.</p> +<h3 id="Syntax" name="Syntax">语法</h3> +<pre class="eval"><em>time</em> = window.mozAnimationStartTime; +</pre> +<h3 id="Specification" name="Specification">规范</h3> +<p>不属于任何规范.</p> +<h3 id="相关链接">相关链接</h3> +<ul> + <li>{{ domxref("window.requestAnimationFrame()") }}</li> + <li>{{ domxref("window.onmozbeforepaint") }}</li> +</ul> +<p>{{ languages( { "en":"en/DOM/window.mozAnimationStartTime" } ) }}</p> |