CSS3 Transition property changes and animation animation similarity and different points

Source: Internet
Author: User

Below sake the effect of the 2 pictures.

Http://zqtest.e-horse.cn/DongXueImportedCar/assets/mouseOverAnimate.html

The first changes the effect of the transition property

The second one for animation animation effect

Have you seen the similarities and differences between them? Yes, they can all achieve simple animation effect, but transition change effect when the mouse leaves the end of the animation, it will continue to animate for a period of time and eventually return to the initial style of the element. Animation animation effect is not, when the mouse left it will immediately end the animation effect.

There is a little difference: transition attribute Change time point is not easy to control, can only see through the mouse or JS dynamically append class name to the CSS properties to transition changes. Animation animation can control the duration of change time, delay changes and so on.

CSS3 Transition property changes and animation animation similarity and different points

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.