In AngularJS, you can build animated transition with the help of CSS. The CSS transforms the HTML elements that give you an illusion of motion.
You must include the following things to make your application ready for animations:
AngularJS Animate library:
- <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-animate.js"></script>
Refer to the ngAnimate module in your application:
- <body ng-app="ngAnimate">
# AngularJS Animation Example
Hide the DIV:
# What does ngAnimate do?
The ngAnimate module does not animate HTML elements itself. It only adds and removes some pre-defined classes to make animations when ngAnimate notice certain events, like hide or show of an HTML element.
Following is a list of directives in AngularJS who add/remove classes: