Book Image

Learning AngularJS Animations

By : Richard Keller
Book Image

Learning AngularJS Animations

By: Richard Keller

Overview of this book

Table of Contents (15 chapters)
Learning AngularJS Animations
About the Author
About the Reviewers

Chapter 5. Custom Directives and the $animate Service

We already learned how to create animations using both JavaScript and CSS in the AngularJS context for native directives. Now, we will learn how to animate custom directives and how to use the $animate service.

In this chapter, we will learn the following topics:

  • Triggering animations on custom directives

  • Animating the enter and leave events

  • Using the $animate.move method

  • Creating a custom directive animation with JavaScript