Below is the code snippet used to trigger the modal:
<div className={classes.modal}>{props.children}</div>
.modal {
width: 90%;
background-color: white;
z-index: 30;
position: fixed;
top: 20vh;
left: 5%;
border-radius: 12px;
padding: 1rem;
align-items: center;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
animation: slide-down 0.5s ease-out forwards;
}
I am curious if there is a way to add an animation for the div to slide out using either inline JSX styling in React or from the CSS? Any suggestions?