aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/htmlelement/animationend_event/index.html
diff options
context:
space:
mode:
authorFlorian Merz <me@fiji-flo.de>2021-02-11 12:56:40 +0100
committerFlorian Merz <me@fiji-flo.de>2021-02-11 12:56:40 +0100
commit310fd066e91f454b990372ffa30e803cc8120975 (patch)
treed5d900deb656a5da18e0b60d00f0db73f3a2e88e /files/zh-cn/web/api/htmlelement/animationend_event/index.html
parent8260a606c143e6b55a467edf017a56bdcd6cba7e (diff)
downloadtranslated-content-310fd066e91f454b990372ffa30e803cc8120975.tar.gz
translated-content-310fd066e91f454b990372ffa30e803cc8120975.tar.bz2
translated-content-310fd066e91f454b990372ffa30e803cc8120975.zip
unslug zh-cn: move
Diffstat (limited to 'files/zh-cn/web/api/htmlelement/animationend_event/index.html')
-rw-r--r--files/zh-cn/web/api/htmlelement/animationend_event/index.html92
1 files changed, 92 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/htmlelement/animationend_event/index.html b/files/zh-cn/web/api/htmlelement/animationend_event/index.html
new file mode 100644
index 0000000000..cb701ac392
--- /dev/null
+++ b/files/zh-cn/web/api/htmlelement/animationend_event/index.html
@@ -0,0 +1,92 @@
+---
+title: animationend
+slug: Web/Events/animationend
+tags:
+ - Animation
+ - AnimationEvent
+ - CSS Animations
+ - CSS3 Animations
+ - Event
+ - Reference
+ - animationend
+translation_of: Web/API/HTMLElement/animationend_event
+---
+<p><code>animationend</code> 事件会在一个 CSS 动画完成时触发(不包括完成前就已终止的情况,例如元素变得不可见或者动画从元素中移除)。</p>
+
+<h2 id="常规信息">常规信息</h2>
+
+<dl>
+ <dt style="float: left; text-align: right; width: 120px;">规范</dt>
+ <dd style="margin: 0 0 0 120px;">{{SpecName("CSS3 Animations")}}</dd>
+ <dt style="float: left; text-align: right; width: 120px;">接口</dt>
+ <dd style="margin: 0 0 0 120px;">{{domxref("AnimationEvent")}}</dd>
+ <dt style="float: left; text-align: right; width: 120px;">是否冒泡</dt>
+ <dd style="margin: 0 0 0 120px;">是</dd>
+ <dt style="float: left; text-align: right; width: 120px;">事件可取消</dt>
+ <dd style="margin: 0 0 0 120px;">否</dd>
+ <dt style="float: left; text-align: right; width: 120px;">目标</dt>
+ <dd style="margin: 0 0 0 120px;">{{domxref("Document")}}, {{domxref("Element")}}, {{domxref("Window")}}</dd>
+ <dt style="float: left; text-align: right; width: 120px;">默认行为</dt>
+ <dd style="margin: 0 0 0 120px;">无</dd>
+</dl>
+
+<h2 id="属性表">属性表</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">属性</th>
+ <th scope="col">类型</th>
+ <th scope="col">描述</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><code>target</code> {{ReadOnlyInline}}</td>
+ <td>{{domxref("EventTarget")}}</td>
+ <td>事件目标(DOM 顶层目标)。</td>
+ </tr>
+ <tr>
+ <td><code>type</code> {{ReadOnlyInline}}</td>
+ <td>{{domxref("DOMString")}}</td>
+ <td>事件类型</td>
+ </tr>
+ <tr>
+ <td><code>bubbles</code> {{ReadOnlyInline}}</td>
+ <td><code>boolean</code></td>
+ <td>事件是否正常冒泡?</td>
+ </tr>
+ <tr>
+ <td><code>cancelable</code> {{ReadOnlyInline}}</td>
+ <td><code>boolean</code></td>
+ <td>可否取消该事件?</td>
+ </tr>
+ <tr>
+ <td><code>animationName</code> {{ReadOnlyInline}}</td>
+ <td>{{domxref("DOMString")}}</td>
+ <td>与该动画相关的 CSS 属性值。</td>
+ </tr>
+ <tr>
+ <td><code>elapsedTime</code> {{ReadOnlyInline}}</td>
+ <td><code>Float</code></td>
+ <td>动画运行时长,单位为秒,与直到该事件被触发的时间相一致,不包括任何动画暂停时的时长。应等于 {{cssxref("animation-iteration-count")}} 乘以 {{cssxref("animation-duration")}} 的积,动画总活动的时长。</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="相关事件">相关事件</h2>
+
+<ul>
+ <li>{{Event("animationstart")}}</li>
+ <li>{{Event("animationiteration")}}</li>
+ <li>{{Event("animationcancel")}}</li>
+</ul>
+
+<h2 id="参见">参见</h2>
+
+<ul>
+ <li><a href="/en-US/docs/Web/CSS/CSS_Animations">CSS Animations</a></li>
+ <li><a href="/en-US/docs/CSS/Using_CSS_animations" title="/en-US/docs/CSS/Using_CSS_animations">Using CSS Animations</a></li>
+ <li>{{domxref("AnimationEvent")}}</li>
+ <li>{{domxref("GlobalEventHandlers.onanimationstart")}}</li>
+</ul>