angular ng class with animation

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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}