Page elements--angle

Source: Internet
Author: User

deg angle, which is used with the rotate (num deg) of the deformation attribute transform, which means how many angles are rotated. If you do not specify a center point, the default is to start rotation clockwise in the upper-left corner of the DOM node: deg{Height:100px;background:#eee;-moz-transform:Rotate (2deg);-webkit-transform:Rotate (2deg);Transform:Rotate (2deg);//Clockwise rotation 2 degrees}Grad Gradient, which is used with the rotate (num grad) of the deformation attribute transform. If you do not specify a center point, the default is to start rotation counterclockwise in the upper-left corner of the DOM node: Grad{background:#027F78;Height:100px;-webkit-transform:Rotate (2grad);-moz-transform:Rotate (2grad);-ms-transform:Rotate (2grad);Transform:Rotate (2grad);//Counterclockwise rotation 2 degrees}The angle with the gradient, the same height, can simulate a three-dimensional graphics <div class= "deg" > <div class= "Grad" ></div> <div class= "rad" > Radians </div> <div class= "Turn" > Circles </div></div>rad radians, with the deformation Properties transform rotate (num rad) to use, bad control /c6>.rad{background:#555555;Height:200px;-webkit-transform:Rotate (2rad);-moz-transform:Rotate (2rad);Transform:Rotate (2rad); }turn in circles, the elements in the container are relative to the circle of the container, in the rotation, the center of rotation is not control, num maximum is 1. Turn{background:#027F78;Height:200px;-webkit-transform:rotate (. 7turn);-moz-transform:rotate (. 7turn);-ms-transform:rotate (. 7turn);Transform:rotate (. 7turn); }

Page elements--angle

Related Article

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.