Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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;
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: jquery select element without child 
Javascript :: js content editable 
Javascript :: Expected an identifier and instead saw ' 
Javascript :: react route props 
Javascript :: hostlistener 
Javascript :: remove from string javascript regex 
Javascript :: js is variable int 
Javascript :: es6 concat array 
Javascript :: reactjs get one document from firestore 
Javascript :: proxy api javascript get 
Javascript :: strict mode 
Javascript :: how to make a dictionary javascript 
Javascript :: shadow class angular 
Javascript :: splice js 
Javascript :: javascript boolean 
Javascript :: countdown js 
Javascript :: material ui react card 
Javascript :: angular router link 
Javascript :: JavaScript setTimeout js function timer 
Javascript :: js string to arraybuffer 
Javascript :: ng2 validations angular using reactiveforms 
Javascript :: js run command in terminal 
Javascript :: mong db connect error 
Javascript :: merge intervals 
Javascript :: setinterval() nodejs 
Javascript :: copia array javascript 
Javascript :: wheel 
Javascript :: express-rate-limit nodejs 
Javascript :: best way to clone an object in javascript 
Javascript :: remove duplicate array 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =