diff options
author | MDN <actions@users.noreply.github.com> | 2021-10-14 00:47:38 +0000 |
---|---|---|
committer | MDN <actions@users.noreply.github.com> | 2021-10-14 00:47:38 +0000 |
commit | df821208c608de1b7cdc6fe69ae28724ac1f01a0 (patch) | |
tree | 265d5165067499173a2b36626798e3504b291909 /files/ja/web/api/keyframeeffect | |
parent | d362676d3d14ab1bf938c80a90b7a6f2665d9f3c (diff) | |
download | translated-content-df821208c608de1b7cdc6fe69ae28724ac1f01a0.tar.gz translated-content-df821208c608de1b7cdc6fe69ae28724ac1f01a0.tar.bz2 translated-content-df821208c608de1b7cdc6fe69ae28724ac1f01a0.zip |
[CRON] sync translated content
Diffstat (limited to 'files/ja/web/api/keyframeeffect')
-rw-r--r-- | files/ja/web/api/keyframeeffect/keyframeeffect/index.html | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/files/ja/web/api/keyframeeffect/keyframeeffect/index.html b/files/ja/web/api/keyframeeffect/keyframeeffect/index.html new file mode 100644 index 0000000000..60ce39d1af --- /dev/null +++ b/files/ja/web/api/keyframeeffect/keyframeeffect/index.html @@ -0,0 +1,65 @@ +--- +title: EffectTiming +slug: Web/API/KeyframeEffect/KeyframeEffect +translation_of: Web/API/EffectTiming +original_slug: Web/API/EffectTiming +--- +<div>{{ SeeCompatTable() }}{{ APIRef("Web Animations") }}</div> + +<p>The <strong><code>EffectTiming</code></strong> dictionary, part of the <a href="/ja/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 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>ミリ秒の数値であり、アニメーションの開始を遅らせます。デフォルトでは 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-dictionary', '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="/ja/docs/Web/API/Web_Animations_API">Web Animations API</a></li> + <li><a href="/ja/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> |