CSS3 3D and 2D

Source: Internet
Author: User

3D rotation of the CSS3:
Roratex (): When the parameter is positive, the box revolves around the x-axis and completes the rotation from the y-axis positive direction to the negative direction of the y-axis, visually showing a change in height.
Roratey (): When the parameter is positive, the box revolves around the y-axis and completes the rotation from the positive direction of the x-axis to the negative direction of the x-axis, visually presenting a change in the width of the box.
Css2d Rotation:
Translate (A, B): A, B, both greater than 0 o'clock, a means displacement in the horizontal direction (from left to right), and a vertical displacement (from the top down),
Rotate (a): A>0, the degree of clockwise rotation on the horizontal plane, the degree of counterclockwise rotation on the horizontal plane when a<0.
Scale (x, y): × refers to the width of the box change, y refers to the box height changes, 0-1 boxes shrink, the >1 box becomes larger.
Skew (x, y): Flips x degrees along the x axis and flips y degrees along the y-axis.
Matrix (): All 2D conversion methods can be integrated, including six parameters: A,b,c,d,e,f.
Transform: Belongs to the CSS property, the above method belongs to the value of this property.
div{
Transform:rorate (30deg);}
The transition of CSS3:
transition:width 1s linear 2s;
Four properties: To use the transition properties, the transition time, the linear alignment of the transition, and the time the transition effect begins. \

CSS3 Animations:

Setting definition Animations
From~to
@keyframes myfirst{from {background:red;} to {Background:yellow;} }
0%~100%
@keyframes myfirst{0%   {background:red;} 25%  {background:yellow;} 50%  {background:blue;} 100% {background:green;}}

Binding animations:
Div{animation:myfirst 5s;-moz-animation:myfirst 5s; /* Firefox */-webkit-animation:myfirst 5s; /* Safari and Chrome */-o-animation:myfirst 5s; / * Opera */}

Animation:myfirst 5s linear 2s infinite alternate;
Several properties commonly used: 1, animation name, 2, animation cycle time, 3, animation speed curve, 4, animation start time, 5, number of plays,

CSS3 3D and 2D

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.