refactor(web/transitions): speed up initial scale fade transition

This commit is contained in:
Luke
2023-01-02 21:50:21 +01:00
parent 7d9e76b043
commit 59f513ef01

View File

@@ -7,7 +7,7 @@ const ScaleFade: React.FC<{ visible: boolean; children: React.ReactNode }> = ({
{visible && (
<motion.div
initial={{ opacity: 0, scale: 0.95 }}
animate={{ opacity: 1, scale: 1, transition: { duration: 0.2, ease: [0.4, 0, 1, 1] } }}
animate={{ opacity: 1, scale: 1, transition: { duration: 0.1, ease: [0.4, 0, 1, 1] } }}
exit={{ opacity: 0, scale: 0.95, transition: { duration: 0.1, ease: [0, 0, 0.2, 1] } }}
>
{children}