• Overview
@angular/animations

AnimationStyleMetadata

interface
deprecatedsince v20.2

Encapsulates an animation style. Instantiated and returned by the style() function.

Deprecation warning

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

API

    
      interface AnimationStyleMetadata extends AnimationMetadata {}
    
    

styles

"*" | { [key: string]: string | number; } | ("*" | { [key: string]: string | number; })[]

A set of CSS style properties.

offset

number | null

A percentage of the total animate time at which the style is to be applied.

Jump to details