The dashed outline preserves the untransformed reference.
2D- Reference box
Its size provides a reference for percentages and the origin.
- Origin and axes
Each operation composes a new coordinate system.
- Visual result
The box changes appearance; its neighbors keep the space from the layout.
translate moves; rotate turns; scale resizes and skew shears the axes. Separate functions in a list with spaces, not commas between functions. none is the initial value. A non-replaced inline, such as a text span, needs a transformable box: for example, display: inline-block.
In these LTR HTML samples, positive X points right, positive Y down, and positive Z toward the viewer. translateX(50%) uses the width of the element’s own reference box; translateY(50%), its height. These are not percentages of the parent. These samples use the border box; transform-box can select a different reference and is especially relevant in SVG.