CSS3 New Attribute transform 3D base note.

Source: Internet
Author: User

This paper studies the effect of 3D attribute in the transform transform attribute in the next CSS3 and sees a good article about 3D learning; Good Article address: http://www.zhangxinxu.com/wordpress/2012/09/ css3-3d-transform-perspective-animate-transition/

Here are just some examples of code you can read yourself:

<style>#box{-webkit-perspective:800px;//define 3D scene size-webkit-transform-origin:50% 50%;//define the center point of the 3D scenePerspective:800px;Transform-origin:50% 50%;    }. Box{width:200px;Height:200px;margin:0 Auto;Transfrom-style:preserve-3d;//The type of transformation is 3DBackground-color:Green;-webkit-transform:Rotatey (45deg) Rotatex (30deg) Rotatez (25deg);//make 3D model space axis change to elementTransform:Rotatey (45deg) Rotatex (30deg) Rotatez (25deg);       }</style></Head><Body>    <DivID= "box">        <Divclass= "box"></Div>    </Div></Body>

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.