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.

AnimationStateMetadata

Encapsulates an animation state by associating a state name with a set of CSS styles. Instantiated and returned by the state() function.

      
      interface AnimationStateMetadata extends AnimationMetadata {
  name: string
  styles: AnimationStyleMetadata
  options?: {...}

  // inherited from animations/AnimationMetadata
  type: AnimationMetadataType
}
    

Properties

Property Description
name: string

The state name, unique within the component.

styles: AnimationStyleMetadata

The CSS styles associated with this state.

options?: { params: { [name: string]: any; }; }

An options object containing developer-defined parameters that provide styling defaults and can be overridden on invocation.