aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/css/transform-function/rotate()
diff options
context:
space:
mode:
authorMDN <actions@users.noreply.github.com>2022-03-19 00:13:08 +0000
committerMDN <actions@users.noreply.github.com>2022-03-19 00:13:08 +0000
commit9bf6693b2edd5281c1577856895c55653a41dc01 (patch)
tree0143e1d1d5c95776e42d8d9afdddedb13a0827c1 /files/ja/web/css/transform-function/rotate()
parent376471eb81e0a3dc263128f834e3c8c22bb9b4d6 (diff)
downloadtranslated-content-9bf6693b2edd5281c1577856895c55653a41dc01.tar.gz
translated-content-9bf6693b2edd5281c1577856895c55653a41dc01.tar.bz2
translated-content-9bf6693b2edd5281c1577856895c55653a41dc01.zip
[CRON] sync translated content
Diffstat (limited to 'files/ja/web/css/transform-function/rotate()')
-rw-r--r--files/ja/web/css/transform-function/rotate()/index.md287
1 files changed, 0 insertions, 287 deletions
diff --git a/files/ja/web/css/transform-function/rotate()/index.md b/files/ja/web/css/transform-function/rotate()/index.md
deleted file mode 100644
index 680dadc756..0000000000
--- a/files/ja/web/css/transform-function/rotate()/index.md
+++ /dev/null
@@ -1,287 +0,0 @@
----
-title: rotate()
-slug: Web/CSS/transform-function/rotate()
-tags:
- - CSS
- - CSS 関数
- - CSS 座標変換
- - 関数
- - リファレンス
-browser-compat: css.types.transform-function.rotate
-translation_of: Web/CSS/transform-function/rotate()
----
-{{CSSRef}}
-
-**`rotate()`** は [CSS](/ja/docs/Web/CSS) の[関数](/ja/docs/Web/CSS/CSS_Functions)で、要素を二次元平面上の特定の点を中心に、形を崩さずに回転させる変形を定義します。結果は {{cssxref("&lt;transform-function&gt;")}} データ型になります。
-
-要素が回転する中心となる特定の点 — 前述 — は、**変形原点**とも呼ばれます。既定では要素の中央ですが、 {{ cssxref("transform-origin") }} プロパティを使用して独自の変形原点を設定することができます。
-
-## 構文
-
-`rotate()` で生成される回転の量は、 {{cssxref("&lt;angle&gt;")}} で指定します。正の数であれば、移動は時計回りです。負の数であれば、反時計回りになります。180 度で回転したものは*点対称*と呼ばれます。
-
-```css
-rotate(a)
-```
-
-### 値
-
-- _a_
- - : {{ cssxref("&lt;angle&gt;") }} で、回転する角度を表します。回転方向は書字方向に依存します。
- 左書きの文脈では、正の角度は時計回りの回転を、負の角度は反時計回りの回転を表します。右書きの文脈では 正の角度は反時計回りの回転を、負の角度は時計回りの回転を表します。
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">ℝ^2 のデカルト座標</th>
- <th scope="col">ℝℙ^2 の同次座標</th>
- <th scope="col">ℝ^3 のデカルト座標</th>
- <th scope="col">ℝℙ^3 の同次座標</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td rowspan="2">
- <math
- ><mfenced
- ><mtable
- ><mtr
- ><mtd
- ><mo>cos</mo>
- <mo>(</mo>
- <mi>a</mi>
- <mo>)</mo> </mtd
- ><mtd
- ><mo>-</mo>
- <mo>sin</mo>
- <mo>(</mo>
- <mi>a</mi>
- <mo>)</mo>
- </mtd></mtr
- ><mtr
- ><mtd
- ><mo>sin</mo>
- <mo>(</mo>
- <mi>a</mi>
- <mo>)</mo> </mtd
- ><mtd
- ><mo>cos</mo>
- <mo>(</mo>
- <mi>a</mi>
- <mo>)</mo></mtd
- ></mtr
- ></mtable
- ></mfenced
- ></math
- >
- </td>
- <td>
- <math
- ><mfenced
- ><mtable
- ><mtr
- ><mtd
- ><mo>cos</mo>
- <mo>(</mo>
- <mi>a</mi>
- <mo>)</mo> </mtd
- ><mtd
- ><mo>-</mo>
- <mo>sin</mo>
- <mo>(</mo>
- <mi>a</mi>
- <mo>)</mo> </mtd
- ><mtd><mn>0</mn> </mtd></mtr
- ><mtr
- ><mtd
- ><mo>sin</mo>
- <mo>(</mo>
- <mi>a</mi>
- <mo>)</mo> </mtd
- ><mtd
- ><mo>cos</mo>
- <mo>(</mo>
- <mi>a</mi>
- <mo>)</mo> </mtd
- ><mtd><mn>0</mn> </mtd></mtr
- ><mtr
- ><mtd><mn>0</mn> </mtd><mtd><mn>0</mn> </mtd
- ><mtd><mn>1</mn></mtd></mtr
- ></mtable
- ></mfenced
- ></math
- >
- </td>
- <td rowspan="2">
- <math
- ><mfenced
- ><mtable
- ><mtr
- ><mtd
- ><mo>cos</mo>
- <mo>(</mo>
- <mi>a</mi>
- <mo>)</mo> </mtd
- ><mtd
- ><mo>-</mo>
- <mo>sin</mo>
- <mo>(</mo>
- <mi>a</mi>
- <mo>)</mo> </mtd
- ><mtd><mn>0</mn> </mtd></mtr
- ><mtr
- ><mtd
- ><mo>sin</mo>
- <mo>(</mo>
- <mi>a</mi>
- <mo>)</mo> </mtd
- ><mtd
- ><mo>cos</mo>
- <mo>(</mo>
- <mi>a</mi>
- <mo>)</mo> </mtd
- ><mtd><mn>0</mn> </mtd></mtr
- ><mtr
- ><mtd><mn>0</mn> </mtd><mtd><mn>0</mn> </mtd
- ><mtd><mn>1</mn></mtd></mtr
- ></mtable
- ></mfenced
- ></math
- >
- </td>
- <td rowspan="2">
- <math
- ><mfenced
- ><mtable
- ><mtr
- ><mtd
- ><mo>cos</mo>
- <mo>(</mo>
- <mi>a</mi>
- <mo>)</mo> </mtd
- ><mtd
- ><mo>-</mo>
- <mo>sin</mo>
- <mo>(</mo>
- <mi>a</mi>
- <mo>)</mo> </mtd
- ><mtd><mn>0</mn> </mtd><mtd><mn>0</mn> </mtd></mtr
- ><mtr
- ><mtd
- ><mo>sin</mo>
- <mo>(</mo>
- <mi>a</mi>
- <mo>)</mo> </mtd
- ><mtd
- ><mo>cos</mo>
- <mo>(</mo>
- <mi>a</mi>
- <mo>)</mo> </mtd
- ><mtd><mn>0</mn> </mtd><mtd><mn>0</mn> </mtd></mtr
- ><mtr
- ><mtd><mn>0</mn> </mtd><mtd><mn>0</mn> </mtd
- ><mtd><mn>1</mn> </mtd><mtd><mn>0</mn> </mtd></mtr
- ><mtr
- ><mtd><mn>0</mn> </mtd><mtd><mn>0</mn> </mtd
- ><mtd><mn>0</mn> </mtd><mtd><mn>1</mn></mtd></mtr
- ></mtable
- ></mfenced
- ></math
- >
- </td>
- </tr>
- <tr>
- <td><code>[cos(a) sin(a) -sin(a) cos(a) 0 0]</code></td>
- </tr>
- </tbody>
-</table>
-
-## 例
-
-<h3 id="Basic_example">基本的な例</h3>
-
-#### HTML
-
-```html
-<div>Normal</div>
-<div class="rotated">Rotated</div>
-```
-
-#### CSS
-
-```css
-div {
- width: 80px;
- height: 80px;
- background-color: skyblue;
-}
-
-.rotated {
- transform: rotate(45deg); /* rotateZ(45deg) と等価 */
- background-color: pink;
-}
-```
-
-#### 結果
-
-{{EmbedLiveSample("Basic_example", "auto", 180)}}
-
-<h3 id="Combining_rotation_with_another_transformation">回転とその他の変形の組み合わせ</h3>
-
-複数の変形を要素に適用したい場合は、変形を指定する順序に気を付けてください。例えば、平行移動前に回転すると、平行移動によって回転の軸が変わってしまいます。
-
-#### HTML
-
-```html
-<div>Normal</div>
-<div class="rotate">Rotated</div>
-<div class="rotate-translate">Rotated + Translated</div>
-<div class="translate-rotate">Translated + Rotated</div>
-```
-
-#### CSS
-
-```css
-div {
- position: absolute;
- left: 40px;
- top: 40px;
- width: 100px;
- height: 100px;
- background-color: lightgray;
-}
-
-.rotate {
- background-color: transparent;
- outline: 2px dashed;
- transform: rotate(45deg);
-}
-
-.rotate-translate {
- background-color: pink;
- transform: rotate(45deg) translateX(180px);
-}
-
-.translate-rotate {
- background-color: gold;
- transform: translateX(180px) rotate(45deg);
-}
-```
-
-#### 結果
-
-{{EmbedLiveSample("Combining_rotation_with_another_transformation", "auto", 320)}}
-
-## 仕様書
-
-{{Specifications}}
-
-## ブラウザーの互換性
-
-{{Compat}}
-
-## 関連情報
-
-- {{cssxref("transform")}}
-- {{cssxref("&lt;transform-function&gt;")}}
-- [`rotate3d()`](/ja/docs/Web/CSS/transform-function/rotate3d())