We need to follow below steps to implement animation in our angular project,
- Enabling the animations module: Import BrowserAnimationsModule to add animation capabilities into our Angular root application module.
- Importing animation functions into component files: Import required animation functions from @angular/animations in component files.
- Adding the animation metadata property: add a metadata property called animations: within the @Component() decorator in component files.