From 7552219a2b9c5a049cee4aa2a5f5bc6e97f6e30e Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Tue, 1 Feb 2022 22:49:44 +0900 Subject: CSS モーションパスのプロパティの記事を移行 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/css/offset-position/index.html | 111 ---------------------------- files/ja/web/css/offset-position/index.md | 111 ++++++++++++++++++++++++++++ 2 files changed, 111 insertions(+), 111 deletions(-) delete mode 100644 files/ja/web/css/offset-position/index.html create mode 100644 files/ja/web/css/offset-position/index.md (limited to 'files/ja/web/css/offset-position') diff --git a/files/ja/web/css/offset-position/index.html b/files/ja/web/css/offset-position/index.html deleted file mode 100644 index 7c63dde0e9..0000000000 --- a/files/ja/web/css/offset-position/index.html +++ /dev/null @@ -1,111 +0,0 @@ ---- -title: offset-position -slug: Web/CSS/offset-position -tags: - - CSS - - CSS Motion Path - - CSS Property - - Experimental - - Property - - offset-position - - 'recipe:css-property' -translation_of: Web/CSS/offset-position ---- -
{{CSSRef}}{{seecompattable}}
- -

offset-position は CSS のプロパティで、 {{cssxref("offset-path")}} の初期位置を定義します。

- -

構文

- -
/* キーワード値 */
-offset-position: auto;
-offset-position: top;
-offset-position: bottom;
-offset-position: left;
-offset-position: right;
-offset-position: center;
-
-/* <percentage> 値 */
-offset-position: 25% 75%;
-
-/* <length> 値 */
-offset-position: 0 0;
-offset-position: 1cm 2cm;
-offset-position: 10ch 8em;
-
-/* 辺とオフセット値 */
-offset-position: bottom 10px right 20px;
-offset-position: right 3em bottom 10px;
-offset-position: bottom 10px right;
-offset-position: top right 10px;
-
-/* グローバル値 */
-offset-position: inherit;
-offset-position: initial;
-offset-position: unset;
-
- -

- -
-
auto
-
初期位置は {{cssxref("position")}} プロパティで指定されたボックスの位置です。
-
<position>
-
{{cssxref("<position>")}} です。位置は x/y 座標を定義し、要素のボックスの辺から相対的にアイテムを配置します。1つから4つの値を使って定義することができます。キーワード以外の値を2つ指定した場合、1つ目の値は水平方向の位置を、2つ目の値は垂直方向の位置を表します。1つの値のみを指定した場合は、2番目の値は center とみなされます。3 つまたは 4 つの値が使用される場合、長さとパーセントの値は、前のキーワード値からのオフセットとなります。これらの値タイプの詳細については、 {{cssxref("background-position")}} を参照してください。
-
- -

公式定義

- -

{{cssinfo}}

- -

形式文法

- -{{csssyntax}} - -

- -

初期オフセット位置の設定

- -
<div id="motion-demo"></div>
-
- -
#motion-demo {
-  offset-path: path('M20,20 C20,100 200,0 200,100');
-  offset-position: left top;
-  animation: move 3000ms infinite alternate ease-in-out;
-  width: 40px;
-  height: 40px;
-  background: cyan;
-}
-
-@keyframes move {
-  0% {
-    offset-distance: 0%;
-  }
-  100% {
-    offset-distance: 100%;
-  }
-}
- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName('Motion Path Level 1', '#offset-position-property', 'offset-position')}}{{Spec2('Motion Path Level 1')}}初回定義
- -

ブラウザーの互換性

- -

{{Compat("css.properties.offset-position")}}

diff --git a/files/ja/web/css/offset-position/index.md b/files/ja/web/css/offset-position/index.md new file mode 100644 index 0000000000..7c63dde0e9 --- /dev/null +++ b/files/ja/web/css/offset-position/index.md @@ -0,0 +1,111 @@ +--- +title: offset-position +slug: Web/CSS/offset-position +tags: + - CSS + - CSS Motion Path + - CSS Property + - Experimental + - Property + - offset-position + - 'recipe:css-property' +translation_of: Web/CSS/offset-position +--- +
{{CSSRef}}{{seecompattable}}
+ +

offset-position は CSS のプロパティで、 {{cssxref("offset-path")}} の初期位置を定義します。

+ +

構文

+ +
/* キーワード値 */
+offset-position: auto;
+offset-position: top;
+offset-position: bottom;
+offset-position: left;
+offset-position: right;
+offset-position: center;
+
+/* <percentage> 値 */
+offset-position: 25% 75%;
+
+/* <length> 値 */
+offset-position: 0 0;
+offset-position: 1cm 2cm;
+offset-position: 10ch 8em;
+
+/* 辺とオフセット値 */
+offset-position: bottom 10px right 20px;
+offset-position: right 3em bottom 10px;
+offset-position: bottom 10px right;
+offset-position: top right 10px;
+
+/* グローバル値 */
+offset-position: inherit;
+offset-position: initial;
+offset-position: unset;
+
+ +

+ +
+
auto
+
初期位置は {{cssxref("position")}} プロパティで指定されたボックスの位置です。
+
<position>
+
{{cssxref("<position>")}} です。位置は x/y 座標を定義し、要素のボックスの辺から相対的にアイテムを配置します。1つから4つの値を使って定義することができます。キーワード以外の値を2つ指定した場合、1つ目の値は水平方向の位置を、2つ目の値は垂直方向の位置を表します。1つの値のみを指定した場合は、2番目の値は center とみなされます。3 つまたは 4 つの値が使用される場合、長さとパーセントの値は、前のキーワード値からのオフセットとなります。これらの値タイプの詳細については、 {{cssxref("background-position")}} を参照してください。
+
+ +

公式定義

+ +

{{cssinfo}}

+ +

形式文法

+ +{{csssyntax}} + +

+ +

初期オフセット位置の設定

+ +
<div id="motion-demo"></div>
+
+ +
#motion-demo {
+  offset-path: path('M20,20 C20,100 200,0 200,100');
+  offset-position: left top;
+  animation: move 3000ms infinite alternate ease-in-out;
+  width: 40px;
+  height: 40px;
+  background: cyan;
+}
+
+@keyframes move {
+  0% {
+    offset-distance: 0%;
+  }
+  100% {
+    offset-distance: 100%;
+  }
+}
+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('Motion Path Level 1', '#offset-position-property', 'offset-position')}}{{Spec2('Motion Path Level 1')}}初回定義
+ +

ブラウザーの互換性

+ +

{{Compat("css.properties.offset-position")}}

-- cgit v1.2.3-54-g00ecf