I have the following jQuery code that is used for adding some animations to a Signup form when clicking on the submit button.
setTimeout(() => {
$('#new-user-layout').addClass('animate__fadeOut')
}, 1000)
setTimeout(() => {
$('#new-user-layout').addClass('hidden')
}, 1300)
setTimeout(() => {
$('#new-user-layout').removeClass('animate__fadeOut')
$('.app-login_form-layout').css({ 'height': '28rem', 'width': '25rem' })
}, 1600)
setTimeout(() => {
$('#user_credentials').removeClass('hidden')
$('#user_credentials').addClass('animate__fadeIn')
}, 2000)
setTimeout(() => {
$('#user_credentials').removeClass('animate__fadeIn')
}, 2300)
Now this is with the HTML template that I need to convert to Angular code. How can I add these animation classes in Angular way ?
I tried using [ngClass], but it is not working properly.