You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Boris feedback from 26 May 2011
- Transforms are composed matrix multiplications of the functions
- Transforms apply to coordinate systems, not to elements
- Elika feedback from 12 May
- examples for scale and rotate
- Boris feedback from 15 April
- typo in matrix recomposition
specifies a <ahref="http://www.w3.org/TR/SVG/coords.html#ScalingDefined">2D scale</a> operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first.
389
+
specifies a <ahref="http://www.w3.org/TR/SVG/coords.html#ScalingDefined">2D scale</a> operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first. For example, scale(1, 1) would leave an element unchanged, while scale(2, 2) would cause it to appear twice as long in both the X
390
+
and Y axes, or four times its typical geometric size.
specifies a <ahref="http://www.w3.org/TR/SVG/coords.html#RotationDefined">2D rotation</a> by the angle specified in the parameter about the origin of the element, as defined by the <em>transform-origin</em> property.
408
+
specifies a <ahref="http://www.w3.org/TR/SVG/coords.html#RotationDefined">2D rotation</a> by the angle specified in the parameter about the origin of the element, as defined by the <em>transform-origin</em> property. For example, rotate(90deg) would cause elements to appear
409
+
rotated one-quarter of a turn in the clockwise direction.
That is, in the absence of other styling that affects position and dimensions, a nested set of transforms is equivalent to a single list of transform functions, applied from the outside in. The resulting transform is the matrix multiplication of the list of transforms.
448
+
</p>
444
449
<divclass="example">
445
450
<pre>
446
451
div {
@@ -785,8 +790,8 @@ <h3>Recomposing the matrix</h3>
0 commit comments