CSS3 2D Conversion Module

Source: Internet
Author: User

Conversion module

Property: Transform

Method:

The rotate () element rotates clockwise at the given angle, negative value, and the element is rotated counterclockwise, in units of deg.

With Rotatex, Rotatey, Rotatez, default Z

The translate () element moves from its current position, based on the given left (x-coordinate) and top (y-coordinate) positional parameters.

Have Translatex,translatey

The size of the scale () element increases or decreases, based on the given width (X axis) and height (Y axis) parameters. When the parameter is >1, zoom in, and when the parameter <1, zoom out.

Have Scalex,scaley

Note the point:

1. If multiple conversions are required, separate them with a space

The 2.2D conversion module modifies the coordinate system of the element, so the translation is not panned horizontally after rotation

Example: Transform:rotate (45deg) translate (100px, 0px) scale (1.5, 1.5);

Properties: Transform-origin (deformation center point)

Transform-origin:x y; x horizontal y Direction Vertical

Parameters: Specific pixels (15px), percent (15%), special keywords (right center bottom)

Property: Perspective

perspective:150px; pixels represent distances

Perspective: Near large far small perspective properties must be added to the parent element of an element that needs to render near-large-size effects

CSS3 2D Conversion Module

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.