Answers for "animate change of class angular"

0

animate change of class angular

<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 "Javascript"

Browse Popular Code Answers by Language