共用方式為


animationFillMode property

Specifies whether the effects of an animation are visible before or after it plays.

This property is read/write.

 

Syntax

HRESULT put_animationFillMode(
  [in]          BSTR v
);

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

Property values

Type: BSTR

The fill mode.

String format

[ none | forwards | backwards | both ][ , [ none | forwards | backwards | both ]] *

CSS information

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

Standards information

Remarks

Do not use the Microsoft vendor prefix ("-ms-") before the Cascading Style Sheets (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-fill-mode" 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