• 개요
@angular/animations

AnimationOptions

인터페이스
사용 중단 권고v20.2부터

Options that control animation styling and timing.

사용 중단을 권고합니다.

Use animate.enter or animate.leave instead. Intent to remove in v23

API

    
      interface AnimationOptions {}
    
    

delay

string | number | undefined

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

params

{ [name: string]: any; } | undefined

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

설명

Options that control animation styling and timing.

The following animation functions accept AnimationOptions data:

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

상세 내용으로 이동