Skip to content

Commit

Permalink
refactor(web/transitions): speed up initial scale fade transition
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed Jan 2, 2023
1 parent 7d9e76b commit 59f513e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/transitions/ScaleFade.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 59f513e

Please sign in to comment.