Angularjs Custom Animation nganimate Examples

Angularjs Custom Animation nganimate Examples

What is an Animation?

Angularjs Custom Animation nganimate ExamplesAngularJS supported animated all the miliseconds to transitions, with help custom from CSS style sheet.An animation is when the all the HTML Form input transformation of an DOM HTML ALL element gives we an some illusion of new motion.

AngularJS Animations

The List of directives in AngularJS who simple add simple directives remove directives classes are:
1.ng-show directives in AngularJS
2.ng-hide directives in AngularJS
3.ng-class directives in AngularJS
4.ng-view directives in AngularJS
5.ng-include directives in AngularJS
6.ng-repeat directives in AngularJS
7.ng-if directives in AngularJS
8.ng-switch directives in AngularJS

READ :  AngularJS Datetime format filter in controller

Include Simple Scripts
[php]
http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-animate.js
[/php]

Then we must add or include refer to the module name ngAnimate module in your web-application:

[php]

[/php]

Include ngAnimate in Modules

[php]
var app = angular.module(“liveApp”, [“ngAnimate”]);
[/php]

nganimate : AngularJS Animations Example

[php]

infinityknow.com – AngularJS Animations Example
http://angular.min.js
http://angular-animate.js

var app = angular.module(“liveApp”, [“ngAnimate”]);

div
{
transition: all linear 1s;
background-color: #08c;
width: 40%;
padding:40px;
border:2px solid red;
}
.ng-hide {
opacity:0;
}

infinityknow.com – AngularJS Animations Example

Simple Example Show Dib and Hide Div

Hi Live24u- Welcome to Angularjs… First Simple Hello World Example

[/php]

ng-hide directive Provides Class

the ng-hide Angularjs directive will simple add List of class values
+ : ng-animate using AngularJS
+ : ng-hide-animate using AngularJS
+ : ng-hide-add using AngularJS
+ : ng-hide-remove using AngularJS
+ : ng-hide-add-active using AngularJS
+ : ng-hide-remove-active using AngularJS

READ :  Simple Angular hello world Application

Example

Leave a Comment