Html – How can I make an element to fadeout after pressing a button with animate.css?
<div class="animate__animated animate__fadeInUp animate__fast" role="alert"> <strong>${alertmsg}</strong> ${msg} <button type="button" class="btn-close" aria-label="Close"></button> </div> how can I make it to fade out after pressing the close button? if I included both animate__fadeInUp and animate__fadeOutUp class, it will just fadeout directly.