(1) 5 kinds of concrete commonly used: telescopic-scale, twisted-skew, rotating-rotate, moving-translate, Matrix-matrix
(a)
Scale (x, y) scales the elements horizontally and vertically (that is, the x and Y axes are scaled simultaneously), ScaleX (x) elements are scaled horizontally (x-axis scaling), ScaleY (y) elements are scaled only vertically (y-axis scaling), but they have the same zoom center point and cardinality, where The heart point is the center of the element, the scaling base is 1, if its value is greater than the 1 element to enlarge, and its value is less than 1, the element shrinks
(b)
Skew (x, y) distorts the elements in both horizontal and vertical directions (both the X and Y axes are distorted by a certain angular value); skewx (x) only distorts the elements horizontally (x-axis distortion); Skewy (y) distorts the elements only vertically (Y-axis distortion)
(c)
Transform-origin defines the base point of the rotation, where angle refers to the rotation angle, if the set value is a positive number for clockwise rotation, and if the value is set to a negative number, the counter-clockwise rotation. Example: Transform:rotate (30deg)
(d)
Translate (x, y) moves in both horizontal and vertical directions (i.e. simultaneous movement of the y-axis and TranslateX); (x) moves horizontally only (x-axis movement); Translatey (y) moves vertically (Y-axis movement)
(e)
Matrix (<number>, <number>, <number>, <number>, <number>, <number>)
(2) Related available functions:
Transform:nonetransform:matrix (1.0, 2.0, 3.0, 4.0, 5.0, 6.0) transform:translate (12px, 50%) Transform:translatex (2EM) Transform:translatey (3in) Transform:scale (2, 0.5) Transform:scalex (2) Transform:scaley (0.5) transform:rotate ( 0.5turn) transform:skewx (30deg) transform:skewy (1.07rad) Transform:matrix3d (1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 1 0.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0) Transform:translate3d (12px, 50%, 3em) Transform:translatez (2px) transform:scale3 D (2.5, 1.2, 0.3) Transform:scalez (0.3) Transform:rotate3d (1, 2.0, 3.0, 10deg) Transform:rotatex (10deg) Transform: Rotatey (10deg) Transform:rotatez (10deg) transform:perspective (17px) Transform:translatex (10px) rotate (10deg) Translatey (5px)
CSS Warp Properties-transform-