Conversion module
Property: Transform
Method:
The rotate () element rotates clockwise at the given angle, negative value, and the element is rotated counterclockwise, in units of deg.
With Rotatex, Rotatey, Rotatez, default Z
The translate () element moves from its current position, based on the given left (x-coordinate) and top (y-coordinate) positional parameters.
Have Translatex,translatey
The size of the scale () element increases or decreases, based on the given width (X axis) and height (Y axis) parameters. When the parameter is >1, zoom in, and when the parameter <1, zoom out.
Have Scalex,scaley
Note the point:
1. If multiple conversions are required, separate them with a space
The 2.2D conversion module modifies the coordinate system of the element, so the translation is not panned horizontally after rotation
Example: Transform:rotate (45deg) translate (100px, 0px) scale (1.5, 1.5);
Properties: Transform-origin (deformation center point)
Transform-origin:x y; x horizontal y Direction Vertical
Parameters: Specific pixels (15px), percent (15%), special keywords (right center bottom)
Property: Perspective
perspective:150px; pixels represent distances
Perspective: Near large far small perspective properties must be added to the parent element of an element that needs to render near-large-size effects
CSS3 2D Conversion Module