I subscribed to the Firebase database in real time, so when I transfer something, it immediately displays in the view without the need for jQuery or ajax.
I would like to animate the rendering of such elements, so when a new element is added to the DOM, its div background-colorgreen and slowly disappear. I do not want all of divthis class to execute this animation at boot time.
I know how to do the first:
@keyframes green-fade {
0% {background: rgb(173, 235, 173);}
100% {background: none;}
}
.post-div {
animation: green-fade 5s ease-in 1;
}
But, of course, this animation happens for this class whenever it is displayed, including when loading.
I'm interested in "Angular 2 way".