From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/css/animation-direction/index.html | 98 +++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 files/ja/web/css/animation-direction/index.html (limited to 'files/ja/web/css/animation-direction') diff --git a/files/ja/web/css/animation-direction/index.html b/files/ja/web/css/animation-direction/index.html new file mode 100644 index 0000000000..a3ecf9e9ac --- /dev/null +++ b/files/ja/web/css/animation-direction/index.html @@ -0,0 +1,98 @@ +--- +title: animation-direction +slug: Web/CSS/animation-direction +tags: + - CSS + - CSS Animations + - CSS Property + - CSS アニメーション + - CSS プロパティ + - Reference +translation_of: Web/CSS/animation-direction +--- +
{{CSSRef}}
+ +

CSSanimation-direction プロパティは、アニメーション再生の向きを順方向、逆方向、前後反転のいずれにするかを設定します。

+ +
{{EmbedInteractiveExample("pages/css/animation-direction.html")}}
+ + + +

アニメーションのプロパティすべてを一度に設定するには、一括指定プロパティである {{cssxref("animation")}} プロパティを使用すると便利です。

+ +

構文

+ +
/* 単一のアニメーション */
+animation-direction: normal;
+animation-direction: reverse;
+animation-direction: alternate;
+animation-direction: alternate-reverse;
+
+/* 複数のアニメーション */
+animation-direction: normal, reverse;
+animation-direction: alternate, reverse, normal;
+
+/* グローバル値 */
+animation-direction: inherit;
+animation-direction: initial;
+animation-direction: unset;
+
+ +

+ +
+
normal
+
アニメーションを毎回順方向に再生します。言い換えれば、アニメーション周期ごとに、アニメーションを最初の状態にリセットしてそこからまた始めます。これが既定値です。
+
reverse
+
アニメーションを毎回逆方向に再生します。言い換えれば、アニメーション周期ごとに、アニメーションを最後の状態にリセットしてそこからまた始めます。アニメーションを逆方向に実行し、タイミング関数も逆になります。例えば、タイミング関数の ease-inease-out になります。
+
alternate
+
アニメーションを毎回反転させ、初回は順方向になります。周期が偶数か奇数かを特定する回数は1から始まります。
+
alternate-reverse
+
アニメーションを毎回反転させ、初回は逆方向になります。周期が偶数か奇数かを特定する回数は1から始まります。
+
+ +
+

メモ: animation-* プロパティにコンマ区切りで複数の値を指定した場合、 {{cssxref("animation-name")}} プロパティで指定したアニメーションに割り当てられますが、いくつあるかによって異なる方法で割り当てられます。詳しくは、複数のアニメーションプロパティ値の設定 を参照してください。

+
+ +

形式文法

+ +
{{csssyntax}}
+ +

+ +

CSS アニメーションを参照してください。

+ +

仕様書

+ +

{{cssinfo}}

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('CSS3 Animations', '#animation-direction', 'animation-direction')}}{{Spec2('CSS3 Animations')}}初回定義。
+ +

ブラウザーの対応

+ + + +

{{Compat("css.properties.animation-direction")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf