Compartir a través de


animationDelay property

Specifies the offset within an animation cycle (the amount of time from the start of a cycle) before the animation is displayed for a set of corresponding object properties identified in the Cascading Style Sheets (CSS) @keyframes at-rule specified by the IHTMLCSSStyleDeclaration2::animationName property.

This property is read/write.

 

Syntax

HRESULT put_animationDelay(
  [in]          BSTR v
);

HRESULT get_animationDelay(
  [out, retval] BSTR *p
);

Property values

Type: BSTR

One or more offset times, separated by commas.

String format

<time> [ , <time> ] *

CSS information

Applies To block-level and inline-level elements
Media visual
Inherited no
Initial Value 0

Standards information

Remarks

Values are rounded up to the second decimal place.

Each IHTMLCSSStyleDeclaration2::animationDelay property is paired with a corresponding IHTMLCSSStyleDeclaration2::animationName property.

If more IHTMLCSSStyleDeclaration2::animationDelay values are declared than corresponding IHTMLCSSStyleDeclaration2::animationName values, the excess IHTMLCSSStyleDeclaration2::animationDelay values are ignored.

If fewer IHTMLCSSStyleDeclaration2::animationDelay values are declared than corresponding IHTMLCSSStyleDeclaration2::animationName values, the list of IHTMLCSSStyleDeclaration2::animationDelay values is repeated from the beginning until the IHTMLCSSStyleDeclaration2::animationName values are exhausted.

Do not use the Microsoft vendor prefix ("-ms-") before the CSS animations properties. They are supported unprefixed in Internet Explorer 10 and later.

To learn more about CSS animations, see How to bring your webpage to life with CSS transforms, transitions, and animations.

As of Internet Explorer for Windows Phone 8.1 Update, Internet Explorer for Windows Phone supports "-webkit-animation-delay" as an alias for this property.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

How to bring your webpage to life with CSS transforms, transitions, and animations

Internet Explorer 10 Guide for Developers: CSS Animations