O'Reilly logo

Node.js, MongoDB, and AngularJS Web Development by Brad Dayley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the $animate Service

The $animate service provides animation detection hooks you can use when performing enter, leave, and move DOM operations as well as addClass and removeClass operations. You can use these hooks either through CSS classnames or through the $animate service in JavaScript.

To implement animation, you need to add a directive that supports animation to the element that you want to animate. Table 25.3 lists the directives that support animation and the types of animation events that they support.

Image

Table 25.3 AngularJS directives that support animation

Implementing Animation in CSS

To implement animation in CSS, you need to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required