Answers for "angular ng class with animation"

0

angular ng class with animation

<body [ngClass]="{'short': condition, 'long': !condition }">
  ...
</body>

.short {
  background-color: blue;
  transition: all 0.5s 0s ease-in;
}
.long {
  background-color: red;
  transition: all 1s 0s ease-in;
}
Posted by: Guest on September-23-2021

Code answers related to "angular ng class with animation"

Code answers related to "Javascript"

Browse Popular Code Answers by Language