Sequential vs parallel animations in Angular
In this recipe, you’ll learn how to run Angular animations in a sequence vs in parallel. This is handy for when we want to have one animation finished before we start the next one, or to run the animations simultaneously.
Getting ready
The app that we are going to work with resides in start/apps/chapter04/ng-seq-parallel-animations
inside the cloned repository:
- Open the code repository in your code editor.
- Open the terminal, navigate to the code repository directory, and run the following command to serve the project:
npm run serve ng-seq-parallel-animations
This should open the app in a new browser tab, and you should see the following:
Figure 4.6: ng-seq-parallel-animations app running on http://localhost:4200
Now that we have the app running locally, let’s see the steps of the recipe in the next section.
How to do it…
We have an app that displays...