From d4b2544728dcaed4245e88738f4320703c7f2bf2 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Sun, 21 Nov 2021 22:53:45 +0900 Subject: Web/CSS/transform-function/translateX を復元 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../css/transform-function/translatex/index.html | 120 --------------------- 1 file changed, 120 deletions(-) delete mode 100644 files/ja/orphaned/web/css/transform-function/translatex/index.html (limited to 'files/ja/orphaned') diff --git a/files/ja/orphaned/web/css/transform-function/translatex/index.html b/files/ja/orphaned/web/css/transform-function/translatex/index.html deleted file mode 100644 index 89f2ee7199..0000000000 --- a/files/ja/orphaned/web/css/transform-function/translatex/index.html +++ /dev/null @@ -1,120 +0,0 @@ ---- -title: translateX() -slug: orphaned/Web/CSS/transform-function/translateX -tags: - - CSS - - CSS Function - - CSS Transforms - - Function - - Reference -translation_of: Web/CSS/transform-function/translateX -original_slug: Web/CSS/transform-function/translateX ---- -
{{CSSRef}}
- -

translateX()CSSfunctionで、要素を二次元平面上の水平方向で再配置します。結果は {{cssxref("<transform-function>")}} データ型になります。

- -

- -
-

注: translateX(tx)translate(tx, 0) または translate3d(tx, 0, 0) と等価です。

-
- -

構文

- -
/* <length-percentage> values */
-transform: translateX(200px);
-transform: translateX(50%);
-
- -

- -
-
<length-percentage>
-
変換ベクトルの横座標を表す {{cssxref("<length>")}} または {{cssxref("<percentage>")}} です。パーセント値は {{cssxref("transform-box")}} プロパティで定義される参照ボックスの幅からの相対値です。
-
- - - - - - - - - - - - - - - - - - - - - -
2 のデカルト座標ℝℙ2 の同次座標3 のデカルト座標ℝℙ3 の同次座標
-

2 では線形変換ではないので、デカルト座標の行列で表すことはできない。

-
10t010001 10t010001 100t010000100001
[1 0 0 1 t 0]
- -

形式文法

- -
translateX({{cssxref("<length-percentage>")}})
-
- -

- -

HTML

- -
<div>Static</div>
-<div class="moved">Moved</div>
-<div>Static</div>
- -

CSS

- -
div {
-  width: 60px;
-  height: 60px;
-  background-color: skyblue;
-}
-
-.moved {
-  transform: translateX(10px); /* translate(10px) と等価 */
-  background-color: pink;
-}
-
- -

結果

- -

{{EmbedLiveSample("Examples", 250, 250)}}

- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName("CSS3 Transforms", "#funcdef-transform-translatex", "translateX()")}}{{Spec2("CSS3 Transforms")}}初回定義
- -

ブラウザーの互換性

- -

<transform-function> データ型の互換性情報をご覧ください。

- -

関連情報

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