CSS Warp Properties-transform-

Source: Internet
Author: User

(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-

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.