concept animation in category angular

This is an excerpt from Manning's book Angular in Action.
Performance in the browser —One of the major pain points of JavaScript is that it’s single threaded, which means that JavaScript can only handle one instruction at a time. In modern browsers, a newer technology known as web workers allows Angular to push some of the execution of the compiler into another process. This means that a lot more processing can occur, and it allows things like animations and user interactions to be smoother.
Figure 1.7 Angular provides modules (like animation) that contain all the services and objects you’ll need to build your applications, but first you’ll have to import them.
![]()
We want to test the Dashboard component, which loads a few things. In order to focus on just the Dashboard component, we’ll also stub the Summary component, because it has animations that can get in the way.

This is an excerpt from Manning's book AngularJS in Action.
In our Angello.js file, we’ll create the Angello module and declare its sub-module dependencies. Because we’re using AngularJS routing and animations, we’re going to inject the ngRoute and ngAnimate sub-modules. As mentioned before, we’re offering two options for handling back-end communication and authentication: Firebase and Node.js. To enable them, we need to inject the firebase, auth0, angular-jwt, and angular-storage sub-modules. Last but not least, we’ll use the sub-module ngMessages for form validation:
This is the HTML without the animation:
<!-- client/src/angello/storyboard/tmpl/storyboard.html --> <div class="details"> <!-- ... --> <div ng-if="storyboard.detailsVisible"> <!-- ... --> </div> </div>This is the HTML with the animation:
The event handlers are defined inline to the return object. The three parameters that each handler receives are element, className, and done. The element is the DOM element that the event was triggered on, className is the name of the class that triggered the event, and done is the callback function that needs to be called when the animation is complete.
AngularJS animations can be distilled down to five events and a class-based naming convention. Once you’ve grasped the events at play and the naming convention, AngularJS animations fade into the background and the animations themselves take center stage.
There are three types of animations that you can create with AngularJS: CSS transitions, CSS animations, and JavaScript animations. Each type of animation is well suited for varying contexts, and we’ll explore each of them later in the chapter.
AngularJS doesn’t actually do any of the animations themselves, but simply provides the hooks for you to apply your own animations as you see fit. These hooks come in the form of events, and there are only five of them.