How to perform a 2D conversion with CSS3

Source: Internet
Author: User
conversion is an effect of changing the shape, size, and position of an element, CSS3 includes 2D conversions and 3D conversions, where we only accept 2D conversions!

1.Translate () method

By the translate () method, the element is moved from its current position and converted according to the given positional parameters

Code implementation:

Actual effect:


2.Rotate () method


The element rotates the given angle clockwise by the rotate () method.

Code implementation:


Actual effect:


3.scale () method

The size of the element is increased or decreased by the scale () method

Code implementation:


Actual effect:

4.skew () method

By the skew () method, the element flips the given angle

Code implementation:


Actual effect:


This article explains how to do 2D conversion through CSS3, more relevant content please focus on PHP Chinese web.

Related recommendations:

Detailed JavaScript variables and scopes

About $.ajax () method parameters

Explaining math object Math related content

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.