Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

AnimationStyleMetadata

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

      
      interface AnimationStyleMetadata extends AnimationMetadata {
  styles: '*' | {...}
  offset: number | null

  // inherited from animations/AnimationMetadata
  type: AnimationMetadataType
}
    

Properties

Property Description
styles: '*' | { [key: string]: string | number; } | Array<{ [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.