回答編集履歴
1
更新
answer
CHANGED
@@ -3,4 +3,15 @@
|
|
3
3
|
```
|
4
4
|
を指定しましょう。
|
5
5
|
|
6
|
-
通常、`transform-origin` はボックスの中央なのですが、SVG の場合は SVG全体の左上になるようです。
|
6
|
+
通常、`transform-origin` はボックスの中央なのですが、SVG の場合は SVG全体の左上になるようです。
|
7
|
+
|
8
|
+
----
|
9
|
+
**更新された要求への回答**
|
10
|
+
|
11
|
+
CSSの`transform`プロパティを使うとどうしてもSVG全体が変形対象になってしまうようなので、`<image>`にSVGの`transform`属性を付けるのはいかがでしょうか。
|
12
|
+
|
13
|
+
```svg
|
14
|
+
<image x="100" y="0" xlink:href="https://placehold.jp/100x500.png" transform="rotate(90, 150, 250)"/>
|
15
|
+
<image x="200" y="0" xlink:href="https://placehold.jp/100x500.png" transform="rotate(90, 250, 250)" />
|
16
|
+
<image x="300" y="0" xlink:href="https://placehold.jp/100x500.png" transform="rotate(90, 350, 250)" />
|
17
|
+
```
|