aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/effecttiming/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/api/effecttiming/index.html')
-rw-r--r--files/zh-cn/web/api/effecttiming/index.html78
1 files changed, 0 insertions, 78 deletions
diff --git a/files/zh-cn/web/api/effecttiming/index.html b/files/zh-cn/web/api/effecttiming/index.html
deleted file mode 100644
index f0b2b7c289..0000000000
--- a/files/zh-cn/web/api/effecttiming/index.html
+++ /dev/null
@@ -1,78 +0,0 @@
----
-title: EffectTiming
-slug: Web/API/EffectTiming
-tags:
- - API
- - Animation
- - Dictionary
- - EffectTiming
- - Experimental
- - Interface
- - KeyframeEffect
- - NeedsTranslation
- - Reference
- - TopicStub
- - Web Animations
- - animate
- - web animations api
-translation_of: Web/API/EffectTiming
----
-<div>{{ SeeCompatTable() }}{{ APIRef("Web Animations") }}</div>
-
-<p>The <strong><code>EffectTiming</code></strong> dictionary, part of the <a href="/en-US/docs/Web/API/Web_Animations_API">Web Animations API</a>, is used by {{domxref("Element.animate()")}}, {{domxref("KeyframeEffectReadOnly.KeyframeEffectReadOnly", "KeyframeEffectReadOnly()")}}, and {{domxref("KeyframeEffect.KeyframeEffect", "KeyframeEffect()")}} to describe timing properties for animation effects. These properties are all optional, although without setting a <code>duration</code> the animation will not play.</p>
-
-<p>Simply put, these properties describe how the {{Glossary("user agent")}} should go about making the transition from keyframe to keyframe, and how to behave when the animation begins and ends.</p>
-
-<h2 id="Properties">Properties</h2>
-
-<dl>
- <dt>{{domxref("EffectTiming.delay", "delay")}} {{optional_inline}}</dt>
- <dd>The number of milliseconds to delay the start of the animation. Defaults to 0.</dd>
- <dt>{{domxref("EffectTiming.direction", "direction")}} {{optional_inline}}</dt>
- <dd>Whether the animation runs forwards (<code>normal</code>), backwards (<code>reverse</code>), switches direction after each iteration (<code>alternate</code>), or runs backwards and switches direction after each iteration (<code>alternate-reverse</code>). Defaults to <code>"normal"</code>.</dd>
- <dt>{{domxref("EffectTiming.duration", "duration")}} {{optional_inline}}</dt>
- <dd>The number of milliseconds each iteration of the animation takes to complete. Defaults to 0. Although this is technically optional, keep in mind that your animation will not run if this value is 0.</dd>
- <dt>{{domxref("EffectTiming.easing", "easing")}} {{optional_inline}}</dt>
- <dd>The rate of the animation's change over time. Accepts the pre-defined values <code>"linear"</code>, <code>"ease"</code>, <code>"ease-in"</code>, <code>"ease-out"</code>, and <code>"ease-in-out"</code>, or a custom <code>"cubic-bezier"</code> value like <code>"cubic-bezier(0.42, 0, 0.58, 1)"</code>. Defaults to <code>"linear"</code>.</dd>
- <dt>{{domxref("EffectTiming.endDelay", "endDelay")}} {{optional_inline}}</dt>
- <dd>The number of milliseconds to delay after the end of an animation. This is primarily of use when sequencing animations based on the end time of another animation. Defaults to 0. </dd>
- <dt>{{domxref("EffectTiming.fill", "fill")}} {{optional_inline}}</dt>
- <dd>Dictates whether the animation's effects should be reflected by the element(s) prior to playing (<code>"backwards"</code>), retained after the animation has completed playing (<code>"forwards"</code>), or <code>both</code>. Defaults to <code>"none"</code>.</dd>
- <dt>{{domxref("EffectTiming.iterationStart", "iterationStart")}} {{optional_inline}}</dt>
- <dd>Describes at what point in the iteration the animation should start. 0.5 would indicate starting halfway through the first iteration for example, and with this value set, an animation with 2 iterations would end halfway through a third iteration. Defaults to 0.0.</dd>
- <dt>{{domxref("EffectTiming.iterations", "iterations")}} {{optional_inline}}</dt>
- <dd>The number of times the animation should repeat. Defaults to <code>1</code>, and can also take a value of {{jsxref("Infinity")}} to make it repeat for as long as the element exists.</dd>
-</dl>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td>{{SpecName('Web Animations', '#the-effecttiming-dictionaries', 'EffectTiming' )}}</td>
- <td>{{Spec2('Web Animations')}}</td>
- <td>Initial definition</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-
-
-<p>{{Compat("api.EffectTiming")}}</p>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li><a href="/en-US/docs/Web/API/Web_Animations_API">Web Animations API</a></li>
- <li><a href="/en-US/docs/Web/API/Web_Animations_API/Using_the_Web_Animations_API">Using the Web Animations API</a></li>
- <li>{{domxref("Element.animate()")}}</li>
- <li>{{domxref("KeyframeEffect.KeyframeEffect", "KeyframeEffect()")}}</li>
- <li>{{domxref("KeyframeEffectReadOnly.KeyframeEffectReadOnly", "KeyframeEffectReadOnly()")}}</li>
-</ul>