angular ng class with animation

Solutions on MaxInterview for angular ng class with animation by the best coders in the world

showing results for - "angular ng class with animation"
Davide
19 Apr 2016
1<body [ngClass]="{'short': condition, 'long': !condition }">
2  ...
3</body>
4
5.short {
6  background-color: blue;
7  transition: all 0.5s 0s ease-in;
8}
9.long {
10  background-color: red;
11  transition: all 1s 0s ease-in;
12}