aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/animation/starttime
diff options
context:
space:
mode:
authorMDN <actions@users.noreply.github.com>2021-09-30 00:53:33 +0000
committerMDN <actions@users.noreply.github.com>2021-09-30 00:53:33 +0000
commit9a06d5b4a3874caa094bff06895c892914eaea93 (patch)
tree1c9549ade620e59f4af4c5ee6b6ac7640bf4fcda /files/zh-cn/web/api/animation/starttime
parent75e5dcce1e3c6558a3a2d3def5c08669404587c4 (diff)
downloadtranslated-content-9a06d5b4a3874caa094bff06895c892914eaea93.tar.gz
translated-content-9a06d5b4a3874caa094bff06895c892914eaea93.tar.bz2
translated-content-9a06d5b4a3874caa094bff06895c892914eaea93.zip
[CRON] sync translated content
Diffstat (limited to 'files/zh-cn/web/api/animation/starttime')
-rw-r--r--files/zh-cn/web/api/animation/starttime/index.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/animation/starttime/index.html b/files/zh-cn/web/api/animation/starttime/index.html
new file mode 100644
index 0000000000..e298c23a8a
--- /dev/null
+++ b/files/zh-cn/web/api/animation/starttime/index.html
@@ -0,0 +1,22 @@
+---
+title: window.mozAnimationStartTime
+slug: Web/API/Animation/startTime
+translation_of: Web/API/Window/mozAnimationStartTime
+original_slug: 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>