AngularJS
gives energized changes, with assistance from CSS.
What is an Animation?
An
animation is the point at which the change of a HTML component gives you a
figment of movement.
What do I Need?
To
make your applications prepared for livelinesss, you should incorporate the
AngularJS Animate library:
At
that point you should allude to the ngAnimate module in your application:
Or
on the other hand if your application has a name, include ngAnimate as reliance
in your application module:
What does ngAnimate do?
The
ngAnimate module does not quicken your HTML components; however when ng Animate
see certain occasions, similar to cover up or show of a HTML component, the AngularJS
Training in Marathahalli component gets
some pre-characterized classes which can be utilized to make livelinesss.
The mandates in
AngularJS who include/evacuate classes are:
•
ng-appear
•
ng-hide
•
ng-class
•
ng-see
•
ng-include
•
ng-repeat
•
ng-if
•
ng-switch
The
ng-show and ng-hide mandates include or evacuates ng-shroud class esteem.
Different
orders include an ng-enter class esteem when they enter the DOM and an ng-leave
trait when they are expelled from the DOM. The ng-rehash mandate likewise
includes ng-move class esteem when the HTML component changes position.
What's
more, amid the liveliness, the HTML component will have a lot of class esteems,
which will be evacuated when the movement has wrapped up. Precedent: the
ng-conceal mandate will include these class esteems:
•
ng-animate
•
ng-cover up enliven
•
ng-hide add (if the
component will be covered up)
•
ng-conceal expel (if
the component will be appeared)
•
ng- hide add active (if
the component will be covered up)
•
ng-hide remove active
(if the component will be appeared)
Animation Using CSS
We
can utilize CSS changes or CSS movements to enliven HTML components. This
instructional exercise will indicate you both.
To
get familiar with CSS Animation, ponder our CSS Transition Tutorial and our CSS
Animation Tutorial.
CSS Transitions
CSS
advances enable you to change CSS property estimations easily, starting with
one esteem then onto the next, over a given span:
Example:
At
the point when the DIV component gets the .ng-conceal class, the progress will
take 0.5 seconds, and the stature will easily change from 100px to 0:
CSS Animations
CSS
Animations enables you to change CSS property estimations easily, starting with
one esteem then onto the next, over a given term:
Precedent:
At
the point when the DIV component gets the .ng-shroud class, the Angular
Training in Marathahalli with placement
Change liveliness will run, which will easily change the range from 100px to 0:
AngularJS
is an open source JavaScript web application structure assembled and kept up by
Google. Dissimilar to JQuery, which is a JavaScript library, it gives a whole
system in which to assemble an application and a simpler method for controlling
the DOM. Two significant advantages of AngularJS are the capacity to actualize
utilizing the MVW (model/see/whatever) design, like MVC (model/see/controller)
and the two-way information authoritative. I will show these advantages in a
model underneath.
AngularJS in real life
I
have made a straightforward adding machine application to exhibit how basically
an application can be made utilizing Angular. AngularJS enables engineers to
effortlessly tie information sources and yields that influence the usefulness
and show of a page. By having the two-way information official, the measure of
code composed can be decreased. My model uses ColdFusion, yet Angular can be
utilized with any programming language. So as to stack Angular in your
application all you need is the structure source which can be referenced with a
HTML content tag as appeared in line #5 of Figure 2 underneath.
The
application I made computes two numbers by requesting two number data sources.
After the client enters two numbers, he/she can choose one of the radio catches
to show the sort of activity to be performed. When a radio catch is chosen, the
figuring will be executed promptly and the outcomes will be shown to the
client.
Author
TIB Academy – A best institute for AngularJS
Training in Marathahalli . At TIB
Academy training is provided by an expert
Angular professional having 10+ yrs experience. Angularjs classes will be
available on weekdays and weekends.
Angular
Training in Marathahalli with placement at TIB Academy is designed according to the current industry
requirement.
Contact: 9513332301
No comments:
Post a Comment