CSS3 the difference between flipping and rotating

Source: Internet
Author: User

I have always thought that the rotation and the same as the flip, today, I have rotated for a long time to find and flip almost point, tangled more than 10 minutes to clear, only to blame their three-dimensional too bad.

CSS3 in the transform in the rotation, contraction, tilt, the function of translation, respectively, the corresponding properties are: Rotate,scale,skew,translate

Rotation: (rotate)

-webkit-transform:rotate (10deg);-moz-transform:rotate (10deg); transform:rotate (10deg);
Flip: (Scale)

(This property is the function of the indentation, how can be flipped!) Original brackets inside (the first) represents the x-axis, the latter represents the y-axis, when the number is greater than 1 o'clock magnification, greater than 0 and less than 1 o'clock reduction, negative for flipping)

Flip horizontally:

-webkit-transform:scale ( -1,1);-moz-transform:scale ( -1,1); Transform:scale ( -1,1);
Flip vertically:

-webkit-transform:scale (1,-1);-moz-transform:scale (1,-1); Transform:scale (1,-1);

A very strong brother (@ Sangnijen) Blog: http://blog.sina.com.cn/s/blog_74d6cedd0100v9bk.html

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.