Im using the library animate https://daneden.github.io/animate.css/
For adding an animation to whatever you have to add the class animate + nameOfAnimation for example
I want to add a second animation when a button is clicked so I figured something like
<button class="heroe-button animated fadeInLeft" (click)="addClass()"> </button>
addClass():void{
$('.heroe-button').removeClass('fadeInLeft');
$('.heroe-button').addClass('fadeOutRight');
}
But that doesn't do anything.. I have also tryed to add and remove opacity to reset the animation and neither. Few little other tricks but none succesfull.
(Basically what i want to do is that a button fadesin animated and when pressing the button it fades out also animated..