From 5c799c31c2746db780a6330be5ce714c8f676f4f Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Thu, 30 Dec 2021 23:18:47 +0900 Subject: CSS Transitions のプロパティを変換準備 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/css/transition-delay/index.html | 355 ------------------------ files/ja/web/css/transition-delay/index.md | 355 ++++++++++++++++++++++++ files/ja/web/css/transition-duration/index.html | 347 ----------------------- files/ja/web/css/transition-duration/index.md | 347 +++++++++++++++++++++++ files/ja/web/css/transition-property/index.html | 101 ------- files/ja/web/css/transition-property/index.md | 101 +++++++ files/ja/web/css/transition/index.html | 140 ---------- files/ja/web/css/transition/index.md | 140 ++++++++++ 8 files changed, 943 insertions(+), 943 deletions(-) delete mode 100644 files/ja/web/css/transition-delay/index.html create mode 100644 files/ja/web/css/transition-delay/index.md delete mode 100644 files/ja/web/css/transition-duration/index.html create mode 100644 files/ja/web/css/transition-duration/index.md delete mode 100644 files/ja/web/css/transition-property/index.html create mode 100644 files/ja/web/css/transition-property/index.md delete mode 100644 files/ja/web/css/transition/index.html create mode 100644 files/ja/web/css/transition/index.md diff --git a/files/ja/web/css/transition-delay/index.html b/files/ja/web/css/transition-delay/index.html deleted file mode 100644 index cea8b9b669..0000000000 --- a/files/ja/web/css/transition-delay/index.html +++ /dev/null @@ -1,355 +0,0 @@ ---- -title: transition-delay -slug: Web/CSS/transition-delay -tags: - - CSS - - CSS トランジション - - CSS プロパティ - - Reference - - リファレンス -translation_of: Web/CSS/transition-delay ---- -
{{CSSRef}}
- -

CSS の transition-delay プロパティは、値が変更されたときにプロパティのトランジション効果が始まるまでの待ち時間を指定します。

- -
{{EmbedInteractiveExample("pages/css/transition-delay.html")}}
- - - -

待ち時間はゼロ、正の数、負の数で指定します。

- - - -

複数の待ち時間を指定することができ、複数のプロパティのトランジションを行うときに有用です。それぞれの待ち時間は、マスターリストである {{cssxref("transition-property")}} プロパティによって指定された対応するプロパティに適用されます。マスターリストよりも指定された待ち時間が少ない場合は、充足するまで待ち時間のリストが繰り返して使用されます。また待ち時間の数が多い場合は、リストが適切な長さに切り詰められます。どちらの場合も、 CSS の宣言として妥当です。

- -

構文

- -
/* <time> 値 */
-transition-delay: 3s;
-transition-delay: 2s, 4ms;
-
-/* グローバル値 */
-transition-delay: inherit;
-transition-delay: initial;
-transition-delay: unset;
-
- -

- -
-
<time>
-
プロパティの値の変更からアニメーション効果が始まるまでの待ち時間を表す {{cssxref("<time>")}} 形式の値。
-
- -

形式文法

- -{{csssyntax}} - -

- -
-
-

transition-delay: 0.5s

- - - -
{{EmbedLiveSample("delay_0_5s",275,150)}}
-
- -
-

transition-delay: 1s

- - - -
{{EmbedLiveSample("delay_1s",275,150)}}
-
- -
-

transition-delay: 2s

- - - -
{{EmbedLiveSample("delay_2s",275,150)}}
-
- -
-

transition-delay: 4s

- - - -
{{EmbedLiveSample("delay_4s",275,150)}}
-
-
- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName('CSS3 Transitions', '#transition-delay-property', 'transition-delay')}}{{Spec2('CSS3 Transitions')}}初回定義
- -

{{cssinfo}}

- -

ブラウザーの対応

- -

{{Compat("css.properties.transition-delay")}}

- -

関連情報

- - diff --git a/files/ja/web/css/transition-delay/index.md b/files/ja/web/css/transition-delay/index.md new file mode 100644 index 0000000000..cea8b9b669 --- /dev/null +++ b/files/ja/web/css/transition-delay/index.md @@ -0,0 +1,355 @@ +--- +title: transition-delay +slug: Web/CSS/transition-delay +tags: + - CSS + - CSS トランジション + - CSS プロパティ + - Reference + - リファレンス +translation_of: Web/CSS/transition-delay +--- +
{{CSSRef}}
+ +

CSS の transition-delay プロパティは、値が変更されたときにプロパティのトランジション効果が始まるまでの待ち時間を指定します。

+ +
{{EmbedInteractiveExample("pages/css/transition-delay.html")}}
+ + + +

待ち時間はゼロ、正の数、負の数で指定します。

+ + + +

複数の待ち時間を指定することができ、複数のプロパティのトランジションを行うときに有用です。それぞれの待ち時間は、マスターリストである {{cssxref("transition-property")}} プロパティによって指定された対応するプロパティに適用されます。マスターリストよりも指定された待ち時間が少ない場合は、充足するまで待ち時間のリストが繰り返して使用されます。また待ち時間の数が多い場合は、リストが適切な長さに切り詰められます。どちらの場合も、 CSS の宣言として妥当です。

+ +

構文

+ +
/* <time> 値 */
+transition-delay: 3s;
+transition-delay: 2s, 4ms;
+
+/* グローバル値 */
+transition-delay: inherit;
+transition-delay: initial;
+transition-delay: unset;
+
+ +

+ +
+
<time>
+
プロパティの値の変更からアニメーション効果が始まるまでの待ち時間を表す {{cssxref("<time>")}} 形式の値。
+
+ +

形式文法

+ +{{csssyntax}} + +

+ +
+
+

transition-delay: 0.5s

+ + + +
{{EmbedLiveSample("delay_0_5s",275,150)}}
+
+ +
+

transition-delay: 1s

+ + + +
{{EmbedLiveSample("delay_1s",275,150)}}
+
+ +
+

transition-delay: 2s

+ + + +
{{EmbedLiveSample("delay_2s",275,150)}}
+
+ +
+

transition-delay: 4s

+ + + +
{{EmbedLiveSample("delay_4s",275,150)}}
+
+
+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('CSS3 Transitions', '#transition-delay-property', 'transition-delay')}}{{Spec2('CSS3 Transitions')}}初回定義
+ +

{{cssinfo}}

+ +

ブラウザーの対応

+ +

{{Compat("css.properties.transition-delay")}}

+ +

関連情報

+ + diff --git a/files/ja/web/css/transition-duration/index.html b/files/ja/web/css/transition-duration/index.html deleted file mode 100644 index 21955fe824..0000000000 --- a/files/ja/web/css/transition-duration/index.html +++ /dev/null @@ -1,347 +0,0 @@ ---- -title: transition-duration -slug: Web/CSS/transition-duration -tags: - - CSS - - CSS Property - - CSS Transitions - - Reference - - 'recipe:css-property' -translation_of: Web/CSS/transition-duration ---- -
{{CSSRef}}
- -

transition-durationCSS のプロパティで、トランジションによるアニメーションが完了するまでの所要時間を秒数またはミリ秒数で指定します。既定値は 0s であり、これはアニメーションを実行しないことを示します。

- -
{{EmbedInteractiveExample("pages/css/transition-duration.html")}}
- - - -

このプロパティには複数の所要時間を指定することができます。それぞれの時間は、マスターリストを務める {{ cssxref("transition-property") }} プロパティの指定値で対応するプロパティに適用されます。指定した所要時間の数がマスターリストで指定したプロパティの数より少ない場合は、不足している値は初期値 (0s) になります。また所要時間の数が多い場合は、リストを適切な長さに切り詰めます。どちらの場合も、CSS の宣言として妥当です。

- -

構文

- -
/* <time> 値 */
-transition-duration: 6s;
-transition-duration: 120ms;
-transition-duration: 1s, 15s;
-transition-duration: 10s, 30s, 230ms;
-
-/* グローバル値 */
-transition-duration: inherit;
-transition-duration: initial;
-transition-duration: unset;
-
- -

- -
-
<time>
-
プロパティの古い値から新しい値へ遷移するのにかかる時間を表す {{cssxref("<time>")}} 形式の値です。0s の時間は、遷移が起こらないこと、すなわち、2 つの状態間の切り替えが瞬間的であることを示します。負の値を指定すると、宣言は無効になります。
-
- -

公式定義

- -

{{CSSInfo}}

- -

形式文法

- -{{csssyntax}} - -

- -
-
-

transition-duration: 0.5s

- - - -
{{EmbedLiveSample("duration_0_5s",275,150)}}
-
- -
-

transition-duration: 1s

- - - -
{{EmbedLiveSample("duration_1s",275,150)}}
-
- -
-

transition-duration: 2s

- - - -
{{EmbedLiveSample("duration_2s",275,150)}}
-
- -
-

transition-duration: 4s

- - - -
{{EmbedLiveSample("duration_4s",275,150)}}
-
-
- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{ SpecName('CSS3 Transitions', '#transition-duration-property', 'transition-duration') }}{{ Spec2('CSS3 Transitions') }}初回定義
- -

ブラウザーの互換性

- -

{{Compat("css.properties.transition-duration")}}

- -

関連情報

- - diff --git a/files/ja/web/css/transition-duration/index.md b/files/ja/web/css/transition-duration/index.md new file mode 100644 index 0000000000..21955fe824 --- /dev/null +++ b/files/ja/web/css/transition-duration/index.md @@ -0,0 +1,347 @@ +--- +title: transition-duration +slug: Web/CSS/transition-duration +tags: + - CSS + - CSS Property + - CSS Transitions + - Reference + - 'recipe:css-property' +translation_of: Web/CSS/transition-duration +--- +
{{CSSRef}}
+ +

transition-durationCSS のプロパティで、トランジションによるアニメーションが完了するまでの所要時間を秒数またはミリ秒数で指定します。既定値は 0s であり、これはアニメーションを実行しないことを示します。

+ +
{{EmbedInteractiveExample("pages/css/transition-duration.html")}}
+ + + +

このプロパティには複数の所要時間を指定することができます。それぞれの時間は、マスターリストを務める {{ cssxref("transition-property") }} プロパティの指定値で対応するプロパティに適用されます。指定した所要時間の数がマスターリストで指定したプロパティの数より少ない場合は、不足している値は初期値 (0s) になります。また所要時間の数が多い場合は、リストを適切な長さに切り詰めます。どちらの場合も、CSS の宣言として妥当です。

+ +

構文

+ +
/* <time> 値 */
+transition-duration: 6s;
+transition-duration: 120ms;
+transition-duration: 1s, 15s;
+transition-duration: 10s, 30s, 230ms;
+
+/* グローバル値 */
+transition-duration: inherit;
+transition-duration: initial;
+transition-duration: unset;
+
+ +

+ +
+
<time>
+
プロパティの古い値から新しい値へ遷移するのにかかる時間を表す {{cssxref("<time>")}} 形式の値です。0s の時間は、遷移が起こらないこと、すなわち、2 つの状態間の切り替えが瞬間的であることを示します。負の値を指定すると、宣言は無効になります。
+
+ +

公式定義

+ +

{{CSSInfo}}

+ +

形式文法

+ +{{csssyntax}} + +

+ +
+
+

transition-duration: 0.5s

+ + + +
{{EmbedLiveSample("duration_0_5s",275,150)}}
+
+ +
+

transition-duration: 1s

+ + + +
{{EmbedLiveSample("duration_1s",275,150)}}
+
+ +
+

transition-duration: 2s

+ + + +
{{EmbedLiveSample("duration_2s",275,150)}}
+
+ +
+

transition-duration: 4s

+ + + +
{{EmbedLiveSample("duration_4s",275,150)}}
+
+
+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{ SpecName('CSS3 Transitions', '#transition-duration-property', 'transition-duration') }}{{ Spec2('CSS3 Transitions') }}初回定義
+ +

ブラウザーの互換性

+ +

{{Compat("css.properties.transition-duration")}}

+ +

関連情報

+ + diff --git a/files/ja/web/css/transition-property/index.html b/files/ja/web/css/transition-property/index.html deleted file mode 100644 index 099ed1504f..0000000000 --- a/files/ja/web/css/transition-property/index.html +++ /dev/null @@ -1,101 +0,0 @@ ---- -title: transition-property -slug: Web/CSS/transition-property -tags: - - CSS - - CSS Property - - CSS Transitions - - Reference - - 'recipe:css-property' -translation_of: Web/CSS/transition-property ---- -
{{CSSRef}}
- -

transition-propertyCSS のプロパティで、トランジション効果を適用する CSS プロパティを指定します。

- -
{{EmbedInteractiveExample("pages/css/transition-property.html")}}
- - - -
注: アニメーション可能なプロパティのセットは変更される可能性があります。これにより、将来意図しない結果を引き起こす可能性があるため、リストで現状アニメーションしないとしているプロパティを使用することは避けてください。
- -

一括指定プロパティ (例えば {{cssxref("background")}}) を指定すると、その個別指定のサブプロパティすべてをアニメーションさせることができます。

- -

構文

- -
/* キーワード値 */
-transition-property: none;
-transition-property: all;
-
-/* <custom-ident> 値 */
-transition-property: test_05;
-transition-property: -specific;
-transition-property: sliding-vertically;
-
-/* 複数の値 */
-transition-property: test1, animation4;
-transition-property: all, height, color;
-transition-property: all, -moz-specific, sliding;
-
-/* グローバル値 */
-transition-property: inherit;
-transition-property: initial;
-transition-property: unset;
-
- -

- -
-
none
-
どのプロパティもトランジションを行いません。
-
all
-
トランジションが可能なすべてのプロパティで、トランジションを行います。
-
{{cssxref("<custom-ident>")}}
-
値が変更されたとき、トランジション効果を適用するプロパティを識別する文字列です。
-
- -

Formal definition

- -

{{CSSInfo}}

- -

Formal syntax

- -{{csssyntax}} - -

- -

中心となる CSS トランジションの記事に、 CSS トランジションの例がいくつかあります。

- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName('CSS3 Transitions', '#transition-property-property', 'transition-property')}}{{Spec2('CSS3 Transitions')}}初回定義
- -

ブラウザーの互換性

- -

{{Compat("css.properties.transition-property")}}

- -

関連情報

- - diff --git a/files/ja/web/css/transition-property/index.md b/files/ja/web/css/transition-property/index.md new file mode 100644 index 0000000000..099ed1504f --- /dev/null +++ b/files/ja/web/css/transition-property/index.md @@ -0,0 +1,101 @@ +--- +title: transition-property +slug: Web/CSS/transition-property +tags: + - CSS + - CSS Property + - CSS Transitions + - Reference + - 'recipe:css-property' +translation_of: Web/CSS/transition-property +--- +
{{CSSRef}}
+ +

transition-propertyCSS のプロパティで、トランジション効果を適用する CSS プロパティを指定します。

+ +
{{EmbedInteractiveExample("pages/css/transition-property.html")}}
+ + + +
注: アニメーション可能なプロパティのセットは変更される可能性があります。これにより、将来意図しない結果を引き起こす可能性があるため、リストで現状アニメーションしないとしているプロパティを使用することは避けてください。
+ +

一括指定プロパティ (例えば {{cssxref("background")}}) を指定すると、その個別指定のサブプロパティすべてをアニメーションさせることができます。

+ +

構文

+ +
/* キーワード値 */
+transition-property: none;
+transition-property: all;
+
+/* <custom-ident> 値 */
+transition-property: test_05;
+transition-property: -specific;
+transition-property: sliding-vertically;
+
+/* 複数の値 */
+transition-property: test1, animation4;
+transition-property: all, height, color;
+transition-property: all, -moz-specific, sliding;
+
+/* グローバル値 */
+transition-property: inherit;
+transition-property: initial;
+transition-property: unset;
+
+ +

+ +
+
none
+
どのプロパティもトランジションを行いません。
+
all
+
トランジションが可能なすべてのプロパティで、トランジションを行います。
+
{{cssxref("<custom-ident>")}}
+
値が変更されたとき、トランジション効果を適用するプロパティを識別する文字列です。
+
+ +

Formal definition

+ +

{{CSSInfo}}

+ +

Formal syntax

+ +{{csssyntax}} + +

+ +

中心となる CSS トランジションの記事に、 CSS トランジションの例がいくつかあります。

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('CSS3 Transitions', '#transition-property-property', 'transition-property')}}{{Spec2('CSS3 Transitions')}}初回定義
+ +

ブラウザーの互換性

+ +

{{Compat("css.properties.transition-property")}}

+ +

関連情報

+ + diff --git a/files/ja/web/css/transition/index.html b/files/ja/web/css/transition/index.html deleted file mode 100644 index a260f7e864..0000000000 --- a/files/ja/web/css/transition/index.html +++ /dev/null @@ -1,140 +0,0 @@ ---- -title: transition -slug: Web/CSS/transition -tags: - - CSS - - CSS Property - - CSS Transitions - - CSS プロパティ - - CSS トランジション - - Reference - - recipe:css-shorthand-property -translation_of: Web/CSS/transition ---- -
{{CSSRef}}
- -

transitionCSS のプロパティで、 {{cssxref("transition-property")}}、 {{cssxref("transition-duration")}}、 {{cssxref("transition-timing-function")}}、 {{cssxref("transition-delay")}} の一括指定プロパティです。

- -
{{EmbedInteractiveExample("pages/css/transition.html")}}
- -

トランジション (transition) は、要素の 2 つの状態間の変化を定義するためのものです。それぞれの状態は {{cssxref(":hover")}} や {{cssxref(":active")}} のような擬似クラスで定義されたり、 JavaScript を使用して動的に設定されたりします。

- -

構成要素のプロパティ

- -

このプロパティは以下の CSS プロパティの一括指定です。

- - - -

構文

- -
/* 1つのプロパティへの適用 */
-/* プロパティ名 | 時間 */
-transition: margin-right 4s;
-
-/* プロパティ名 | 時間 | 遅延 */
-transition: margin-right 4s 1s;
-
-/* プロパティ名 | 時間 | イージング関数 */
-transition: margin-right 4s ease-in-out;
-
-/* プロパティ名 | 時間 | イージング関数 | 遅延 */
-transition: margin-right 4s ease-in-out 1s;
-
-/* 2つのプロパティへの適用 */
-transition: margin-right 4s, color 1s;
-
-/* 変化するすべてのプロパティへの適用 */
-transition: all 0.5s ease-out;
-
-/* グローバル値 */
-transition: inherit;
-transition: initial;
-transition: unset;
-
- -

transition プロパティは、 1 つまたは複数の単体プロパティによるトランジションを、コンマで区切って指定します。

- -

それぞれの単体プロパティのトランジションでは、単体のプロパティ (または特別な値である all および none) に適用されるトランジションを記述します。記述は以下の通りです。

- - - -

プロパティ値の一覧が同じ長さではない場合については、プロパティ値のリストの長さが異なる場合を参照してください。つまり、実際にアニメーション化されているプロパティの数を超える余分なトランジションの記述は無視されます。

- -

公式定義

- -

{{CSSInfo}}

- -

形式文法

- -{{csssyntax}} - -

- -

単純な例

- -

この例では、ユーザーが要素の上にカーソルを置いたときに、 1 秒間の遅延をつけて 4 秒間でフォントサイズの遷移を行います。

- -

HTML

- -
<a class="target">Hover over me</a>
- -

CSS

- -
.target {
-  font-size: 14px;
-  transition: font-size 4s 1s;
-}
-
-.target:hover {
-  font-size: 36px;
-}
-
- -

{{EmbedLiveSample('Simple_example', 600, 100)}}

- -

CSS transitions の記事に、 CSS トランジションの例がいくつかあります。

- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{ SpecName('CSS3 Transitions', '#transition-shorthand-property', 'transition') }}{{ Spec2('CSS3 Transitions') }}初回定義
- -

ブラウザーの互換性

- -

{{Compat("css.properties.transition")}}

- -

関連情報

- - diff --git a/files/ja/web/css/transition/index.md b/files/ja/web/css/transition/index.md new file mode 100644 index 0000000000..a260f7e864 --- /dev/null +++ b/files/ja/web/css/transition/index.md @@ -0,0 +1,140 @@ +--- +title: transition +slug: Web/CSS/transition +tags: + - CSS + - CSS Property + - CSS Transitions + - CSS プロパティ + - CSS トランジション + - Reference + - recipe:css-shorthand-property +translation_of: Web/CSS/transition +--- +
{{CSSRef}}
+ +

transitionCSS のプロパティで、 {{cssxref("transition-property")}}、 {{cssxref("transition-duration")}}、 {{cssxref("transition-timing-function")}}、 {{cssxref("transition-delay")}} の一括指定プロパティです。

+ +
{{EmbedInteractiveExample("pages/css/transition.html")}}
+ +

トランジション (transition) は、要素の 2 つの状態間の変化を定義するためのものです。それぞれの状態は {{cssxref(":hover")}} や {{cssxref(":active")}} のような擬似クラスで定義されたり、 JavaScript を使用して動的に設定されたりします。

+ +

構成要素のプロパティ

+ +

このプロパティは以下の CSS プロパティの一括指定です。

+ + + +

構文

+ +
/* 1つのプロパティへの適用 */
+/* プロパティ名 | 時間 */
+transition: margin-right 4s;
+
+/* プロパティ名 | 時間 | 遅延 */
+transition: margin-right 4s 1s;
+
+/* プロパティ名 | 時間 | イージング関数 */
+transition: margin-right 4s ease-in-out;
+
+/* プロパティ名 | 時間 | イージング関数 | 遅延 */
+transition: margin-right 4s ease-in-out 1s;
+
+/* 2つのプロパティへの適用 */
+transition: margin-right 4s, color 1s;
+
+/* 変化するすべてのプロパティへの適用 */
+transition: all 0.5s ease-out;
+
+/* グローバル値 */
+transition: inherit;
+transition: initial;
+transition: unset;
+
+ +

transition プロパティは、 1 つまたは複数の単体プロパティによるトランジションを、コンマで区切って指定します。

+ +

それぞれの単体プロパティのトランジションでは、単体のプロパティ (または特別な値である all および none) に適用されるトランジションを記述します。記述は以下の通りです。

+ + + +

プロパティ値の一覧が同じ長さではない場合については、プロパティ値のリストの長さが異なる場合を参照してください。つまり、実際にアニメーション化されているプロパティの数を超える余分なトランジションの記述は無視されます。

+ +

公式定義

+ +

{{CSSInfo}}

+ +

形式文法

+ +{{csssyntax}} + +

+ +

単純な例

+ +

この例では、ユーザーが要素の上にカーソルを置いたときに、 1 秒間の遅延をつけて 4 秒間でフォントサイズの遷移を行います。

+ +

HTML

+ +
<a class="target">Hover over me</a>
+ +

CSS

+ +
.target {
+  font-size: 14px;
+  transition: font-size 4s 1s;
+}
+
+.target:hover {
+  font-size: 36px;
+}
+
+ +

{{EmbedLiveSample('Simple_example', 600, 100)}}

+ +

CSS transitions の記事に、 CSS トランジションの例がいくつかあります。

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{ SpecName('CSS3 Transitions', '#transition-shorthand-property', 'transition') }}{{ Spec2('CSS3 Transitions') }}初回定義
+ +

ブラウザーの互換性

+ +

{{Compat("css.properties.transition")}}

+ +

関連情報

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