Speed up animations throughout the panel

This commit is contained in:
Dane Everitt 2020-07-05 13:56:04 -07:00
parent cbdede75a7
commit 28992c5e43
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
12 changed files with 13 additions and 14 deletions

View file

@ -62,7 +62,7 @@ const Modal: React.FC<Props> = ({ visible, appear, dismissable, showSpinnerOverl
}, [ render ]);
return (
<Fade timeout={250} appear={appear} in={render} unmountOnExit onExited={onDismissed}>
<Fade timeout={150} appear={appear} in={render} unmountOnExit onExited={onDismissed}>
<ModalMask
onClick={e => {
if (isDismissable && closeOnBackground) {
@ -87,7 +87,7 @@ const Modal: React.FC<Props> = ({ visible, appear, dismissable, showSpinnerOverl
<Spinner/>
</div>
}
<div css={tw`bg-neutral-800 p-6 rounded shadow-md overflow-y-scroll transition-all duration-250`}>
<div css={tw`bg-neutral-800 p-6 rounded shadow-md overflow-y-scroll transition-all duration-150`}>
{children}
</div>
</ModalContainer>