July 2017
Intermediate to advanced
454 pages
10h 1m
English
As mentioned in the earlier section, Angular comes with a separate animations library of its own, which has a lot of built-in classes and methods to support various animations.
Let's learn about the various built-in classes available in this section:
We will learn each of the afore mentioned methods in detail but before we do that, let's quickly see the general syntax for using these methods.
An example of general syntax for writing animations is as follows:
animations : [ trigger('slideInOut', [ state('in', style({ transform: 'translate3d(0, 0, 0)' })), state('out', style({ transform: 'translate3d(100%, 0, 0)' })), transition('in => out', animate('400ms ease-in-out')), ...Read now
Unlock full access