AnimationStateMetadata

From Get docs
< @angular/animationsAngular/docs/9/api/animations/animationstatemetadata /
Revision as of 02:29, 6 December 2021 by Notes (talk | contribs) (Page commit)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


AnimationStateMetadata

interface

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.


© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v9.angular.io/api/animations/AnimationStateMetadata