CSS3 2D Conversion

Source: Internet
Author: User

One, CSS3 2D has two properties:

(1), transform: The element used for 2D or 3D conversion.

(2), Transform-origin: Allows changing the location of the conversion element .

Two, CSS3 2D of the transform attribute There are 5 major methods:

1, rotate (angle) Rotation method: Define 2D rotation, the parameters of the method specifies the angle (deg).

Html:

Css:

Effect:

2, scale () Scaling method: Define 2D scaling elements.

(1), scale (x, y): Defines 2D scaling, changing the width and height of the element.

Html:

Css:

Effect: twice times larger than the original

(2), ScaleY (n): 2D zoom, change the height of the element.

Html:

Css:

Effect:

(3), ScaleX (n) 2D zoom, change the width of the element.

Html:

Css:

                      

     

Effect:

    

CSS3 2D Conversion

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.