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 :  Angular convert Round to 2 decimals places

Include Simple Scripts

<a href="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-animate.js">http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-animate.js</a>

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

Include ngAnimate in Modules

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

nganimate : AngularJS Animations Example



<title>infinityknow.com - AngularJS Animations Example</title>
<a href="http://angular.min.js">http://angular.min.js</a>
<a href="http://angular-animate.js">http://angular-animate.js</a>

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;
}



<h2>infinityknow.com - AngularJS Animations Example</h2>
Simple Example Show Dib and Hide Div <br /><br />
<div style="clear:both">Hi Live24u-  Welcome to Angularjs... First Simple Hello World Example</div>


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 :  C# Anonymous Types Tutorial with Examples

Example

Add a Comment

Your email address will not be published. Required fields are marked *