CHAPTER 23
Services for Animation and Touch
In this chapter, I describe the service that AngularJS provides for animating content changes in the Document Object Model (DOM) and for dealing with touch events. Table 23-1 summarizes this chapter.
Table 23-1. Chapter Summary
Problem |
Solution |
Listing |
---|---|---|
Animate content transitions. |
Declare a dependency on the ngAnimate module, use the special naming structure to define CSS styles that contain animations or transitions, and apply the classes to one of the directives that manages content. |
1–4 |
Detect swipe gestures. |
Use the ng-swipe-left and ng-swipe-right directives. |
5 |
Preparing the Example ...
Get Pro AngularJS now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.