animate change of class angular

Solutions on MaxInterview for animate change of class angular by the best coders in the world

showing results for - "animate change of class angular"
Agatha
02 Apr 2017
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}