CSS3 animation-fill-mode attribute, animationfillmode

Source: Internet
Author: User

CSS3 animation-fill-mode attribute, animationfillmode

Now I am focusing on mobile development projects. It is very important for animation. Whenever I encounter a new knowledge point, I will share it with you.

Animation-fill-mode: animations an object from one place to another and keeps it there.

Definition and usage

The animation-fill-mode attribute specifies that the style of an element is applied when the animation is not played (when the animation is completed or when there is a delay before playback starts.

By default, CSS animation does not affect elements until the first key frame is played. The animation-fill-mode attribute can override this behavior.

Default Value: None
Inheritance: No
Animations: No.
Version: CSS3
JavaScript Syntax: Object. Style. animationFillMode = "forwards"

Especially for JavaScript control, it can also be restored to the state of the effect after the last key frame is completed.

<! DOCTYPE html> 

 

Related Article

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.