CSS3 3D Conversion Translate3d (x, y, z) function

Source: Internet
Author: User

CSS3 3D Conversion translate3d (x, y, z) function:
Translate3d (x, Y, z) is just a form of a 3D conversion, and more relevant content can be found inCSS3 3D Conversion effect Detailed introductiona chapter.
This function is used to specify the displacement of the specified element in three-dimensional space.
syntax structure:

Translate3d (x, Y, z)

parameter resolution:
1.x: Represents the displacement in the x-axis direction.
2.y: Represents the displacement in the y-axis direction.
3.z: Represents the displacement in the z-axis direction.
code Example:
1.x displacement in axis direction:

<! doctype html>   

Drag button to achieve the x-axis direction of displacement of the demonstration, everything is clear.
2.y displacement in axis direction:

<! doctype html>   

Drag the button to achieve the y-axis direction displacement of the demonstration, everything is clear.
3.z axis Direction Displacement:

<! doctype html>   

CSS3 's perspective properties are detailed in one chapter.  
translate3d () function can also be split to write separately:

Transform:translatex (10px); Transform:translatey (20px); Transform:translatez (30px);

There is not much to introduce, very simple, a look at the understanding.

The original address is: CSS3 's 3D conversion translate3d (x, y, z) function section.

CSS3 3D Conversion Translate3d (x, y, z) function

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.