CSS3 3D Flip Animation

Source: Internet
Author: User

CSS3 Animation Properties:
Transform (Transformation): Changes in size, position, color, deformation, etc.
Transition (Transition): The animation generated during the transition from the initial state to the end state
Animation (animation): Defining Keyframe Animations

CSS3 can achieve a variety of animation effects, the following is the CSS3 to achieve a 3D flip animation effect.

<Divclass= "Container">   <Divclass= "wraphover> <div class="Wrap ">           <Divclass= "Font">               <imgsrc= "Img/01.png">           </Div>           <Divclass= "Back">               <imgsrc= "Img/02.png">           </Div>        </Div>    </Div></Div>
. Container{Perspective:800px;Perspective-origin:50% 50%;}//Create a 3D environment. Wraphover{width:200px;Height:200px;Overflow:Hidden;}. Wrap{position:relative;backface-visibility:Hidden;Transform-style:preserve-3d;}. Wrap Div{position:Absolute;Top:0; Left:0;}. Font{backface-visibility:Hidden;}. Back{backface-visibility:Hidden;Transform:Rotatey (180deg);}. Wraphover:hover Wrap{Transform:Rotatey (180deg);}

Property Description:
Perspective specifies the distance between the observer and the Z=0 plane, perspective-origin specifies the pivot point coordinate value, first using the perspective and Perspective-origin attributes to create an environment;
Transform-style Specifies whether the child elements of an element are in a three-dimensional space, backface-visibility specifies whether the back of the element is visible to the user, and the property is not inheritable.

CSS3 3D Flip Animation

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.