Skip to content

Commit

Permalink
Tweak motion
Browse files Browse the repository at this point in the history
  • Loading branch information
richtabor committed Aug 1, 2023
1 parent 36f2199 commit bef5315
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/components/src/snackbar/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,21 @@ const SNACKBAR_VARIANTS = {
height: 'auto',
opacity: 1,
transition: {
height: { stiffness: 1000, velocity: -100 },
height: { type: 'tween', duration: 0.3, ease: [ 0, 0, 0.2, 1 ] },
opacity: {
type: 'tween',
duration: 0.25,
delay: 0.05,
ease: [ 0, 0, 0.2, 1 ],
},
},
},
exit: {
opacity: 0,
transition: {
duration: 0.5,
type: 'tween',
duration: 0.1,
ease: [ 0, 0, 0.2, 1 ],
},
},
};
Expand Down

0 comments on commit bef5315

Please sign in to comment.