What are the steps to use animation module in Angular?

We need to follow below steps to implement animation in our angular project,

  1. Enabling the animations module: Import BrowserAnimationsModule to add animation capabilities into our Angular root application module.
  2. Importing animation functions into component files: Import required animation functions from @angular/animations in component files.
  3. Adding the animation metadata property: add a metadata property called animations: within the @Component() decorator in component files.