Css3-3d effect Cube

Source: Internet
Author: User

1. The top and bottom of the cube:

        . cubebottom{            Transform:rotatex (90deg);            Transform-origin:center bottom  ;/*: Rotates around X, mainly determines the height of Y: Right bottom, 1px  300px, 2px  300px,.. 100px 300px. */< c6/>}
2. Around the cube:

        . cubeleft{            Transform:rotatey (90deg);            Transform-origin:left center  ;/*: Rotate around y, main OK x  : Left bottom, left  300px, 0  300px,.. 0 500px.. */        }
3. Before and after the cube:

  

     . cubefront{            Transform:translatez (0px);        }        . cubeback{            Transform:translatez ( -300px);        }

  

4 Cube implementations: note
  /* Pivot Center and perspective distance */
Perspective-origin: 0 1000px;
perspective:2000px;
  /* Effect: Flat or 3d stereo */
transform-style:preserve-3d;



Source:
<! DOCTYPE html>

 

5 Cube Implementation-Animation implementation cube

<! DOCTYPE html>

  

Css3-3d effect Cube

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.