The usage and difference of CSS3 animated transition and animation

Source: Internet
Author: User

Transition and animation are CSS3 new features that need to be added to the kernel when used

Browser Kernel name
W3c
Ie -ms-
Chrome/safari -webkit-
Firefoc -moz-
Opera -o-

Difference:

Transition is an excessive attribute that requires the user to trigger , trigger time such as: Click, mouse hover, etc.

Animation is an animated property that does not require user triggering and is automatically executed when the page is loaded .

Use:

transation{Excessive attribute over time animation type delay Time}

-o-transation{Excessive attribute over time animation type delay Time}

-ms-transation{Excessive attribute over time animation type delay Time}

-moz-transation{Excessive attribute over time animation type delay Time}

-webkit-transation{Excessive attribute over time animation type delay Time}

@keyframes Animation Name {

0%{css Property List}

......

100%{css Property List}

}

@-o-keyframes Animation Name {

0%{css Property List}

......

100%{css Property List}

}

@-ms-keyframes Animation Name {

0%{css Property List}

......

100%{css Property List}

}

@-moz-keyframes Animation Name {

0%{css Property List}

......

100%{css Property List}

}

@-webkit-keyframes Animation Name {

0%{css Property List}

......

100%{css Property List}

}

div{

Animation: Animation name duration animation Type delay time loop whether reverse animation at the end of the state;

-o-animation: Animation name duration animation Type delay time loop whether reverse animation at the end of the state;

-ms-animation: Animation name duration animation Type delay time loop whether reverse animation at the end of the state;

-moz-animation: Animation name duration animation Type delay time loop whether reverse animation at the end of the state;

-webkit-animation: Animation name duration animation Type delay time loop whether reverse animation at the end of the state;

}

The usage and difference of CSS3 animated transition and 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.