{ "id": "api/animations/AnimationOptions", "title": "AnimationOptions", "contents": "\n\n
\n
\n
\n \n API > @angular/animations\n
\n \n
\n \n
\n

AnimationOptionslink

\n \n \n \n \n \n
\n \n \n\n
\n \n
\n

Options that control animation styling and timing.

\n\n

See more...

\n
\n \n \n
\n\ninterface AnimationOptions {\n delay?: number | string\n params?: {...}\n}\n\n\n \n \n
\n

Child interfaceslink

\n \n\n\n\n\n
\n \n\n\n \n \n\n
\n\n \n\n \n \n
\n

Descriptionlink

\n

The following animation functions accept AnimationOptions data:

\n\n

Programmatic animations built using the AnimationBuilder service also\nmake use of AnimationOptions.

\n\n \n
\n\n \n
\n

Propertieslink

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
PropertyDescription
\n \n delay?: number | string\n \n \n

Sets a time-delay for initiating an animation action.\nA number and optional time unit, such as \"1s\" or \"10ms\" for one second\nand 10 milliseconds, respectively.The default unit is milliseconds.\nDefault value is 0, meaning no delay.

\n\n \n
\n \n params?: {\n [name: string]: any;\n}\n \n \n

A set of developer-defined parameters that modify styling and timing\nwhen an animation action starts. An array of key-value pairs, where the provided value\nis used as a default.

\n\n \n
\n
\n \n\n\n \n\n\n
\n
\n\n\n" }