CSS animation-delay: specifies when the animation starts. cssanimation-delay

Source: Internet
Author: User

CSS animation-delay: specifies when the animation starts. cssanimation-delay

In CSS, the animation-delay attribute specifies when the animation starts. Host bar this article describes in detail the definition and usage of animation-delay, the syntax of animation-delay, and the instance of animation-delay.

Animation-delay attribute instance:

Wait for two seconds and start the animation:

 

Div {animation-delay: 2 s;-webkit-animation-delay: 2 s;/* Safari and Chrome */}

 

Animation-delay definition and usage:

The animation-delay attribute defines when the animation starts.

The value of animation-delay is measured in seconds or milliseconds.

Tip: Negative values are allowed. The animation starts immediately in-2 s, but the animation is skipped for 2 seconds.

 

Default Value: 0
Inheritance: No
Version: CSS3
JavaScript Syntax: Object. style. animationDelay = "2 s"

 

Animation-delay Syntax:

 

animation-delay: time;

 

 

Value Description
Time Optional. Defines the waiting time before the animation starts, in seconds or milliseconds. The default value is 0.

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.