CSS 3 Transition-transition

Source: Internet
Author: User

CSS 3 Transitions

=====================================================================================

Transitions---an element transitions smoothly between states, and CSS 3 uses the Transition property to achieve transition effects.


Transition: Transition attribute Execution time time function delay time;



Time function---Set the velocity of the element motion

(1) Bezier curve Cubic-bezier (P1 (x, y), p2 (x, y)

Pre-defined Bezier curves:

Ease (default value)

Linear

Ease-in

Ease-out

Ease-in-out

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/80/20/wKioL1c5MAuTcTnkAAFsl0tmCqM751.png "style=" width : 632px;height:248px; "title=" Ease.png "width=" 632 "height=" 248 "border=" 0 "hspace=" 0 "vspace=" 0 "alt=" Wkiol1c5mautctnkaafsl0tmcqm751.png "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/80/23/wKiom1c5LyXzp4yvAADM60S2Pwg726.png "style=" float: LEFT;WIDTH:350PX;HEIGHT:154PX, "title=" Ease1.png "width=" "" height= "154" border= "0" hspace= "0" vspace= "0" alt= " Wkiom1c5lyxzp4yvaadm60s2pwg726.png "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/80/23/wKiom1c5LyXgtSZcAACoL6tSIQ4342.png "style=" width : 370px;height:167px; "title=" Linear.png "width=" 370 "height=" 167 "border=" 0 "hspace=" 0 "vspace=" 0 "alt=" Wkiom1c5lyxgtszcaacol6tsiq4342.png "/>

(2) Steps ()

Step-start//Step number is one

Step-end


=============================================================================================================== ========================================================================

Example one:

img:hover{transform:translate (600px);} img{transition:2s Cubic-bezier (0.6,0.1,0.1,0.7);}


Example two:

<style>        div:hover  img{            transform:translate (300px);         }        .i01{             transition:2s steps (3,start);         }        .i02{             transition:2s steps (3,end);         }        .i03{             transition:2s linear;         }    </style> 
<div> <br/> <br/>  </div>


Each step of the ===========transition property can be represented by a separate property

Transition:all 2s linear 3s;
Transition-property:all;    Transition-duration:2s;    Transition-timing-function:linear; transition-delay:3s;


CSS 3 Transition-transition

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.